From b98a39629cff1545ed378792b45eddd5d6b5ce3f Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Sun, 27 Oct 2024 08:18:42 -0700 Subject: [PATCH] Update "no longer exists" response to not say the outage is resolved. --- scl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scl.py b/scl.py index b009438..e92335d 100644 --- a/scl.py +++ b/scl.py @@ -382,7 +382,9 @@ with Session(engine) as session: ) existing_record.most_recent_post_id = post_result["id"] except mastodon.MastodonNotFoundError: - print("Could not post a reply to the existing post, skip this update") + print( + "Could not post a reply to the existing post, skip this update" + ) elif max_event_class["is_postable"]: print( "Posting an event that grew above the threshold required to post" @@ -451,7 +453,7 @@ with Session(engine) as session: if active_outage.most_recent_post_id: try: post_result = mastodon_client.status_post( - status="This outage is reported to be resolved.\n\n#SeattleCityLightOutage #SCLOutage", + status="This outage is no longer in the SCL feed, which usually means it's either been resolved, or split into multiple smaller outages.\n\n#SeattleCityLightOutage #SCLOutage", in_reply_to_id=active_outage.most_recent_post_id, visibility="public", language="en",