Don't post small outages
This commit is contained in:
parent
53a5cc8aa0
commit
54ab23a0e4
1 changed files with 5 additions and 1 deletions
6
scl.py
6
scl.py
|
@ -176,7 +176,11 @@ with Session(engine) as session:
|
|||
session.commit()
|
||||
|
||||
except NoResultFound:
|
||||
# TODO: Logic to post initial to Mastodon,
|
||||
if outage_size == "Small":
|
||||
# If the outage becomes medium/large, it'll then be posted as a new outage on the next run
|
||||
print("Outage is small, will not post")
|
||||
continue
|
||||
|
||||
print("Existing record not found")
|
||||
post_text = """Seattle City Light is reporting a {} outage in {}.
|
||||
|
||||
|
|
Loading…
Reference in a new issue