mirror of
https://github.com/R0m1k3/Reviflow.git
synced 2026-10-17 20:29:54 +02:00
Sauvegarde de l'état (réparation)
This commit is contained in:
commit
7c04fffe77
434 files changed
+83923
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import asyncio
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.append(os.getcwd())
|
||||
|
||||
from sqlalchemy import text
|
||||
from app.core.db import engine
|
||||
|
||||
async def check_learner_scores():
|
||||
learner_id = '21da4b0e-18d8-431c-bc62-b35e7677d981'
|
||||
async with engine.begin() as conn:
|
||||
print(f"Checking Score table for learner {learner_id}...")
|
||||
result = await conn.execute(text(f"SELECT id, topic, score, created_at FROM score WHERE learner_id = '{learner_id}'"))
|
||||
rows = result.fetchall()
|
||||
print(f"Found {len(rows)} scores.")
|
||||
for row in rows:
|
||||
print(f"Topic: '{row.topic}', Score: {row.score}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(check_learner_scores())
|
||||
Reference in new issue
Block a user