Skip to content

Commit

Permalink
Update cg/meta/orders/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Isak Ohlsson Ångnell <[email protected]>
  • Loading branch information
eliottBo and islean authored Jan 29, 2025
1 parent 0965558 commit 7eca66f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cg/meta/orders/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ def get_ticket_tags(order: Order, order_type: OrderType) -> list[str]:

def contains_only_existing_samples(order: OrderWithCases) -> bool:
"""Check if the order contains only existing samples"""
for enumerated_case in order.enumerated_cases:
case: Case = enumerated_case[1]
if case.enumerated_new_samples:
return False
if order.enumerated_new_samples:
return False
return True


Expand Down

0 comments on commit 7eca66f

Please sign in to comment.