feat(database): add file path columns to files table during migration

fix(general): update processed files count query to use FileRecord.id

chore: add VSCode settings for pytest configuration
This commit is contained in:
Christian Krakau-Louis
2026-02-11 22:39:21 +01:00
parent 90b50d3625
commit 50cc0035d9
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ async def serve_index(request: Request, db: Session = Depends(get_db)):
# Import the model here to avoid circular imports
from app.models import FileRecord
processed_files = db.query(FileRecord).count()
processed_files = db.query(FileRecord.id).count()
except Exception as e:
# Log error but continue (don't break the page if DB query fails)
logger.error(f"Error counting files: {str(e)}")