|
@@ -9,7 +9,7 @@ def create_ifnot_onrecord(self, table, name):
|
|
|
|
|
|
|
|
# Correct capitalisation if needed.
|
|
# Correct capitalisation if needed.
|
|
|
if not name == record[0]:
|
|
if not name == record[0]:
|
|
|
- self.db.run("UPDATE " + table + " SET name=%s, WHERE LOWER(name)=LOWER(%s) AND network=%s", (name, name, self.network, ))
|
|
|
|
|
|
|
+ self.db.run("UPDATE " + table + " SET name=%s WHERE LOWER(name)=LOWER(%s) AND network=%s", (name, name, self.network, ))
|
|
|
|
|
|
|
|
# Create record.
|
|
# Create record.
|
|
|
else:
|
|
else:
|