You've already forked DataMate
fix(python): remove datetime.UTC usage for Python 3.10 compatibility
Replace datetime.datetime.now(datetime.UTC) with datetime.datetime.now() to fix compatibility issues with Python 3.10 and earlier versions. datetime.UTC is only available in Python 3.11+, causing 500 errors in production environment. Files fixed: - app/module/dataset/service/pdf_extract.py - app/module/generation/service/export_service.py
This commit is contained in:
@@ -87,7 +87,7 @@ class SynthesisDatasetExporter:
|
||||
file_path=file_path,
|
||||
file_type="jsonl",
|
||||
file_size=file_size,
|
||||
last_access_time=datetime.datetime.now(datetime.UTC),
|
||||
last_access_time=datetime.datetime.now(),
|
||||
)
|
||||
self._db.add(df)
|
||||
created_files.append(df)
|
||||
|
||||
Reference in New Issue
Block a user