Foppe Hemminga преди 5 години
родител
ревизия
9481f557e7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cron.py

+ 1 - 1
cron.py

@@ -18,7 +18,7 @@ def send_notification(maintainer, player, property, old_value, new_value):
         AND player = ?
         AND property = 'name';"""
     cur.execute(query, (maintainer, player))
-    name = cur.fetchone()['name']
+    name = cur.fetchone()['value']
     message = f"{name} [{player}] property '{property}' changed from {old_value} to {new_value}"
     message_json = {"content": message}
     response = requests.post(url, json=message_json)