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
|
timescale = None
|
||||||
try:
|
try:
|
||||||
if context.args:
|
if context.args:
|
||||||
timescale = int(context.args[0])
|
timescale = int(context.args[0]) - 1
|
||||||
today_start = datetime.combine(date.today(), datetime.min.time())
|
today_start = datetime.combine(date.today(), datetime.min.time())
|
||||||
start_date = today_start - timedelta(days=timescale)
|
start_date = today_start - timedelta(days=timescale)
|
||||||
except (TypeError, ValueError, IndexError):
|
except (TypeError, ValueError, IndexError):
|
||||||
|
Loading…
Reference in New Issue
Block a user