if connect_decider: EventManagerDB.list_donation_events(cursor) else: EventManagerCSV.list_donation_events() continue elif user_input == 2: actv_selection = 0 clear() break # # SEARCH # elif user_input == MENU_ITEM_6: actv_selection = 0 while True: MenuManager.search_submenu(actv_selection) key = ord(getch()) if key == ESC: user_input = 2 clear() elif key == ENTER: user_input = actv_selection clear() elif key == SPECIALKEYSELECTOR: key = ord(getch()) if key == DOWNARROW: if actv_selection < 2: actv_selection += 1 continue elif key == UPARROW: