Negate the equals 🤦🏻‍♂️
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/vulnerability-scan Pipeline was successful
ci/woodpecker/push/docker-buildx Pipeline was successful

This commit is contained in:
Liam Steckler 2025-07-10 16:39:36 -07:00
parent c52f6699c6
commit 8c65f2c25f

2
scl.py
View file

@ -413,7 +413,7 @@ with Session(engine) as session:
# Used to determine the maximum number of people affected by this outage, to determine if it's worth posting about
existing_record.max_num_people = event["numPeople"]
max_event_class = classify_event_size(existing_record.max_num_people)
if shapely.equals(existing_record.outage_geometries, outage_geometries):
if not shapely.equals(existing_record.outage_geometries, outage_geometries):
print(
"Geometries modified. Equals: {}, DE-9IM: {}, Within: {}".format(
outage_geometries.equals(existing_record.outage_geometries),