From 34a373a5a14e3481dc188025ad3ed5f88ceff014 Mon Sep 17 00:00:00 2001 From: cjw <792430652@qq.com> Date: Mon, 16 Feb 2026 03:04:35 +0800 Subject: [PATCH] deving --- src/api/routes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/routes.py b/src/api/routes.py index b05cbd5..c492937 100644 --- a/src/api/routes.py +++ b/src/api/routes.py @@ -147,7 +147,7 @@ async def get_file_history(db_session: AsyncSession = Depends(get_db_session)): result = await db_session.execute( select(ProcessingTask, STPFile) .join(STPFile, ProcessingTask.stp_file_id == STPFile.id) - .order_by(ProcessingTask.created_at.desc()) + .order_by(ProcessingTask.created_time.desc()) ) tasks = result.all() @@ -162,7 +162,7 @@ async def get_file_history(db_session: AsyncSession = Depends(get_db_session)): file_groups[filename].append({ "task_id": task.task_id, "filename": filename, - "upload_time": task.created_at.isoformat() if task.created_at else "", + "upload_time": task.created_time.isoformat() if task.created_time else "", "status": task.status, "file_size": stp_file.file_size }) @@ -205,7 +205,7 @@ async def get_file_records(filename: str): select(ProcessingTask, STPFile) .join(STPFile, ProcessingTask.stp_file_id == STPFile.id) .where(STPFile.original_filename == decoded_filename) - .order_by(ProcessingTask.created_at.desc()) + .order_by(ProcessingTask.created_time.desc()) ) tasks = result.all() @@ -217,7 +217,7 @@ async def get_file_records(filename: str): "task_id": task.task_id, "filename": stp_file.original_filename, "file_size": stp_file.file_size, - "upload_time": task.created_at.isoformat() if task.created_at else "", + "upload_time": task.created_time.isoformat() if task.created_time else "", "status": task.status, "completed_at": task.completed_at.isoformat() if task.completed_at else "", "geometry_data": task.geometry_data,