def refresh(): world = Historia.from_data(hexgen_data, debug) return json.dumps({ 'world_data': world.world_data, 'days': [ world.get_day() ] }, cls=JsonEncoder), 200
def start(): """ Starts a new History """ global world global days if world is None: world = Historia.from_data(hexgen_data, debug) days = [world.get_day()] return json.dumps({ 'world_data': world.world_data, 'days': days }, cls=JsonEncoder), 200 return json.dumps({ 'world_data': world.world_data, 'days': days }, cls=JsonEncoder), 200