Skip to content

Commit

Permalink
chore: Fix dangerous default argument (#7335)
Browse files Browse the repository at this point in the history
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Oct 7, 2020
1 parent 3dbeb1d commit 45f188c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/helpers/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,15 @@ def create_save_pdf(
identifier=get_file_name(),
upload_dir='static/media/',
new_renderer=False,
extra_identifiers={},
extra_identifiers=None,
):
"""
Create and Saves PDFs from html
:param pdf_data:
:return:
"""
if extra_identifiers is None:
extra_identifiers = {}
filedir = current_app.config.get('BASE_DIR') + dir_path

if not os.path.isdir(filedir):
Expand Down

0 comments on commit 45f188c

Please sign in to comment.