Skip to content

Commit

Permalink
Fix order messages
Browse files Browse the repository at this point in the history
  • Loading branch information
islean committed Jan 23, 2025
1 parent cafab74 commit 9471db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cg/services/orders/submitter/ticket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def add_existing_sample_info_to_message(
if existing_sample.customer_id != customer_id:
sample_customer = " from " + existing_sample.customer.internal_id
message += self.NEW_LINE
message += f"{existing_sample.name}, application: {existing_sample.application_version.application.tag}, case: {case_name} (already existing sample{sample_customer}), priority: {existing_sample.priority.name}"
message += f"{existing_sample.name}, application: {existing_sample.application_version.application.tag}, case: {case_name} (already existing sample{sample_customer}), priority: {existing_sample.priority}"
return message

@staticmethod
Expand Down Expand Up @@ -206,7 +206,7 @@ def create_case_xml_sample_list(self, order, message: str) -> str:
message=message, case_name=case.name
)
message = self.add_sample_priority_to_message(
message=message, priority=case.priority.name
message=message, priority=case.priority.name.lower()
)
message = self.add_sample_comment_to_message(
message=message, comment=sample.comment
Expand Down

0 comments on commit 9471db8

Please sign in to comment.