|
@@ -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')
|