コード例 #1
0
ファイル: server.py プロジェクト: aplanchamp/PiRack
 def get(self):
     status = 200
     stacks = stacks_handler.get_stacks()
     if len(stacks) == 0:
         status = 404
     response = {'stacks': [json.loads(stack) for stack in stacks]}
     respond(self, response, status)
コード例 #2
0
ファイル: server.py プロジェクト: aplanchamp/PiRack
 def get(self):
         status = 200
         stacks = stacks_handler.get_stacks()
         if len(stacks) == 0:
                 status = 404
         response = {'stacks': [json.loads(stack) for stack in stacks]}
         respond(self,response,status)
コード例 #3
0
ファイル: server.py プロジェクト: aplanchamp/PiRack
 def get(self):
     status = 200
     log_monitor.install()
     log_monitor.get_rasps_from_csv()
     log_monitor.get_stacks_from_csv()
     stacks = stacks_handler.get_stacks()
     if len(stacks) == 0:
         status = 404
     response = {'stacks': [json.loads(stack) for stack in stacks]}
     print(response)
     respond(self, response, status)
コード例 #4
0
ファイル: server.py プロジェクト: aplanchamp/PiRack
 def get(self):
         status = 200
         log_monitor.install()
         log_monitor.get_rasps_from_csv()
         log_monitor.get_stacks_from_csv()
         stacks = stacks_handler.get_stacks()
         if len(stacks) == 0:
                status = 404
         response = {'stacks': [json.loads(stack) for stack in stacks]}
         print(response)
         respond(self, response, status)