2024-03-18, change default values
parent
7b9a933941
commit
d76f6d8161
15
settings.py
15
settings.py
|
@ -2890,13 +2890,14 @@ def sync_status_to_extension(status):
|
||||||
webdriver_path = os.path.join(Root_Dir, "webdriver")
|
webdriver_path = os.path.join(Root_Dir, "webdriver")
|
||||||
target_path = os.path.join(webdriver_path, CONST_MAXBOT_EXTENSION_NAME)
|
target_path = os.path.join(webdriver_path, CONST_MAXBOT_EXTENSION_NAME)
|
||||||
target_path = os.path.join(target_path, "data")
|
target_path = os.path.join(target_path, "data")
|
||||||
target_path = os.path.join(target_path, CONST_MAXBOT_EXTENSION_STATUS_JSON)
|
if os.path.exists(target_path):
|
||||||
#print("save as to:", target_path)
|
target_path = os.path.join(target_path, CONST_MAXBOT_EXTENSION_STATUS_JSON)
|
||||||
status_json={}
|
#print("save as to:", target_path)
|
||||||
status_json["status"]=status
|
status_json={}
|
||||||
#print("dump json to path:", target_path)
|
status_json["status"]=status
|
||||||
with open(target_path, 'w') as outfile:
|
#print("dump json to path:", target_path)
|
||||||
json.dump(status_json, outfile)
|
with open(target_path, 'w') as outfile:
|
||||||
|
json.dump(status_json, outfile)
|
||||||
|
|
||||||
def update_maxbot_runtime_status():
|
def update_maxbot_runtime_status():
|
||||||
is_paused = False
|
is_paused = False
|
||||||
|
|
Loading…
Reference in New Issue