fix: import UTC in import_generation_from_zip function scope

The function-local import was missing UTC, causing NameError at runtime
when datetime.now(UTC) was called.
This commit is contained in:
Will Anderson
2026-10-03 09:26:05 +00:00
committed by jamiepine
parent 851defa859
commit 5b79892a17
+1 -1
View File
@@ -347,7 +347,7 @@ async def import_generation_from_zip(file_bytes: bytes, db: Session) -> dict:
from pathlib import Path from pathlib import Path
import tempfile import tempfile
import shutil import shutil
from datetime import datetime from datetime import UTC, datetime
from .. import config from .. import config
zip_buffer = io.BytesIO(file_bytes) zip_buffer = io.BytesIO(file_bytes)