Skip to content

Commit

Permalink
gen info dir bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelo7 committed Sep 28, 2024
1 parent 15aae7a commit cd95b9a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion oc_meta/run/gen_info_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def explore_directories(root_path, redis_host, redis_port, redis_db):
for batch_key, inner_value in value.items():
if batch_key in final_batch_updates[supplier_prefix]:
for identifier, counter_value in inner_value.items():
current_value = final_batch_updates[supplier_prefix][batch_key][identifier]
current_value = final_batch_updates[supplier_prefix][batch_key].get(identifier, 0)
final_batch_updates[supplier_prefix][batch_key][identifier] = max(current_value, counter_value)
else:
final_batch_updates[supplier_prefix][batch_key] = inner_value
Expand Down
9 changes: 5 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ oc-ds-converter = "1.0.3"
ijson = "^3.2.3"
internetarchive = "^3.7.0"
zenodopy = "^0.3.0"
oc-ocdm = ">=9.0.0,<10.0.0"
oc-ocdm = "9.1.0"
retrying = "^1.3.4"
orjson = "^3.10.7"
rdflib-ocdm = "0.3.11"
Expand Down
1 change: 0 additions & 1 deletion referenced_without_triples.json

This file was deleted.

0 comments on commit cd95b9a

Please sign in to comment.