update contact

This commit is contained in:
2022-03-25 10:00:25 +01:00
parent 99dd077bb2
commit 3cae7159aa
3 changed files with 7 additions and 2 deletions
Binary file not shown.
+7 -2
View File
@@ -10,6 +10,7 @@ from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
from pojo.SimInfoPojo import SimInfoPojo
from pojo.contact_pojo import ContactPojo
from utils.excel_reader import ExcelHelper
from utils.operator import Operator
ERROR_COLLECTION_NAME = "error_items"
CONTACT_COLLECTION_NAME = "contact_list"
@@ -107,9 +108,13 @@ class DataManager:
worksheet = workbook.add_worksheet()
for info in sim_info_list:
# Iterate over the data and write it out row by row.
worksheet.write(row, col, info.phone[2:len(info.phone)])
if info.operator == Operator.LYCAMOBILE.value:
worksheet.write(row, col, info.phone[2:len(info.phone)])
else:
worksheet.write(row, col, info.phone)
worksheet.write(row, col + 1, info.ccid)
worksheet.write(row, col + 2, info.position)
worksheet.write(row, col + 2, info.operator)
worksheet.write(row, col + 3, info.position)
row += 1
workbook.close()