From 14ca9dcf67cbe243578c5b63c45b10eda9021738 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 12 Feb 2014 19:54:12 +0100 Subject: added fix for stupid fuckup --- scripts/status_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/status_script.py b/scripts/status_script.py index 86ca88f..e451ff6 100755 --- a/scripts/status_script.py +++ b/scripts/status_script.py @@ -112,14 +112,14 @@ if __name__ == '__main__': last_change = status_file.readline().rstrip() # check if status changed, if yes, update css and tweet it - if s.door_status() == 'open' and old_status == 'closed': + if status == 'open' and old_status == 'closed': save_statusfile(STATUSFILE, status) update_css('#0f0', '#222', 'status-open.png') try: tweet('open', last_change) except TweetLengthException: print("Tweet was too long") - elif s.door_status() == 'closed' and old_status == 'open': + elif status == 'closed' and old_status == 'open': save_statusfile(STATUSFILE, status) update_css('#222', '#f00', 'status-closed.png') try: -- cgit v1.2.1