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