Combine weekly and daily profit methods

This commit is contained in:
Matthias
2022-06-08 07:08:01 +02:00
parent c550cd8b0d
commit 3cb15a2a54
2 changed files with 20 additions and 52 deletions

View File

@@ -618,10 +618,11 @@ class Telegram(RPCHandler):
except (TypeError, ValueError, IndexError):
timescale = 8
try:
stats = self._rpc._rpc_weekly_profit(
stats = self._rpc._rpc_daily_profit(
timescale,
stake_cur,
fiat_disp_cur
fiat_disp_cur,
'weeks'
)
stats_tab = tabulate(
[[week['date'],