diff options
author | Dmitrii Morozov <snoopdesigns@gmail.com> | 2024-11-04 18:53:39 +0100 |
---|---|---|
committer | Dmitrii Morozov <snoopdesigns@gmail.com> | 2024-11-04 18:53:39 +0100 |
commit | 3b1d1c6343431301f2e584edd669f33319203f1b (patch) | |
tree | 2d0e9576a1ed8c31fe963f8142690af8fad12ed0 | |
parent | 09ebb2e44319d17a2719e1c615e85ca8b8b60ae8 (diff) |
Format level difference correctly during season change
-rw-r--r-- | formatter/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/__init__.py b/formatter/__init__.py index 3287613..57a836d 100644 --- a/formatter/__init__.py +++ b/formatter/__init__.py @@ -70,7 +70,7 @@ def __format_stats_difference(old_user_stats: UserStats, new_user_stats: UserSta separator='\n') def __format_stat_difference(old_stat_value: int, new_stat_value: int): - difference = max(0, new_stat_value - old_stat_value) + difference = max(new_stat_value, new_stat_value - old_stat_value) if difference > 0: return " \(\+ {}\)".format(str(difference)) else: |