FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 2db42ba8 authored by L. Bower's avatar L. Bower
Browse files

changing assert to allow today's date as a rundate

parent 2b8a157a
No related branches found
No related tags found
No related merge requests found
...@@ -309,7 +309,7 @@ def parse_and_check_args(todayString) -> dict: ...@@ -309,7 +309,7 @@ def parse_and_check_args(todayString) -> dict:
# early limit is quite arbitrary, but this is earliest year of available survey data for Ethiopia # early limit is quite arbitrary, but this is earliest year of available survey data for Ethiopia
date_limit_early = datetime.datetime.strptime('20070101','%Y%m%d') date_limit_early = datetime.datetime.strptime('20070101','%Y%m%d')
assert date_limit_early < provided_start_date assert date_limit_early < provided_start_date
assert provided_start_date < today_date assert provided_start_date <= today_date
except (ValueError, AssertionError) as e: except (ValueError, AssertionError) as e:
logger.exception("Provided start date string is formatted incorrectly or out of range, or end date not also defined") logger.exception("Provided start date string is formatted incorrectly or out of range, or end date not also defined")
......
output of tests will get written here
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment