Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abrandemuehl committed Apr 8, 2017
1 parent 5687bbb commit 2bddd24
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions machine_controller/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ def status():
if request.headers.get('Authorization', '') != token_value:
abort(401)

ready = merch.inUse()
notready = merch.inUse()

if(ready):
if(notready):
return ('', 503)
else:
# 200 to indicate success
return ('', 200)

else:
return ('', 503)



if __name__ == '__main__':
Expand Down

0 comments on commit 2bddd24

Please sign in to comment.