summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/status_script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/status_script.py b/scripts/status_script.py
index bfc8ade..0f218d9 100755
--- a/scripts/status_script.py
+++ b/scripts/status_script.py
@@ -119,7 +119,7 @@ if __name__ == '__main__':
update_css(('#0f0', '#222', 'status-open.png'))
save_statusfile(STATUSFILE, s.door_status())
tweet('open', last_change)
- if s.door_status() == 'closed':
+ elif s.door_status() == 'closed':
save_statusfile(STATUSFILE, s.door_status())
update_css(('#222', '#f00', 'status-closed.png'))
tweet('closed', last_change)