diff --git a/src/utils/contacts/generate_contact_list_to_register.py b/src/utils/contacts/generate_contact_list_to_register.py index 6ed8af0..6108834 100644 --- a/src/utils/contacts/generate_contact_list_to_register.py +++ b/src/utils/contacts/generate_contact_list_to_register.py @@ -13,7 +13,11 @@ def has_email(registeredUserPojo: RegisteredUserPojo, reserveResultPojo: Reserve def generate_list_to_register(): - _valid_contact_list = MONGO_STORE_MANAGER.get_all_successful_items_for_day() + _valid_contact_list = [] + _all_successful_items = MONGO_STORE_MANAGER.get_all_successful_items_for_day() + for _item in _all_successful_items: + if _item.url_validated is not None and _item.url_validated is True: + _valid_contact_list.append(_item) _already_registered_list = MONGO_STORE_MANAGER.get_all_registered_users() _contact_list_to_register = [] for _contact in _valid_contact_list: