From a2cb6b7887a24ffeb9ccb39301ac85872a718f93 Mon Sep 17 00:00:00 2001 From: Matt Snider Date: Mon, 21 Jan 2019 20:38:19 +0100 Subject: [PATCH] Fix parse error 'every hour' -> 'hourly' recurrence --- tests/test_recur.py | 1 + todoist_taskwarrior/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_recur.py b/tests/test_recur.py index 6e398dc..1bafb82 100644 --- a/tests/test_recur.py +++ b/tests/test_recur.py @@ -11,6 +11,7 @@ def test_hourly(): assert utils.parse_recur('every 1 hour') == 'hourly' assert utils.parse_recur('every 2 hour') == '2 hours' assert utils.parse_recur('every 2 hours') == '2 hours' + assert utils.parse_recur('every 3 hour') == '3 hours' assert utils.parse_recur('every 3 hours') == '3 hours' diff --git a/todoist_taskwarrior/utils.py b/todoist_taskwarrior/utils.py index 5cbcf3f..49a5fbb 100644 --- a/todoist_taskwarrior/utils.py +++ b/todoist_taskwarrior/utils.py @@ -111,7 +111,7 @@ RE_SPECIAL = re.compile( PERIOD_TO_SIMPLE = { - 'hour': 'hour', + 'hour': 'hourly', 'day': 'daily', 'week': 'weekly', 'month': 'monthly',