log statements

This commit is contained in:
bton 2024-03-13 20:50:34 +01:00
parent 657c500f24
commit 437a7e596c
2 changed files with 14 additions and 14 deletions

View file

@ -36,7 +36,7 @@ def add_tag(user_id, tag_id):
c = db.cursor()
c.execute("INSERT OR IGNORE INTO tags (tagid, userid) VALUES ?, ?)", [tag_id, user_id])
db.commit()
log("addtag", after=tag_id, user_id=user_id)
log("add_tag", after=tag_id, user_id=user_id)
def remove_tag(tag_id):
db = get_db()
@ -44,7 +44,7 @@ def remove_tag(tag_id):
c.execute("SELECT * FROM tags WHERE tagid = ?", [tag_id])
user_id = c.fetchone()[1]
c.execute("DELETE FROM tags WHERE tagid = ?", [tag_id])
log("removetag", before=tag_id, user_id=user_id)
log("remove_tag", before=tag_id, user_id=user_id)
db.commit()
def change_balance(user_id, change):