Skip to content

Commit

Permalink
Fix the UP031 error with format specifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Akashdeep Dhar <[email protected]>
  • Loading branch information
gridhead committed Jan 7, 2025
1 parent 12a12ac commit 5fb5e1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tahrir/utils/date_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ def relative_time(value: datetime):
for denomination in denominations:
value = getattr(rd, denomination, 0)
if value:
return "%d %s %s" % (
value,
singularize(SHORT_DENOMINATIONS[denomination], value),
suffix,
)
return f"{value} {singularize(SHORT_DENOMINATIONS[denomination], value)} {suffix}"

return "just now"

0 comments on commit 5fb5e1f

Please sign in to comment.