Skip to content

Commit

Permalink
Updated merged_pdf_path to resolve no country code2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Si-plus-plus authored and fushar committed Sep 4, 2022
1 parent cd070b2 commit 24777e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trans/utils/print_job_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def add_completed_dependency_pdf(contest_slug, extra_country_code, count):

merged_pdf_path = os.path.join(
'media', 'merged', contest_slug,
f'{language_code}_{country_code2}-merged.pdf')
f'{user.language_code}-merged.pdf')
if os.path.isfile(merged_pdf_path):
file_paths_with_counts[merged_pdf_path] += count
else:
Expand Down

0 comments on commit 24777e0

Please sign in to comment.