diff --git a/utils_v2/api/__pycache__/async_quart.cpython-310.pyc b/utils_v2/api/__pycache__/async_quart.cpython-310.pyc index d0c6850..b773a45 100644 Binary files a/utils_v2/api/__pycache__/async_quart.cpython-310.pyc and b/utils_v2/api/__pycache__/async_quart.cpython-310.pyc differ diff --git a/utils_v2/api/async_quart.py b/utils_v2/api/async_quart.py index ab2ff39..99ae4ea 100644 --- a/utils_v2/api/async_quart.py +++ b/utils_v2/api/async_quart.py @@ -346,9 +346,10 @@ def set_api_version(api_version): # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() + print(kwargs["decorator_count"]) return response return wrapper @@ -404,7 +405,7 @@ def read_input( # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -543,7 +544,7 @@ def validate_input( # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -683,7 +684,7 @@ def log_request_to_mongo( # Return the response from the wrapped function. if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -724,7 +725,7 @@ def should_not_be_under_maintenance(attr_name): # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -771,7 +772,7 @@ def only_whitelisted_ips(attr_name): # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -879,7 +880,7 @@ def limit_rate( # Return the response from the function call: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response @@ -918,7 +919,7 @@ def handle_cancelled_request(cleanup_func = None, cleanup_coro = None): # Done here: if ( - kwargs["decorator_count"] == 1 and + kwargs["decorator_count"] == 0 and isinstance(response, ResponseModel) ): response = response.for_quart() return response