Hi - I just made prepareData(data) on my computer leave like this:
# get rid of None values
filtered = {k: v for k, v in data.items() if v is not None}
data.clear()
data.update(filtered)
Does this make sense for anybody else ? My usecase is: I have a plentyful of
attibutes and want to store only these with are not None. Also I found it weird to
store Strings in Solr with a value of "None" but YUMV ?
Hi - I just made prepareData(data) on my computer leave like this:
Does this make sense for anybody else ? My usecase is: I have a plentyful of attibutes and want to store only these with are not None. Also I found it weird to store Strings in Solr with a value of "None" but YUMV ?
thx for your input, Sascha