Build & Deploy / build (push) Successful in 23s
- SECRET_KEY et DATABASE_URL externalisés (Vault -> env), plus de secret en dur - SQLite -> postgres-shared (psycopg2), schéma créé au boot (entrypoint.sh) - Dockerfile + docker-compose (Watchtower) + .gitea/workflows/build.yml Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
241 B
Python
11 lines
241 B
Python
from database.database import SessionLocal
|
|
from database.models import Document
|
|
|
|
db = SessionLocal()
|
|
|
|
documents = db.query(Document).all()
|
|
|
|
print(f"Total documents: {len(documents)}")
|
|
|
|
for doc in documents[:5]:
|
|
print(doc.title) |