feat: show rating

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2025-03-03 01:17:12 +03:00
parent 3242418ae6
commit 20b8bf2432
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
2 changed files with 19 additions and 2 deletions

View file

@ -12,3 +12,19 @@ def humanize_tags_from_json(value, default):
return output
return default
def format_rating(value):
match value:
case "g":
# Negative Squared Latin Capital Letter G
return "🅶"
case "s":
# Negative Squared Latin Capital Letter S
return "🆂"
case "q":
# Negative Squared Latin Capital Letter Q
return "🆀"
case "e":
# Negative Squared Latin Capital Letter E
return "🅴"