Foppe Hemminga 5 năm trước cách đây
mục cha
commit
e7cb1c25a9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cron.py

+ 1 - 0
cron.py

@@ -39,6 +39,7 @@ def update_value(maintainer, player, property, new_value):
     conn.row_factory = sqlite3.Row
     cur = conn.cursor()
     cur.execute(query, (maintainer, player, property, new_value))
+    conn.commit()
 
 def update_missing_value(maintainer, player, property, value):
     query = """INSERT OR REPLACE INTO player (maintainer, player, property, value)