minimal fixes

This commit is contained in:
2026-03-04 13:18:52 +01:00
parent 9342f89d93
commit d9baa37267
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ def init_db(app):
# create inital tables # create inital tables
db.executescript(""" db.executescript("""
CREATE TABLE IF NOT EXISTS users ( CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT,username TEXT UNIQUE NOT NULL, id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,
password_hash TEXT NOT NULL, password_hash TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); );
+1
View File
@@ -69,6 +69,7 @@ ClientEventSchema = {
} }
# Made with Chatgpt
def _matches_annotation(value: Any, annotation: Any) -> bool: def _matches_annotation(value: Any, annotation: Any) -> bool:
"""Minimal runtime checker for the annotations used in WS payloads.""" """Minimal runtime checker for the annotations used in WS payloads."""
origin = get_origin(annotation) origin = get_origin(annotation)