This commit is contained in:
team3
2026-09-30 00:59:59 +02:00
parent 7bf9667007
commit c589e389df
20 changed files with 1814 additions and 29 deletions

View File

@@ -232,6 +232,21 @@ def alle(session_id, host=False):
return out
def juengster():
"""Der zuletzt geschaute Abend — für Marken ohne Dreh."""
with connect() as conn:
row = conn.execute(
"SELECT * FROM watched ORDER BY watched_at DESC, id DESC LIMIT 1"
).fetchone()
return dict(row) if row else None
def von_film(movie_id):
with connect() as conn:
row = conn.execute("SELECT * FROM watched WHERE movie_id = ?", (movie_id,)).fetchone()
return dict(row) if row else None
def markieren(movie):
"""Film als geschaut eintragen. Ein zweiter Klick ändert nichts."""
with connect() as conn: