测试文章丢失问题
# add monitor def add_monitor(d):
logger.debug('add monitor is %s' % d) conn = monitor_db.get_connection_with_url(url) for key in d.keys():
logger.debug("form data is %s" % json.loads(key)) d_dict = json.loads(key)
[{ 'credit_type': d_dict['credit_type'] , 'query_type': d_dict['query_type'] ,
'credit_status': d_dict['credit_status'] ,
'elapsed_time': int(random.random() * 100) }])