mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
make "/profit N" command output be consistent with "/daily" and "/status table" commands
This commit is contained in:
parent
e97c82c514
commit
3c70768e18
|
@ -482,7 +482,7 @@ class Telegram(RPCHandler):
|
|||
timescale = None
|
||||
try:
|
||||
if context.args:
|
||||
timescale = int(context.args[0])
|
||||
timescale = int(context.args[0]) - 1
|
||||
today_start = datetime.combine(date.today(), datetime.min.time())
|
||||
start_date = today_start - timedelta(days=timescale)
|
||||
except (TypeError, ValueError, IndexError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user