Skip to content

Commit

Permalink
fix deprecation warning (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienLeem authored Mar 19, 2024
1 parent 31ffe6e commit 1e38f9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pyopensky/trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def history(
stmt = stmt.where(
StateVectorsData4.time >= start_ts,
StateVectorsData4.time <= stop_ts,
StateVectorsData4.hour >= start_ts.floor("1H"),
StateVectorsData4.hour < stop_ts.ceil("1H"),
StateVectorsData4.hour >= start_ts.floor("1h"),
StateVectorsData4.hour < stop_ts.ceil("1h"),
)

if len(selected_columns) > 0:
Expand Down Expand Up @@ -775,8 +775,8 @@ def rawdata(
)
.group_by(StateVectorsData4.icao24)
.where(
StateVectorsData4.hour >= start_ts.floor("1H"),
StateVectorsData4.hour <= stop_ts.ceil("1H"),
StateVectorsData4.hour >= start_ts.floor("1h"),
StateVectorsData4.hour <= stop_ts.ceil("1h"),
StateVectorsData4.time >= start_ts,
StateVectorsData4.time <= stop_ts,
)
Expand Down Expand Up @@ -828,8 +828,8 @@ def rawdata(
stmt = stmt.where(
Table.mintime >= start_ts,
Table.mintime <= stop_ts,
Table.hour >= start_ts.floor("1H"),
Table.hour < stop_ts.ceil("1H"),
Table.hour >= start_ts.floor("1h"),
Table.hour < stop_ts.ceil("1h"),
)

if limit is not None:
Expand Down

0 comments on commit 1e38f9a

Please sign in to comment.