Fix classify_event_size function
All checks were successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Liam Steckler 2024-02-13 20:42:02 -08:00
parent 49352e8d03
commit 27a4eb55f5

2
scl.py
View file

@ -82,7 +82,7 @@ def classify_event_size(num_people: int) -> dict[str, str, bool]:
"outage_color": "#F97316", "outage_color": "#F97316",
"is_postable": False, "is_postable": False,
} }
elif event["numPeople"] < 1000: elif num_people < 1000:
return { return {
"size": "Medium", "size": "Medium",
"outage_color": "#EF4444", "outage_color": "#EF4444",