diff options
-rw-r--r-- | jimbrella/jform.py | 5 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/jimbrella/jform.py b/jimbrella/jform.py index e9f2a50..dc9d769 100644 --- a/jimbrella/jform.py +++ b/jimbrella/jform.py @@ -1,7 +1,7 @@ import requests import json from pathlib import Path -from datetime import datetime +from dateutil.parser import isoparse class JForm: @@ -108,6 +108,7 @@ class JForm: # when we exceed the total pages of a questionnaire # instead it just returns 200 along with an empty data field break + for sheet in sheets: if sheet["id"] <= bookmark: # is bookmark or earlier than bookmark @@ -121,7 +122,7 @@ class JForm: "id": ans[1]["answer"], "phone": ans[2]["answer"], "key": int(ans[3]["answer"]), - "date": datetime.fromisoformat(sheet["submitted_at"]), + "date": isoparse(sheet["submitted_at"]), } ) page += 1 diff --git a/requirements.txt b/requirements.txt index ec9ff55..fb205e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ flask toml user_agents +dateutil |