You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
thx for your input,
Sascha
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: