From 572c8ebb8480ed7eb17d10aaa74f02a29693f3c2 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 9 Jan 2024 14:45:11 -0800 Subject: [PATCH] reformat --- app/delivery/send_to_providers.py | 4 +++- app/user/rest.py | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index 8d726e94a..b258c41c4 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -83,7 +83,9 @@ def send_sms_to_provider(notification): if my_phone: my_phone = my_phone.decode("utf-8") # TODO REMOVE - current_app.logger.info(f"IN SEND TO PROVIDERS, WHERE WE GET THE VALUE, KEY IS {key} and value is {my_phone}") + current_app.logger.info( + f"IN SEND TO PROVIDERS, WHERE WE GET THE VALUE, KEY IS {key} and value is {my_phone}" + ) if my_phone is None: si = notification.service_id ji = notification.job_id diff --git a/app/user/rest.py b/app/user/rest.py index c4e593d39..92646a5ae 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -354,16 +354,24 @@ def create_2fa_code( key = f"2facode-{saved_notification.id}".replace(" ", "") recipient = str(recipient) # TODO REMOVE - current_app.logger.info(f"IN REST, WHERE WE SET THE VALUE, KEY IS {key} and value is {recipient}") + current_app.logger.info( + f"IN REST, WHERE WE SET THE VALUE, KEY IS {key} and value is {recipient}" + ) redis_store.set(key, recipient) stored_recipient = redis_store.get(key) # TODO REMOVE - current_app.logger.info(f"IN REST, WHERE WE GET THE VALUE, KEY IS {key} and value is {stored_recipient}") + current_app.logger.info( + f"IN REST, WHERE WE GET THE VALUE, KEY IS {key} and value is {stored_recipient}" + ) if stored_recipient: - current_app.logger.info("IN user/rest.py we saved the recipient of the 2facode to redis!") + current_app.logger.info( + "IN user/rest.py we saved the recipient of the 2facode to redis!" + ) else: - current_app.logger.info("IN user/rest.py we did NOT save the recipient of the 2facode to redis!") + current_app.logger.info( + "IN user/rest.py we did NOT save the recipient of the 2facode to redis!" + ) # Assume that we never want to observe the Notify service's research mode # setting for this notification - we still need to be able to log into the # admin even if we're doing user research using this service: