Skip to content

Commit

Permalink
main: Fix f-strings to restore Python <3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Nov 24, 2024
1 parent 3a5b519 commit 8037bc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17780,17 +17780,17 @@ def export_stats(pl):
# line = line.rstrip("; ")
# line += "\n\n"

line += "\n" + f"-------------- {_("Top Artists")} --------------------" + "\n\n"
line += "\n" + f"-------------- {_('Top Artists')} --------------------" + "\n\n"

ls = stats_gen.artist_list
for i, item in enumerate(ls[:50]):
line += str(i + 1) + ".\t" + stt2(item[1]) + "\t" + item[0] + "\n"

line += "\n\n" + f"-------------- {_("Top Albums")} --------------------" + "\n\n"
line += "\n\n" + f"-------------- {_('Top Albums')} --------------------" + "\n\n"
ls = stats_gen.album_list
for i, item in enumerate(ls[:50]):
line += str(i + 1) + ".\t" + stt2(item[1]) + "\t" + item[0] + "\n"
line += "\n\n" + f"-------------- {_("Top Genres")} --------------------" + "\n\n"
line += "\n\n" + f"-------------- {_('Top Genres')} --------------------" + "\n\n"
ls = stats_gen.genre_list
for i, item in enumerate(ls[:50]):
line += str(i + 1) + ".\t" + stt2(item[1]) + "\t" + item[0] + "\n"
Expand Down

0 comments on commit 8037bc2

Please sign in to comment.