diff options
Diffstat (limited to 'perc')
-rw-r--r-- | perc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,7 +69,7 @@ WEEK_LENGTH = 7 WEEKEND = [ SATURDAY, SUNDAY ] WORK_WEEK = [ MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY ] -IMPORTANT_TEMPORAL_EVENTS = ["tomorrow", "friday", "new year", "newyear", "christmas", "xmas", "weekend", "midday", "noon", "tg", "intense", "lunch", "easter", "halloween"] +IMPORTANT_TEMPORAL_EVENTS = ["tomorrow", "friday", "new year", "newyear", "christmas", "xmas", "weekend", "midday", "noon", "lunch", "easter", "halloween"] OUTPUT_TYPES = ["perc", "bar", "ram", "pint"] @@ -341,8 +341,8 @@ def removeEvent(name): def parseUserArgs(args, user): start, finish, start_formatted, finish_formatted = user.start, user.finish, user.start.strftime(user.format), user.finish.strftime(user.format) - if args and isImportantTemporalEvent(args[0].lower()): - start, finish, start_formatted, finish_formatted = parseTemporalEvent(args[0].lower(), user) + if args and isImportantTemporalEvent(args[0]): + start, finish, start_formatted, finish_formatted = parseTemporalEvent(args[0], user) else: format = None times = args[0:2] |