Commit 19d1722f authored by Alyx's avatar Alyx
Browse files

directly expose status

parent f1748cf4
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -195,16 +195,10 @@ class Kronk:

    # flask route for status reading
    def get_status(self):
        if self.space_status == "OPEN":
            open = True
        else:
            open = False

        apistatus = {
            "open": open,
            "status": self.space_status,
            "lastchange": self.last_space_status_change,
        }

        return Response(json.dumps(apistatus), mimetype="application/json")

    # flask route for remotely setting display state for if someone like, forgets to click out or whatever