globaler Filter für Qualitätsgates von Trainings #41

Merged
Lars merged 8 commits from develop into main 2026-03-24 08:44:22 +01:00
Showing only changes of commit b317246bcd - Show all commits

View File

@ -76,6 +76,8 @@ def _get_profile_data(pid: str):
cur.execute("SELECT * FROM nutrition_log WHERE profile_id=%s ORDER BY date DESC LIMIT 90", (pid,))
nutrition = [r2d(r) for r in cur.fetchall()]
# Quality-Filter: nur hochwertige Aktivitäten für KI-Analyse (Issue #24)
# TODO (#28): quality_level als Parameter (all, quality, very_good, excellent)
# Zukünftig: GET /api/insights/run/{slug}?quality_level=quality
cur.execute("""
SELECT * FROM activity_log
WHERE profile_id=%s