Compare commits
2 commits
ecd99aa055
...
7ad2dcbe0d
Author | SHA1 | Date | |
---|---|---|---|
7ad2dcbe0d | |||
194f7c544f |
1 changed files with 5 additions and 2 deletions
7
scl.py
7
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 not considered postable, will not post")
|
||||
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"]
|
||||
|
|
Loading…
Reference in a new issue