mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 03:55:22 +02:00
feat: Upgrade to Python 3.12 (#4675)
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
0e6a40e210
commit
87504fbb05
43 changed files with 128 additions and 163 deletions
|
@ -1,4 +1,4 @@
|
|||
from datetime import datetime, timezone
|
||||
from datetime import UTC, datetime
|
||||
from functools import cached_property
|
||||
|
||||
from fastapi import APIRouter, BackgroundTasks, Depends
|
||||
|
@ -45,7 +45,7 @@ class ReadWebhookController(BaseUserController):
|
|||
"""Manually re-fires all previously scheduled webhooks for today"""
|
||||
|
||||
start_time = datetime.min.time()
|
||||
start_dt = datetime.combine(datetime.now(timezone.utc).date(), start_time)
|
||||
start_dt = datetime.combine(datetime.now(UTC).date(), start_time)
|
||||
post_group_webhooks(start_dt=start_dt, group_id=self.group.id, household_id=self.household.id)
|
||||
|
||||
@router.get("/{item_id}", response_model=ReadWebhook)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue