Skip to content

Commit 02f4439

Browse files
authored
Update database.py
Signed-off-by: NK <nk@nikaiw.io>
1 parent c5db547 commit 02f4439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/smb/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def add_host(
257257
# TODO: find a way to abstract this away to a single Upsert call
258258
q = Insert(self.HostsTable) # .returning(self.HostsTable.c.id)
259259
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)
260+
q = q.on_conflict_do_update(index_elements=["ip"], set_=update_columns)
261261

262262
self.db_execute(q, hosts) # .scalar()
263263
# we only return updated IDs for now - when RETURNING clause is allowed we can return inserted

0 commit comments

Comments
 (0)