Foppe Hemminga hace 5 años
padre
commit
098f370c3d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      cron.py

+ 2 - 0
cron.py

@@ -34,6 +34,7 @@ def send_notification(maintainer, player, property, old_value, new_value):
     conn.close()
     conn.close()
 
 
 def update_value(maintainer, player, property, new_value):
 def update_value(maintainer, player, property, new_value):
+    print(f"update_value({maintainer}, {player}, {property}, {value})")
     query = """INSERT OR REPLACE INTO player (maintainer, player, property, value)
     query = """INSERT OR REPLACE INTO player (maintainer, player, property, value)
         VALUES (?, ?, ?, ?)"""
         VALUES (?, ?, ?, ?)"""
     conn = sqlite3.connect(settings.db_path + '/slork.sqlite')
     conn = sqlite3.connect(settings.db_path + '/slork.sqlite')
@@ -43,6 +44,7 @@ def update_value(maintainer, player, property, new_value):
     conn.commit()
     conn.commit()
 
 
 def update_missing_value(maintainer, player, property, value):
 def update_missing_value(maintainer, player, property, value):
+    print(f"update_missing_value({maintainer}, {player}, {property}, {value})")
     query = """INSERT OR REPLACE INTO player (maintainer, player, property, value)
     query = """INSERT OR REPLACE INTO player (maintainer, player, property, value)
         VALUES (?, ?, ?, ?);"""
         VALUES (?, ?, ?, ?);"""
     conn = sqlite3.connect(settings.db_path + '/slork.sqlite')
     conn = sqlite3.connect(settings.db_path + '/slork.sqlite')