added new gemini creations

This commit is contained in:
2026-01-03 14:06:04 -05:00
parent 1dee6556c3
commit bbaa0daa7b
18 changed files with 449 additions and 0 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()