Skip to content

Commit

Permalink
ok we pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
kavorite committed Jun 25, 2024
1 parent 034b896 commit a304679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _parse_reports(body):
since = returned_full[4]["created_at"]

tzone = timezone(timedelta(hours=int(since[-3:])))
stamp = datetime.strptime("%Y-%m-%d %H:%M:%S", since[:-3]).astimezone(tzone)
stamp = datetime.strptime(since[:-3], "%Y-%m-%d %H:%M:%S.%f").replace(tzinfo=tzone)
response = test_client.get(
"/db_export", params={"api_key": api_key, "table": "reports", "since": stamp.isoformat()}
)
Expand Down

0 comments on commit a304679

Please sign in to comment.