Skip to content

Commit

Permalink
Fixed bug where some arrays were not concatenating correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
GastonZalba committed Mar 22, 2023
1 parent f34d3ef commit e1665bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion params.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
'updated_date',

'authorships.author:count',

'authorships.author.display_name',
'authorships.author.id',

Expand Down
10 changes: 9 additions & 1 deletion process.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,16 @@ def create_list_separator(num):
# El problema persiste incluso si se guarda como string "True" o "TRUE".
if isinstance(value, bool):
value = 0 if value == False else 1
else:
# Para evitar errores al concatenar valores "None"
if not value:
value = ''

results[f'{col_name}'] = value
if col_name in results:
results[col_name] = results[col_name] + \
create_list_separator(arrnum-1) + value
else:
results[col_name] = value


def check_invalid_api_words_and_initials(author, author_api):
Expand Down

0 comments on commit e1665bc

Please sign in to comment.