track knockouts

This commit is contained in:
xeals 2023-03-27 20:17:46 +11:00
parent 73554214f7
commit ef70128552
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

12
main.py
View File

@ -53,10 +53,14 @@ def _init_db(conn: sqlite3.Connection):
game, player, name, specie,
UNIQUE(game, player, specie)
);
"""
)
conn.execute(
"""
CREATE TABLE IF NOT EXISTS knockouts(
game, turn, player, name,
UNIQUE(game, turn, player)
);
CREATE TABLE IF NOT EXISTS games(
id, p1, p2, format, uploadtime,
UNIQUE(id)
)
"""
)