can run the exe file, probleme with pem resolved

This commit is contained in:
2022-05-12 22:31:15 +02:00
parent 96b0f3bdb8
commit ab153349a4
4 changed files with 18 additions and 18 deletions
+11 -11
View File
@@ -44,17 +44,17 @@ while True:
print(values) print(values)
if event == "submit": if event == "submit":
# try: # try:
start_line = int(values[KEY_START_NUMBER]) start_line = int(values[KEY_START_NUMBER])
end_line = int(values[KEY_END_NUMBER]) end_line = int(values[KEY_END_NUMBER])
max_workers = int(values[KEY_MAX_WORKERS]) max_workers = int(values[KEY_MAX_WORKERS])
store_type = 0 store_type = 0
if values[KEY_FAUBOURG]: if values[KEY_FAUBOURG]:
store_type = 1 store_type = 1
elif values[KEY_GEORGE]: elif values[KEY_GEORGE]:
store_type = 2 store_type = 2
elif values[KEY_SEVRES]: elif values[KEY_SEVRES]:
store_type = 3 store_type = 3
start_book(start_line, end_line, store_choose_state=store_type, max_workers=max_workers) start_book(start_line, end_line, store_choose_state=store_type, max_workers=max_workers)
# except Exception as error: # except Exception as error:
# print("Not Integer: ") # print("Not Integer: ")
# print(error) # print(error)
+5 -4
View File
@@ -27,11 +27,11 @@ exe = EXE(
[], [],
exclude_binaries=True, exclude_binaries=True,
name='appointment', name='appointment',
debug=False, debug=True,
bootloader_ignore_signals=False, bootloader_ignore_signals=False,
strip=False, strip=False,
upx=True, upx=False,
console=False, console=True,
disable_windowed_traceback=False, disable_windowed_traceback=False,
argv_emulation=False, argv_emulation=False,
target_arch=None, target_arch=None,
@@ -51,4 +51,5 @@ coll = COLLECT(
import shutil import shutil
shutil.copyfile('C:\\Users\\landd\\IdeaProjects\\appointment_tool\\appointment.json', '{0}/appointment.json'.format(DISTPATH)) shutil.copyfile('C:\\Users\\landd\\IdeaProjects\\appointment_tool\\appointment.json', '{0}/appointment.json'.format(DISTPATH))
shutil.copyfile('C:\\Users\\landd\\IdeaProjects\\appointment_tool\\contact_all.xlsx', '{0}/contact_all.xlsx'.format(DISTPATH)) shutil.copyfile('C:\\Users\\landd\\IdeaProjects\\appointment_tool\\contact_all.xlsx', '{0}/contact_all.xlsx'.format(DISTPATH))
shutil.copyfile('C:\\Users\\landd\\IdeaProjects\\appointment_tool\\config.ini', '{0}/config.ini'.format(DISTPATH)) shutil.copyfile('.\config.ini', '{0}/config.ini'.format(DISTPATH))
shutil.copytree('./venv\Lib/site-packages/grpc/_cython/_credentials', '{0}/appointment/grpc/_cython/_credentials'.format(DISTPATH))
+2 -2
View File
@@ -1,6 +1,6 @@
dataclasses_json==0.5.6 dataclasses_json==0.5.7
firebase_admin==5.2.0 firebase_admin==5.2.0
pandas==1.4.1 pandas~=1.3.5
playwright==1.21.0 playwright==1.21.0
dataclasses~=0.6 dataclasses~=0.6
oci~=2.54.1 oci~=2.54.1
-1
View File
@@ -231,7 +231,6 @@ class CommandorPage:
self.logger.error(error) self.logger.error(error)
def clickOnValidBtn(self): def clickOnValidBtn(self):
# self.page.mouse.wheel(0, random.randint(400, 500))
time.sleep(get_random_wait_time()) time.sleep(get_random_wait_time())
try: try:
self.page.evaluate("""document.getElementsByClassName("btn")[0].focus();""") self.page.evaluate("""document.getElementsByClassName("btn")[0].focus();""")