From 194f7c544fe1fc4dbd85af1ad2e66b62bcae8984 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Tue, 30 Jan 2024 15:49:26 -0800 Subject: [PATCH 1/2] Additional logging of size --- scl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scl.py b/scl.py index 6a32140..fab1ff5 100644 --- a/scl.py +++ b/scl.py @@ -209,7 +209,7 @@ with Session(engine) as session: except NoResultFound: print("Existing record not found") if not event_class["is_postable"]: - print("Outage is not considered postable, will not post") + print("Outage is {} considered postable, will not post".format(event_class["size"])) continue else: # Fallback location from the SCL API in case one couldn't be reverse geocoded From 7ad2dcbe0db6c2d4b641e8fed8d25a38edfbdd0d Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Tue, 30 Jan 2024 16:00:00 -0800 Subject: [PATCH 2/2] Remove continue, formatting --- scl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scl.py b/scl.py index fab1ff5..3673ae4 100644 --- a/scl.py +++ b/scl.py @@ -209,8 +209,11 @@ with Session(engine) as session: except NoResultFound: print("Existing record not found") if not event_class["is_postable"]: - print("Outage is {} considered postable, will not post".format(event_class["size"])) - continue + print( + "Outage is {} considered postable, will not post".format( + event_class["size"] + ) + ) else: # Fallback location from the SCL API in case one couldn't be reverse geocoded area_text = event["city"]