From e010d21e4cb546e03c7406310feca3d35c2b053a Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 20 Dec 2018 20:48:28 +0000 Subject: [PATCH] year/month/day should be an int (badges.py) --- modules/badges.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/badges.py b/modules/badges.py index 286ba1fc..02e729bd 100644 --- a/modules/badges.py +++ b/modules/badges.py @@ -112,7 +112,10 @@ class Module(ModuleManager.BaseModule): raise utils.EventError("Invalid date format, please use %s" % HUMAN_FORMAT_HELP) value = datetime.datetime( - year=match.group(1), month=match.group(2), day=match.group(3)) + year=int(match.group(1)), + month=int(match.group(2)), + day=int(match.group(3)) + ) badges[found_badge] = self._format_datetime(value) self._set_badges(event["user"], badges)