Исправление статистики (вы/в)вода алмазов

This commit is contained in:
Your Name 2024-12-02 11:30:36 +03:00
parent f76d59ccea
commit 96459ea32e

2
api.py
View File

@ -68,7 +68,7 @@ def stat_run(cdm_change):
stats['gbal_delta'] = round(gbal-gbal_y, 3) stats['gbal_delta'] = round(gbal-gbal_y, 3)
stats['min'] = round(min([x for x in bals if x != 0]), 3) stats['min'] = round(min([x for x in bals if x != 0]), 3)
stats['max'] = round(max(bals), 3) stats['max'] = round(max(bals), 3)
stats['up_diamond'] = round(gbal - (gbal_y + time2cdm), 3) stats['up_diamond'] = round(gbal - (gbal_y + time2cdm))
stat[date] = stats stat[date] = stats
write(stat, 'stat.json') write(stat, 'stat.json')