|
|
@ -418,7 +418,7 @@ def get_stat(it: Get_stat):
|
|
|
|
stats = {'gbal': 0, 'average': 0, 'median': 0, 'time2cdm': 0,
|
|
|
|
stats = {'gbal': 0, 'average': 0, 'median': 0, 'time2cdm': 0,
|
|
|
|
'gbal_delta': '0', 'time2cdm_delta': '',
|
|
|
|
'gbal_delta': '0', 'time2cdm_delta': '',
|
|
|
|
'min': 0, 'max': 0,
|
|
|
|
'min': 0, 'max': 0,
|
|
|
|
'up_diamond': 0, 'up_time2cdm': 0}
|
|
|
|
'up_diamond': 0}
|
|
|
|
|
|
|
|
|
|
|
|
stat = read('stat.json')
|
|
|
|
stat = read('stat.json')
|
|
|
|
date = datetime.today().strftime('%Y-%m-%d')
|
|
|
|
date = datetime.today().strftime('%Y-%m-%d')
|
|
|
@ -446,7 +446,7 @@ def get_stat(it: Get_stat):
|
|
|
|
stats['time2cdm_delta'] = format_sign(round(time2cdm-time2cdm_y, 3))
|
|
|
|
stats['time2cdm_delta'] = format_sign(round(time2cdm-time2cdm_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 + time2cdm_y), 3)
|
|
|
|
stats['up_diamond'] = round(gbal - (gbal_y + time2cdm), 3)
|
|
|
|
|
|
|
|
|
|
|
|
return stats
|
|
|
|
return stats
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|