Skip to content

Commit

Permalink
seems to be fixing #45
Browse files Browse the repository at this point in the history
  • Loading branch information
fixator10 committed Aug 27, 2020
1 parent 13648df commit df13bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leveler/image_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ async def _write_unicode(text, init_x, y, font, unicode_font, fill):
# draw level bar
exp_font_color = self._contrast(exp_fill, light_color, dark_color)
exp_frac = int(userinfo["total_exp"] - await self._level_exp(int(global_level)))
exp_total = await self._required_exp(int(global_level) + 1)
exp_total = await self._required_exp(int(global_level))
bar_length = int(exp_frac / exp_total * 340)
draw.rectangle(
[(0, 305), (340, 323)], fill=(level_fill[0], level_fill[1], level_fill[2], 245),
Expand Down

0 comments on commit df13bc6

Please sign in to comment.