Skip to content

Commit

Permalink
fix resource version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Oct 24, 2023
1 parent abca5b0 commit 56f8d48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/update_external_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ def update_resource(
else:
raise ValueError(resource["status"])

for idx, known_version in enumerate(list(resource["versions"])):
if known_version["version_id"] == version_id and new_version.get("rdf_source") == known_version.get(
"rdf_source"
):
for known_version in resource["versions"]:
if known_version["version_id"] == version_id:
# fetched resource is known
return "old_hit"

Expand Down

0 comments on commit 56f8d48

Please sign in to comment.