Skip to content

Commit af8d85d

Browse files
committed
npa-5087 - Updated import positioning
1 parent 74ef567 commit af8d85d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sandbox/api/get_consent_by_id.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from flask import request
55

6-
logger = getLogger(__name__)
7-
86
from .constants import (
97
INTERNAL_SERVER_ERROR_EXAMPLE,
108
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP,
@@ -22,6 +20,8 @@
2220
)
2321
from .utils import generate_response_from_example, check_for_consent_include_params
2422

23+
logger = getLogger(__name__)
24+
2525

2626
def get_consent_by_id_response(identifier: str) -> Union[dict, tuple]:
2727
"""Sandbox API for GET /Consent/{id}
@@ -31,7 +31,7 @@ def get_consent_by_id_response(identifier: str) -> Union[dict, tuple]:
3131
"""
3232
try:
3333
params = request.args.to_dict()
34-
if not "_include" in params and len(params) > 0:
34+
if "_include" not in params and len(params) > 0:
3535
return generate_response_from_example(BAD_REQUEST_INCLUDE_PARAM_INVALID, 422)
3636
else:
3737
_include = request.args.getlist("_include")

0 commit comments

Comments
 (0)