Skip to content

Commit

Permalink
fix counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemek committed Oct 16, 2023
1 parent 87217ac commit 78ad50b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data_types/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def score(self) -> float:
if self.last_used is None:
return 0
return self.all_usages() + 1 / (
100000 * ((utc_today() - self.last_used).days + 1)
100000 * (abs((utc_today() - self.last_used).days) + 1)
)

def all_usages(self) -> int:
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

bot = Bot(
"Discord Analyst",
"1.17.4",
"1.17.5",
alias="%",
)

Expand Down

0 comments on commit 78ad50b

Please sign in to comment.