Skip to content

Commit

Permalink
fix: non_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jan 15, 2025
1 parent 56a85a4 commit e06c957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgm_tv_wiki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def non_zero(self) -> Wiki:
fields.append(f)
continue

if isinstance(value, list):
if isinstance(value, tuple):
v = [x for x in value if x.key or x.value]
if v:
fields.append(Field(key=f.key, value=tuple(v)))
Expand Down

0 comments on commit e06c957

Please sign in to comment.