We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5db547 commit 02f4439Copy full SHA for 02f4439
1 file changed
nxc/protocols/smb/database.py
@@ -257,7 +257,7 @@ def add_host(
257
# TODO: find a way to abstract this away to a single Upsert call
258
q = Insert(self.HostsTable) # .returning(self.HostsTable.c.id)
259
update_columns = {col.name: col for col in q.excluded if col.name not in "id"}
260
- q = q.on_conflict_do_update(index_elements=['ip'], set_=update_columns)
+ q = q.on_conflict_do_update(index_elements=["ip"], set_=update_columns)
261
262
self.db_execute(q, hosts) # .scalar()
263
# we only return updated IDs for now - when RETURNING clause is allowed we can return inserted
0 commit comments