Skip to content

Commit

Permalink
Fix math on checking length
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondberg committed Apr 6, 2024
1 parent 5927b80 commit 5427a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chipy_org/apps/meetings/healthchecks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _length_check(meeting):
)
length = total + (5 * count if count < 4 else 2.5 * count)
message = f"{length} minutes of programming"
if count >= 80:
if length >= 80:
level = "success"
elif length <= 30 and meeting.when < datetime.datetime.now() + datetime.timedelta(days=120):
level = "warning"
Expand Down

0 comments on commit 5427a4b

Please sign in to comment.