diff --git a/backend/app/api/routers/admin.py b/backend/app/api/routers/admin.py index 1424d09..9d024fd 100644 --- a/backend/app/api/routers/admin.py +++ b/backend/app/api/routers/admin.py @@ -484,7 +484,7 @@ async def import_existing_media_assets( # 1. CadFiles with thumbnail_path cad_result = await db.execute( - text("SELECT id, thumbnail_path FROM cad_files WHERE thumbnail_path IS NOT NULL AND status = 'completed'") + text("SELECT id, thumbnail_path FROM cad_files WHERE thumbnail_path IS NOT NULL AND processing_status = 'completed'") ) for row in cad_result.fetchall(): cad_id, thumb_path = row