def get_pos(): pid = request.args.get('pid', '') if pid == '': pid = None result = PhotonCall.getFromPhoton(pid) return result
def update(): action = request.args.get('action', '') if action == '': action = "0" result = PhotonCall.sendToPhoton(action) return result