Skip to content

Commit

Permalink
fix mypy check
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed May 25, 2020
1 parent 9f70ef3 commit 1c08fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maggma/builders/group_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_ids_to_process(self) -> Iterable:
failed_keys = self.target.distinct(
self._target_keys_field, criteria={"state": "failed", **query}
)
unprocessed_ids = all_ids - set(processed_ids) + set(failed_keys)
unprocessed_ids = all_ids - (set(processed_ids) - set(failed_keys))
self.logger.debug(f"Found {len(failed_keys)} failed IDs in target")
else:
unprocessed_ids = all_ids - set(processed_ids)
Expand Down

0 comments on commit 1c08fe7

Please sign in to comment.