use home path
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from src.db.mongo_manager import MONGO_STORE_MANAGER
|
||||
from src.utils.excel_reader import read_contacts
|
||||
|
||||
# 检查联系人表的有邮件有没有在数据库中
|
||||
if __name__ == '__main__':
|
||||
contacts = read_contacts(str(Path.home()) + "/Desktop/contact_list_2024-06-01.xlsx")
|
||||
mail_list = MONGO_STORE_MANAGER.get_destination_emails()
|
||||
print("mail_list size is " + str(len(mail_list)))
|
||||
mail_raw_list = []
|
||||
for mail_address in mail_list:
|
||||
mail_raw_list.append(mail_address.mail)
|
||||
|
||||
for contact in contacts:
|
||||
if contact.mail not in mail_raw_list:
|
||||
if "gmail" not in contact.mail:
|
||||
print(contact.mail)
|
||||
Reference in New Issue
Block a user