Skip to content

Commit

Permalink
Update entry_dedupe to support None flags.
Browse files Browse the repository at this point in the history
For #254.
  • Loading branch information
lemon24 committed Jan 29, 2023
1 parent 9916eae commit c23457e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/reader/plugins/entry_dedupe.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ def by_title(e):

def _get_flag_args(entry, duplicates, name):
entries = duplicates + [entry]
flag = any(getattr(d, name) for d in entries)

flags = {getattr(d, name) for d in entries}
for flag in (True, False, None): # pragma: no cover
if flag in flags:
break

modified_name = f'{name}_modified'
modifieds = (
Expand Down

0 comments on commit c23457e

Please sign in to comment.