create_draft_listing method (def todict) nullable items - BUG
Closed this issue · 1 comments
rubberfashion commented
There is a bug in your code:
def todict(obj, classkey=None, nullable=[]): ... if key not in nullable and value not in [[], "" or 0] else (key, None) ...
You None Key what have data. For example 'shipping_profile_id' what is nessesary for physical goods. (maybe mandatory) is None after providing data in the dict.
This will sove your problem. Not sure why you do this, if keys have values.
def todict(obj, classkey=None, nullable=[]): ... if value not in [[], "" or 0] else (key, None) ...
muratali016 commented
Thanks for the amazing repo @anitabyte