def ajax_get_warning_detail():
    task_name = request.args.get('task_name','') # task_name
    ts = request.args.get('ts', '') # timestamp: 123456789
    user = request.args.get('user', '')
    _id = user + '-' + task_name

    results = get_warning_detail(task_name, ts, user)

    return json.dumps(results)
Example #2
0
def ajax_get_warning_detail():
    task_name = request.args.get('task_name', '')  # task_name
    ts = request.args.get('ts', '')  # timestamp: 123456789
    user = request.args.get('user', '')
    _id = user + '-' + task_name

    results = get_warning_detail(task_name, ts, user)

    return json.dumps(results)
def ajax_get_warning_detail():
    task_name = request.args.get('task_name','') # task_name
    keywords = request.args.get('keywords', '') # warning keywords, seperate with ","
    keywords_list = keywords.split(',')
    ts = request.args.get('ts', '') # timestamp: 123456789

    results = get_warning_detail(task_name, keywords_list, ts)

    return json.dumps(results)
Example #4
0
def ajax_get_warning_detail():
    task_name = request.args.get('task_name', '')  # task_name
    keywords = request.args.get('keywords',
                                '')  # warning keywords, seperate with ","
    keywords_list = keywords.split(',')
    ts = request.args.get('ts', '')  # timestamp: 123456789

    results = get_warning_detail(task_name, keywords_list, ts)

    return json.dumps(results)