Skip to content

Commit

Permalink
Fixed having no publisher when fetching from CV
Browse files Browse the repository at this point in the history
  • Loading branch information
Casvt committed Nov 27, 2023
1 parent 7c89d4a commit a803888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion backend/comicvine.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __format_volume_output(self, volume_data: dict) -> dict:
'aliases': [],
'comicvine_info': volume_data.get('site_detail_url'),

'publisher': volume_data.get('publisher', {}).get('name'),
'publisher': (volume_data.get('publisher') or {}).get('name'),
'issue_count': int(volume_data['count_of_issues'])
}

Expand Down
1 change: 0 additions & 1 deletion backend/library_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def propose_library_import(limit: int = 500) -> List[dict]:
else:
folder = basename(dirname(f))
folders.add(folder)
print(folders, f)
if len(folders) > limit:
break
limited_files_append(f)
Expand Down

0 comments on commit a803888

Please sign in to comment.