diff options
Diffstat (limited to 'scripts/status_script.py')
-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: |