From 24777e019afa7f7002d349fe5c5736e863272451 Mon Sep 17 00:00:00 2001 From: Si-plus-plus Date: Thu, 11 Aug 2022 10:47:58 +0700 Subject: [PATCH] Updated `merged_pdf_path` to resolve no country code2 issues --- trans/utils/print_job_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans/utils/print_job_queue.py b/trans/utils/print_job_queue.py index 719ab73d..da2dc0b0 100644 --- a/trans/utils/print_job_queue.py +++ b/trans/utils/print_job_queue.py @@ -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: