Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ckvsoft committed Jan 28, 2024
1 parent 7cca8d6 commit 05574ad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/statsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ def update_percent_status_data(cls, group, key, new_value):
cls.insert_new_status_data(group, key, new_value)

cls.data[group][date_key] = today
value = cls.data[group][key]
value = (value + new_value) / 2
cls.data[group][key] = value
if key in cls.data[group]:
value = cls.data[group][key]
value = (value + new_value) / 2
cls.data[group][key] = value
else:
value = new_value
cls.data[group][key] = value
cls.save_data()
return value

Expand Down

0 comments on commit 05574ad

Please sign in to comment.