Skip to content

Commit

Permalink
Fix bug in completion_percent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Jun 30, 2024
1 parent 0e74ddf commit af10a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/cogs/core/quests.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_quest_embed(
)
)(self.d.emojis, quest.emoji.split("."))

completion_percent: float = quest.value / quest.target_value if quest.value else 0
completion_percent: float = (quest.value / quest.target_value) if quest.value else 0
close_to_completion = completion_percent > 0.75

completion_bar = (
Expand Down

0 comments on commit af10a6b

Please sign in to comment.