From e2892a933eb0d08b74f2cd2eacf844621464e4cb Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Wed, 9 Jun 2021 13:40:53 +0300 Subject: [PATCH] Removes metadata retrieval due to change in sign up steps. --- apps/cic-ussd/cic_ussd/processor.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/cic-ussd/cic_ussd/processor.py b/apps/cic-ussd/cic_ussd/processor.py index a838d308..d9842df8 100644 --- a/apps/cic-ussd/cic_ussd/processor.py +++ b/apps/cic-ussd/cic_ussd/processor.py @@ -423,12 +423,6 @@ def process_request(user_input: str, user: Account, ussd_session: Optional[dict] :return: A ussd menu's corresponding text value. :rtype: Document """ - # retrieve metadata before any transition - key = generate_metadata_pointer( - identifier=blockchain_address_to_metadata_pointer(blockchain_address=user.blockchain_address), - cic_type=':cic.person' - ) - person_metadata = get_cached_data(key=key) if ussd_session: if user_input == "0": @@ -452,7 +446,7 @@ def process_request(user_input: str, user: Account, ussd_session: Optional[dict] 'exit_pin_mismatch', 'exit_invalid_request', 'exit_successful_transaction' - ] and person_metadata is not None: + ]: return UssdMenu.find_by_name(name='start') else: return UssdMenu.find_by_name(name=last_state)