Skip to content

Commit

Permalink
fix: avoid overwriting results from database.csv
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
alandtse committed Nov 11, 2021
1 parent 2fd8507 commit fb15874
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions vr_address_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ def load_database(
id = int(row["id"])
sse = add_hex_strings(row["sse"])
vr = add_hex_strings(row["vr"])
id_sse[id] = sse
id_vr[id] = vr
loaded += 1
if id_vr_status.get(id):
if debug:
print(
f"Database Load Warning: {id} already loaded skipping load from {addresslib}"
)
else:
id_sse[id] = sse
id_vr[id] = vr
loaded += 1
except FileNotFoundError:
print(f"{addresslib} not found")

Expand Down

0 comments on commit fb15874

Please sign in to comment.