diff options
author | Florian <stayawake@lavabit.com> | 2014-02-12 19:54:12 +0100 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-02-12 19:54:12 +0100 |
commit | 14ca9dcf67cbe243578c5b63c45b10eda9021738 (patch) | |
tree | 6ef9869c37788483fa5837e9c70d0f759b0d9347 | |
parent | dbddcd637b37e178366992d9d0946b92c0116ba3 (diff) |
added fix for stupid fuckup
-rwxr-xr-x | scripts/status_script.py | 4 |
1 files 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: |