Skip to content

Commit 45f188c

Browse files
chore: Fix dangerous default argument (#7335)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent 3dbeb1d commit 45f188c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/api/helpers/files.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,15 @@ def create_save_pdf(
353353
identifier=get_file_name(),
354354
upload_dir='static/media/',
355355
new_renderer=False,
356-
extra_identifiers={},
356+
extra_identifiers=None,
357357
):
358358
"""
359359
Create and Saves PDFs from html
360360
:param pdf_data:
361361
:return:
362362
"""
363+
if extra_identifiers is None:
364+
extra_identifiers = {}
363365
filedir = current_app.config.get('BASE_DIR') + dir_path
364366

365367
if not os.path.isdir(filedir):

0 commit comments

Comments
 (0)