make "/profit N" command output be consistent with "/daily" and "/status table" commands

This commit is contained in:
Eugene Schava 2021-06-23 07:30:08 +03:00
parent e97c82c514
commit 3c70768e18

View File

@ -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):