Added a significant overhaul to the server manager.

This commit is contained in:
2025-12-29 16:07:30 -05:00
parent 4f4e5276a6
commit 216e18a7b4
796 changed files with 528631 additions and 2671 deletions
+21
View File
@@ -0,0 +1,21 @@
import sys
import os
# Assuming check_db.py is in the project root
# Add the backend directory to sys.path so 'app' package can be found
sys.path.insert(0, os.path.abspath('ServerManagerWebApp/backend'))
# Now, import modules using their full path from the backend as root
# e.g., 'app.database' and 'app.models'
from app.database import SessionLocal
from app.models import VideoFile
try:
db = SessionLocal()
count = db.query(VideoFile).count()
print(f"Number of VideoFile entries in the database: {count}")
except Exception as e:
print(f"Error checking database: {e}")
finally:
if 'db' in locals() and db:
db.close()