Dirty fixing of some more mariadb -> mysql-connector issues....

TODO: do it properly.
This commit is contained in:
Cedric
2023-08-08 14:07:36 +02:00
parent 7f55828c5f
commit bdc826c15b
8 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class TowerHotController(BaseModule):
with self.db.lock:
with self.db.pool.get_connection() as conn:
with conn.cursor() as cur:
cur.executemany("UPDATE towers SET penalty_until=? WHERE pf_id=? AND site_number=? AND org_id=?", blob)
cur.executemany("UPDATE towers SET penalty_until=? WHERE pf_id=? AND site_number=? AND org_id=?".replace("?", "%s"), blob)
# self.db.exec("UPDATE towers SET penalty_until=? where org_id=?",
# [time.time() + 60 * 60, event_data.attacker.org_id])