fix(bot): 🐛 Years being formatted as days.
This commit is contained in:
@@ -213,7 +213,7 @@ def time_to_text(time_diff: timedelta) -> str:
|
||||
|
||||
parts = []
|
||||
if years > 0:
|
||||
parts.append(f"{years} day{"s" if years != 1 else ""}")
|
||||
parts.append(f"{years} year{"s" if years != 1 else ""}")
|
||||
if days > 0:
|
||||
parts.append(f"{days} day{"s" if days != 1 else ""}")
|
||||
if hours > 0:
|
||||
|
||||
Reference in New Issue
Block a user