add metadata for external usage

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

View File

@ -296,6 +296,15 @@ def main():
error(f"bad replay {r}") error(f"bad replay {r}")
continue continue
db.execute(
"""
INSERT INTO games(id, p1, p2, format, uploadtime)
VALUES (?, ?, ?, ?, ?)
ON CONFLICT DO NOTHING
""",
(replay.id, replay.p1, replay.p2, replay.format, replay.uploadtime),
)
parse_log(replay.id, replay.log, into=db) parse_log(replay.id, replay.log, into=db)
db.commit() db.commit()