def timeseries_last_maps(): if request.method == 'POST' and request.form.get('cell_name'): cell_name = request.form.get('cell_name') result = TimeSeries.find_last_maps(cell_name) return jsonify({'result': result}) else: logging.info(cell_name) result = TimeSeries.formated_by_cell_name(cell_name) return jsonify({'result': result})
def timeseries_cell(cell_name): if request.method == 'POST': return jsonify({'result': None}) else: logging.info(cell_name) result = TimeSeries.formated_by_cell_parent(cell_name) return jsonify({'result': result})
def change_timeseires(): if request.method == 'POST': timeseries = request.form.get('timeseries') logging.info(timeseries) result = TimeSeries.change_timeseries(ast.literal_eval(timeseries)) return jsonify({'result': result.as_json()}) return jsonify({'result': None})
def time_series_historical_results(): result = TimeSeries.all_formated() return jsonify({'result': result})