Skip to content

Commit

Permalink
fix: improve adjusted base comparison (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-guidini authored and adrian-codecov committed Jun 8, 2024
1 parent 3cdeed1 commit 156e5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/notification/notifiers/mixins/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def get_sum_from_lists(
quantized_base_adjusted_coverage = base_adjusted_coverage.quantize(
Decimal("0.00000")
)
if quantized_base_adjusted_coverage <= head_coverage:
if abs(quantized_base_adjusted_coverage - head_coverage) < Decimal("0.01"):
rounded_difference = round_number(
self.current_yaml, head_coverage - base_adjusted_coverage
)
Expand Down

0 comments on commit 156e5a3

Please sign in to comment.