From 69442013820dc721a022ab7c599456d9cddc8eb4 Mon Sep 17 00:00:00 2001 From: aMetallurgist Date: Thu, 14 Dec 2023 10:27:56 -0800 Subject: [PATCH] Rename signin to sign_in to follow PEP8 --- api/openapi_server/controllers/auth_controller.py | 2 +- api/openapi_server/openapi/paths/auth/authSignin.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/openapi_server/controllers/auth_controller.py b/api/openapi_server/controllers/auth_controller.py index cb13f690..0686ddd9 100644 --- a/api/openapi_server/controllers/auth_controller.py +++ b/api/openapi_server/controllers/auth_controller.py @@ -168,7 +168,7 @@ def signUpCoordinator(): # noqa: E501 msg = f"The parameters you provided are incorrect: {error}" raise AuthError({"message": msg}, 500) -def signin(body: dict): +def sign_in(body: dict): secret_hash = current_app.calc_secret_hash(body['email']) # initiate authentication diff --git a/api/openapi_server/openapi/paths/auth/authSignin.yaml b/api/openapi_server/openapi/paths/auth/authSignin.yaml index 85492819..267e20a2 100644 --- a/api/openapi_server/openapi/paths/auth/authSignin.yaml +++ b/api/openapi_server/openapi/paths/auth/authSignin.yaml @@ -1,6 +1,6 @@ post: description: Sign in a user - operationId: signin + operationId: sign_in requestBody: content: application/json: