Skip to content
Snippets Groups Projects
Commit 4f46e17b authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Parsing timedelta string

* Typo on 'M' for month in the dict
parent 39080607
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ def _dateparse(datestr):
raise Exception("Could not parse argument to a date") from e
# Convert all in minutes
minutes = q*{'m':1, 'h':60, 'd':60*24, 'm':30*60*24}[datestr[-1]]
minutes = q*{'m':1, 'h':60, 'd':60*24, 'M':30*60*24}[datestr[-1]]
return datetime.timedelta(minutes=minutes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment