can run exe file
This commit is contained in:
+3
-4
@@ -2,11 +2,10 @@ import datetime
|
||||
import firebase_admin
|
||||
import xlsxwriter as xlsxwriter
|
||||
from firebase_admin import credentials, firestore
|
||||
|
||||
import definitions
|
||||
import params
|
||||
from pojo.MailPojo import MailPojo
|
||||
from pojo.ReserveResultPojo import ReserveResultPojo, PublishType
|
||||
from pojo.ReserveResultPojo import ReserveResultPojo
|
||||
from pojo.SimInfoPojo import SimInfoPojo
|
||||
from pojo.contact_pojo import ContactPojo
|
||||
from utils.excel_reader import ExcelHelper
|
||||
@@ -25,10 +24,9 @@ class DataManager:
|
||||
batch_size = 20
|
||||
|
||||
def __init__(self):
|
||||
cred = credentials.Certificate(definitions.ROOT_DIR + "/appointment.json")
|
||||
cred = credentials.Certificate(definitions.FIREBASE_CONFIG_FILE)
|
||||
self._app = firebase_admin.initialize_app(cred)
|
||||
self._db = firestore.client()
|
||||
self._contact_list = excel_reader.read_contacts("/contact_all.xlsx")
|
||||
|
||||
def get_all_error_items(self):
|
||||
pass
|
||||
@@ -88,6 +86,7 @@ class DataManager:
|
||||
## 读取数据库中的sim卡信息,然后写到sim_infos.xlsx文件中
|
||||
def save_to_excel(self):
|
||||
# Start from the first cell. Rows and columns are zero indexed.
|
||||
self._contact_list = excel_reader.read_contacts()
|
||||
sim_info_list = []
|
||||
for sim in self.get_all_sim_infos().stream():
|
||||
print(sim)
|
||||
|
||||
Reference in New Issue
Block a user