forked from LBRYCommunity/lbry-sdk
extract singular tags, languages, locations from kwargs
This commit is contained in:
parent
d232eeaf81
commit
e3f080a7ad
2 changed files with 4 additions and 2 deletions
|
@ -1 +0,0 @@
|
|||
from .claim import Claim
|
|
@ -139,6 +139,9 @@ class BaseClaim:
|
|||
field = getattr(self, l)
|
||||
if kwargs.pop(f'clear_{l}', False):
|
||||
del field[:]
|
||||
if l in ('tags', 'languages', 'locations'):
|
||||
items = kwargs.pop(l[:-1], None)
|
||||
else:
|
||||
items = kwargs.pop(l, None)
|
||||
if items is not None:
|
||||
if isinstance(items, str):
|
||||
|
|
Loading…
Reference in a new issue