Files
HangmanLab.Backend/db/utils.py
2024-12-02 19:50:34 +00:00

7 lines
133 B
Python

#db/utils.py
from db import get_db
def insert_log(log_entry):
with get_db() as db:
db.add(log_entry)
db.commit()