Fix time duration and visuals

This commit is contained in:
2026-04-24 22:43:45 +02:00
parent ee0bb780c1
commit 192432f8e5
14 changed files with 281 additions and 111 deletions
+14
View File
@@ -0,0 +1,14 @@
import asyncio
from sqlalchemy import text
from app.database import engine
async def run_query():
async with engine.connect() as conn:
result = await conn.execute(text("SELECT * FROM sleep_session"))
rows = result.all()
print(f"Total rows: {len(rows)}")
for row in rows:
print(row)
if __name__ == "__main__":
asyncio.run(run_query())