From d9baa37267442766ad4cda6ec08f32d49ddef3df Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 4 Mar 2026 13:18:52 +0100 Subject: [PATCH] minimal fixes --- app/db.py | 3 ++- app/sockets/types.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/db.py b/app/db.py index 2a8c773..00de6f3 100644 --- a/app/db.py +++ b/app/db.py @@ -29,7 +29,8 @@ def init_db(app): # create inital tables db.executescript(""" 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, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); diff --git a/app/sockets/types.py b/app/sockets/types.py index 4979d40..4ab197a 100644 --- a/app/sockets/types.py +++ b/app/sockets/types.py @@ -69,6 +69,7 @@ ClientEventSchema = { } +# Made with Chatgpt def _matches_annotation(value: Any, annotation: Any) -> bool: """Minimal runtime checker for the annotations used in WS payloads.""" origin = get_origin(annotation)