Skip to content

Commit

Permalink
Merge pull request #108 from NASA-PDS/harvest_213
Browse files Browse the repository at this point in the history
NASA-PDS/harvest#213: Update to fix regression to skip files if already registered
  • Loading branch information
tloubrieu-jpl authored Dec 16, 2024
2 parents 0aba223 + b8fc96c commit 19358bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Set<String> nonExistingIds(Collection<String> from_ids)
throws UnsupportedOperationException, IOException {
HashSet<String> results = new HashSet<String>(from_ids);
for (Hit<Object> hit : this.parent.hits().hits()) {
if (from_ids.contains(hit.id())) from_ids.remove(hit.id());
if (from_ids.contains(hit.id())) results.remove(hit.id());
}
return results;
}
Expand Down

0 comments on commit 19358bd

Please sign in to comment.