diff options
| author | 2019-11-28 14:23:33 +0000 | |
|---|---|---|
| committer | 2019-11-28 14:23:33 +0000 | |
| commit | 746f08b5a8009c8ed8ffa5fb629bacc07bc53ce5 (patch) | |
| tree | 730069c86036423f7ff0361fc50a28f344d26f4a /modules | |
| parent | utils.http.Response.decode() should default to detected encoding (diff) | |
| signature | ||
"day" vs "days" in brithday.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/birthday.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/birthday.py b/modules/birthday.py index f1814ec6..aeffd4af 100644 --- a/modules/birthday.py +++ b/modules/birthday.py @@ -70,15 +70,16 @@ class Module(ModuleManager.BaseModule): if next_birthday < now: next_birthday = next_birthday.replace(year=next_birthday.year+1) days = (next_birthday-now).days + days_str = "day" if days == 1 else "days" age = next_birthday.year-birthday_parsed.year if days > 0: if years: - event["stdout"].write("%s is %d in %d days" % ( - target_user.nickname, age, days)) + event["stdout"].write("%s is %d in %d %s" % ( + target_user.nickname, age, days, days_str)) else: - event["stdout"].write("%s birthday is in %d days" % ( - _apostrophe(target_user.nickname), days)) + event["stdout"].write("%s birthday is in %d %s" % ( + _apostrophe(target_user.nickname), days, days_str)) else: if years: event["stdout"].write("%s is %d today! 🎉" % ( |
