Skip to content

Commit

Permalink
Fix concentration rc rule
Browse files Browse the repository at this point in the history
  • Loading branch information
islean committed Jan 23, 2025
1 parent 76bdcf3 commit 098c796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cg/services/orders/validation/rules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def is_volume_missing(sample: Sample) -> bool:
def has_sample_invalid_concentration(
sample: SampleWithSkipRC, allowed_interval: tuple[float, float]
) -> bool:
concentration: float = sample.concentration_ng_ul
return not is_sample_concentration_within_interval(
concentration: float | None = sample.concentration_ng_ul
return concentration and not is_sample_concentration_within_interval(
concentration=concentration, interval=allowed_interval
)

Expand Down

0 comments on commit 098c796

Please sign in to comment.