remove default value for source_from field
This commit is contained in:
@@ -11,14 +11,11 @@ from src.utils.contacts.generate_random_passport_id import generate_single_titre
|
|||||||
get_random_passport_id_number
|
get_random_passport_id_number
|
||||||
from src.utils.excel_reader import read_contacts, fr_phone_number_prefix, get_random_fr_phone_numbers, ExcelHelper
|
from src.utils.excel_reader import read_contacts, fr_phone_number_prefix, get_random_fr_phone_numbers, ExcelHelper
|
||||||
|
|
||||||
# from src.person_name.cython_extract_methods import filter_already_validated_contacts, read_pinyin_list_from_file
|
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_SERIAL_TO_IGNORE = ["47e7e36b", "bitbrowser"]
|
DEFAULT_SERIAL_TO_IGNORE = ["47e7e36b", "bitbrowser"]
|
||||||
|
|
||||||
|
|
||||||
def upload_contacts_list():
|
def upload_contacts_list():
|
||||||
_contacts_to_book = read_contacts(str(Path.home()) + "/Desktop/contact_list_2025-04-08.xlsx")
|
_contacts_to_book = read_contacts(str(Path.home()) + "/Desktop/real_name_contacts_100_gmx_ch_05_04_mac.xlsx")
|
||||||
return _contacts_to_book
|
return _contacts_to_book
|
||||||
|
|
||||||
|
|
||||||
@@ -100,7 +97,7 @@ def write_new_contacts_to_excel(valid_contacts: list, file_name=str(datetime.dat
|
|||||||
|
|
||||||
|
|
||||||
def generate_valid_contact_list_for_day(segment_number=1):
|
def generate_valid_contact_list_for_day(segment_number=1):
|
||||||
_collection_name = "2025-04-07"
|
_collection_name = "2025-04-08"
|
||||||
_valid_contact_list = MONGO_STORE_MANAGER.get_all_successful_items_for_one_day(_collection_name)
|
_valid_contact_list = MONGO_STORE_MANAGER.get_all_successful_items_for_one_day(_collection_name)
|
||||||
_all_contacts = MONGO_STORE_MANAGER.get_all_contacts_to_book()
|
_all_contacts = MONGO_STORE_MANAGER.get_all_contacts_to_book()
|
||||||
_contact_to_save = []
|
_contact_to_save = []
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ from typing import Union
|
|||||||
|
|
||||||
from dataclasses_json import dataclass_json
|
from dataclasses_json import dataclass_json
|
||||||
|
|
||||||
from src import config
|
|
||||||
|
|
||||||
|
|
||||||
class PublishType(Enum):
|
class PublishType(Enum):
|
||||||
SUCCESS = "SUCCESS"
|
SUCCESS = "SUCCESS"
|
||||||
@@ -28,7 +26,7 @@ class ReserveResultPojo:
|
|||||||
accepted = None
|
accepted = None
|
||||||
passport: str = ""
|
passport: str = ""
|
||||||
ccid: str = ""
|
ccid: str = ""
|
||||||
source_from: str = config.LOG_SOURCE
|
source_from: str = ""
|
||||||
store_type = 0
|
store_type = 0
|
||||||
store = "random"
|
store = "random"
|
||||||
ip_country = "FR"
|
ip_country = "FR"
|
||||||
|
|||||||
Reference in New Issue
Block a user