From ec9c3cac5f14c8dfe0715841dec8c9ab13c5c2b2 Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Mon, 11 Oct 2021 15:20:50 +0100 Subject: [PATCH] Rename `replay_create_pdf_letters` command This changes the name to make it clearer that this command is for templated letters only, and not for PDF letters. --- app/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/commands.py b/app/commands.py index 29ac22e3b..341d657f6 100644 --- a/app/commands.py +++ b/app/commands.py @@ -271,10 +271,10 @@ def insert_inbound_numbers_from_file(file_name): file.close() -@notify_command(name='replay-create-pdf-letters') +@notify_command(name='replay-create-pdf-for-templated-letter') @click.option('-n', '--notification_id', type=click.UUID, required=True, help="Notification id of the letter that needs the get_pdf_for_templated_letter task replayed") -def replay_create_pdf_letters(notification_id): +def replay_create_pdf_for_templated_letter(notification_id): print("Create task to get_pdf_for_templated_letter for notification: {}".format(notification_id)) get_pdf_for_templated_letter.apply_async([str(notification_id)], queue=QueueNames.CREATE_LETTERS_PDF)