diff options
author | Alasdair Colley <ac@brede.(none)> | 2011-11-01 14:02:15 +0000 |
---|---|---|
committer | Alasdair Colley <ac@brede.(none)> | 2011-11-01 14:02:15 +0000 |
commit | 19797b659be5b03ccc5d9f4047308f1e4a2e122f (patch) | |
tree | 193f3590e2dfb03cf2ffc1f992a3054d57295f19 | |
parent | cfe908bfa13eb979532a28c594e3bc7edda06f26 (diff) |
Fixed bug with custom events
-rw-r--r-- | perc | 6 | ||||
-rw-r--r-- | perc.cfg | 2 |
2 files changed, 4 insertions, 4 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] @@ -5,8 +5,8 @@ "hyphens": "%Y-%m-%d" }, "time": { - "12hour": "%I:%M%p", "military": "%H%M", + "12hour": "%I:%M%p", "12houronly": "%I%p", "civilian": "%H:%M" } |