Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def scalars():
run = request.args.get('run')
tag = request.args.get('tag')
is_debug = bool(request.args.get('debug'))
if is_debug:
result = mock_data.sequence_data()
else:
result = lib.get_scalar(log_reader, run, tag)
result = gen_result(0, "", result)
return Response(json.dumps(result), mimetype='application/json')