Skip to content

Commit

Permalink
fix CI on Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jul 16, 2024
1 parent cbeb913 commit 2b8629b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ target-version = "py312"

[lint]
select = ["E", "F", "UP", "B", "SIM", "I", "W", "C90", "ASYNC", "A", "C4", "PERF", "RUF"]
ignore = ["B019", "C901"]
ignore = ["B019", "C901", "UP017"]
6 changes: 3 additions & 3 deletions src/eodash_catalog/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys
import uuid
from collections.abc import Callable
from datetime import UTC, datetime, timedelta
from datetime import datetime, timedelta, timezone
from itertools import groupby
from operator import itemgetter

Expand Down Expand Up @@ -513,9 +513,9 @@ def handle_WMS_endpoint(
if query := endpoint_config.get("Query"):
datetime_query = [times[0], times[-1]]
if start := query.get("Start"):
datetime_query[0] = parser.isoparse(start).replace(tzinfo=UTC)
datetime_query[0] = parser.isoparse(start).replace(tzinfo=timezone.utc)
if end := query.get("End"):
datetime_query[1] = parser.isoparse(end).replace(tzinfo=UTC)
datetime_query[1] = parser.isoparse(end).replace(tzinfo=timezone.utc)
# filter times based on query Start/End
times = [
datetime_str
Expand Down

0 comments on commit 2b8629b

Please sign in to comment.