Skip to content

Commit

Permalink
Merge pull request #10 from ckvsoft/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ckvsoft authored Jan 28, 2024
2 parents bf541ce + 26bd65e commit 4c6e5ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
2 changes: 1 addition & 1 deletion core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
# Project: [SEUSS -> Smart Ess Unit Spotmarket Switcher
#

__version__ = "0.0.174"
__version__ = "0.0.178"

0 comments on commit 4c6e5ec

Please sign in to comment.