Add default argument

This commit is contained in:
Matthias 2019-04-09 07:08:46 +02:00
parent ae8660fe06
commit 99875afcc0
1 changed files with 1 additions and 2 deletions

View File

@ -235,8 +235,7 @@ class ApiServer(RPC):
:return: stats
"""
timescale = request.args.get('timescale')
logger.info("LocalRPC - Daily Command Called")
timescale = request.args.get('timescale', 7)
timescale = int(timescale)
stats = self._rpc_daily_profit(timescale,