It seems alright to leave the field empty, just have to check that it is empty

pull/541/head
Derek LaHousse 2021-12-30 09:25:44 -05:00
parent 792a548735
commit 6c4e788110
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ class CsvParser():
@staticmethod @staticmethod
def __deal_with_tags(attribute): def __deal_with_tags(attribute):
attribute['Tag'] = [{'name': tag.strip()} for tag in attribute['Tag'].split(',')] if 'Tag' in attribute.keys():
attribute['Tag'] = [{'name': tag.strip()} for tag in attribute['Tag'].split(',')]
def __get_score(self): def __get_score(self):
score = 1 if 'to_ids' in self.header else 0 score = 1 if 'to_ids' in self.header else 0