def get(self): self.write(jsonpack({ name : { 'visible' : is_visible(name), 'running' : is_active(name), 'port' : challenge_port.get(name, None) } for name in challenge_list() }))
def get(self): self.write( jsonpack({ name: { 'visible': is_visible(name), 'running': is_active(name), 'port': challenge_port.get(name, None) } for name in challenge_list() }))
def get(self): self.write(jsonpack(challenge_list()))