Skip to content

Commit

Permalink
refactor: simplify comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Engmark <[email protected]>
  • Loading branch information
paulfouquet and l0b0 authored Feb 1, 2024
1 parent 2b69926 commit 706400c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/collection_from_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main() -> None:
# to return a result list per suffix, but we would have to call `get_object_parallel_multithreading()`
# for each of them to avoid this if/else.
if key.endswith(SUFFIX_JSON):
if not arguments.collection_id == content.get("collection"):
if arguments.collection_id != content.get("collection"):
get_log().trace(
"skipping: item.collection != collection.id",
file=key,
Expand Down

0 comments on commit 706400c

Please sign in to comment.