diff --git a/app.py b/app.py index f05b9e3..5ef04eb 100644 --- a/app.py +++ b/app.py @@ -72,7 +72,7 @@ def authenticate_request(data: dict): def parse_and_validate_request(parameters: list[str]) -> Union[list[str], None]: - args = [] + fn_args = [] data = request.get_json() if not data: raise Exception("Empty request body.") @@ -82,8 +82,8 @@ def parse_and_validate_request(parameters: list[str]) -> Union[list[str], None]: if name not in data: raise Exception(f"Missing parameter {name}") value = data[name] - args.append(value) - return args + fn_args.append(value) + return fn_args route_handlers = {