Skip to content

Commit

Permalink
fix: fix infinite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy-Boisset committed Nov 16, 2023
1 parent 4ae7982 commit eb0168d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ad_miner/sources/modules/smolcard_class.py
Expand Up @@ -211,7 +211,7 @@ def render(self, page_f, return_html=False):
evolution_percent = abs(round((evolution_chart_data[-1] - evolution_chart_data[-2]) / evolution_chart_data[-2], 3) * 100)
except ZeroDivisionError:
# If the stats staggers at zero, it's a great thing
if evolution_chart_data[-2] == 0:
if evolution_chart_data[-1] == 0:
evolution_percent = 0.0
else:
evolution_percent = '<i class="bi bi-infinity"></i>'
Expand Down

0 comments on commit eb0168d

Please sign in to comment.