Skip to content

Commit

Permalink
format special distance
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohongxuan committed Aug 20, 2024
1 parent 5bd1c45 commit 17ae7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_page/gpxtrackposter/poster.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __draw_footer(self, d):

d.add(
d.text(
f"Over {str(special_distance1)} km",
f"Over {special_distance1:.1f} km",
insert=(70, self.height - 14.5),
fill=text_color,
style=small_value_style,
Expand All @@ -207,7 +207,7 @@ def __draw_footer(self, d):

d.add(
d.text(
f"Over {str(special_distance2)} km",
f"Over {special_distance2:.1f} km",
insert=(70, self.height - 10.5),
fill=text_color,
style=small_value_style,
Expand Down

0 comments on commit 17ae7d2

Please sign in to comment.