Skip to content

Commit

Permalink
upgrade pendulum
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Dec 18, 2023
1 parent 342cd91 commit 8f610e8
Show file tree
Hide file tree
Showing 3 changed files with 343 additions and 250 deletions.
2 changes: 1 addition & 1 deletion aggrec/aggregates.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ async def create_aggregate(

if aggregate_interval := request.headers.get("Aggregate-Interval"):
period = pendulum.parse(aggregate_interval)
if not isinstance(period, pendulum.Period):
if not isinstance(period, pendulum.Interval):
raise HTTPException(
status.HTTP_400_BAD_REQUEST, "Invalid Aggregate-Interval"
)
Expand Down
Loading

0 comments on commit 8f610e8

Please sign in to comment.