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
defsetNone4List(self,listOfDicts,fields):
''' set the given fields to None for the records in the given listOfDicts if they are not set Args: listOfDicts(list): the list of records to work on fields(list): the list of fields to set to None '''forrecordinlistOfDicts:
self.setNone(record, fields)
defsetNone(self,record,fields):
''' make sure the given fields in the given record are set to none Args: record(dict): the record to work on fields(list): the list of fields to set to None '''forfieldinfields:
ifnotfieldinrecord:
record[field]=None
but make sure a copy of the records is optionally used to keep the original list of dict as is.
The text was updated successfully, but these errors were encountered:
but make sure a copy of the records is optionally used to keep the original list of dict as is.
The text was updated successfully, but these errors were encountered: