Skip to content
Snippets Groups Projects

Remove truncate and add on conflict clause instead

Merged Jonah Husson requested to merge hotfix/remove-truncate into master
Compare and Show latest version
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -110,7 +110,7 @@ def main():
@@ -110,7 +110,7 @@ def main():
# Pass a copy because the dict will be mutated
# Pass a copy because the dict will be mutated
set_active_nodes(conn, copy.deepcopy(new_dict))
set_active_nodes(conn, copy.deepcopy(new_dict))
#
# Update the new dictionary of active nodes
active_dict = new_dict
active_dict = new_dict
time.sleep(polling_freq)
time.sleep(polling_freq)
@@ -719,7 +719,7 @@ def set_authorizer_nodes(conn, to_add, to_delete):
@@ -719,7 +719,7 @@ def set_authorizer_nodes(conn, to_add, to_delete):
except Exception as e:
except Exception as e:
log.error(f"Failed to remove node from authorizer DB: {cur.query}")
log.error(f"Failed to remove node from authorizer DB: {cur.query}")
raise e
raise e
to_revoke.append(row[1])
to_revoke.append(row[1])
insert_list = [(i, None, None) for i in to_add]
insert_list = [(i, None, None) for i in to_add]
# Insert Node information into authorizer db
# Insert Node information into authorizer db
Loading