Fix parse error 'every hour' -> 'hourly' recurrence

This commit is contained in:
Matt Snider 2019-01-21 20:38:19 +01:00
parent ef26faa356
commit a2cb6b7887
2 changed files with 2 additions and 1 deletions

View File

@ -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'

View File

@ -111,7 +111,7 @@ RE_SPECIAL = re.compile(
PERIOD_TO_SIMPLE = {
'hour': 'hour',
'hour': 'hourly',
'day': 'daily',
'week': 'weekly',
'month': 'monthly',