Skip to content
Snippets Groups Projects
Commit fb8ec6c3 authored by Millian Poquet's avatar Millian Poquet
Browse files

code: add date consistency assert

parent 55dddcd5
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ import logging
import requests
def do_celcat_calendar_request(min_date, max_date, module_apogee_codes, session, url='https://edt.univ-tlse3.fr/calendar/Home/GetCalendarData'):
assert min_date < max_date, f"min_date (value={min_date}) should be strictly greater than max_date (value={max_date})"
headers = {"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"}
fields = [
f'start={min_date}',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment