From 2490960480bb39a5f775058119ba2a9eb42196fe Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 13 Feb 2014 00:58:36 +0100 Subject: another stupid bugfix, I cannot concentrate anymore --- scripts/status_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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) -- cgit v1.2.1