|
@@ -20,7 +20,6 @@ logging.basicConfig(filename='/var/www/html/data/log/flask.log',
|
|
|
logger = logging.getLogger('plot')
|
|
|
|
|
|
def parse_parmeter():
|
|
|
- logger.debug('start chratio')
|
|
|
cur_time = int(time.time())
|
|
|
|
|
|
start_time = request.args.get('start_time')
|
|
@@ -54,6 +53,7 @@ def onError(ex):
|
|
|
@app.route('/plot/ch_ratio')
|
|
|
def ch_ratio():
|
|
|
try:
|
|
|
+ logger.debug('start chratio')
|
|
|
start_time, end_time, card_types, spec, filter_wave = parse_parmeter()
|
|
|
chnames = request.args.get('chnames')
|
|
|
chnames = filter_chname(chnames)
|
|
@@ -70,6 +70,7 @@ def ch_ratio():
|
|
|
@app.route('/plot/mch_ratio')
|
|
|
def mch_ratio():
|
|
|
try:
|
|
|
+ logger.debug('start mchratio')
|
|
|
start_time, end_time, card_types, spec, filter_wave = parse_parmeter()
|
|
|
mchids = request.args.get('mchids')
|
|
|
mchids = filter_mchids(mchids)
|