Merge pull request #541 from ManoftheSea/main

It seems alright to leave the field empty, just have to check empty
pull/542/head
Alexandre Dulaunoy 2021-12-30 18:16:08 +01:00 committed by GitHub
commit 895e992349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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