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

@@ -16,6 +16,7 @@ einem Textfeld, in das jeder schreiben kann, was er will.
import sqlite3
from datetime import datetime, timezone
from . import db
from .db import connect
SCHEMA = """
@@ -146,6 +147,18 @@ def aktuell(session_id):
return _oeffentlich(row) if row else None
# Der Host-Film: das Passwort für den Hostmodus, wie der Anmeldefilm
# für einen Namen. Steht in der meta-Tabelle, gesetzt aus der Verwaltung.
def host_film_setzen(movie_id):
with connect() as conn:
db.set_meta(conn, "host_film", str(movie_id) if movie_id else "")
def host_film():
wert = db.get_meta("host_film")
return int(wert) if wert else None
def ist_host(session_id):
with connect() as conn:
return bool(