|
|
@@ -39,8 +39,7 @@ def on_message(client, server, data):
|
|
|
if is_template:
|
|
|
file_info = server_client.get_template_file_info(file_id)
|
|
|
time_str = datetime.datetime.now().strftime('%Y-%m-%dT%H-%M-%S')
|
|
|
- local_path = os.path.join(work_path,
|
|
|
- f'{file_info["name"]}({time_str}).{file_info["nameSuffix"]}')
|
|
|
+ local_path = os.path.join(work_path, f'{file_info["name"]}({time_str}).{file_info["nameSuffix"]}')
|
|
|
|
|
|
if server_client.download_template(file_info['fileLink'], local_path):
|
|
|
return ws_send(client, server, open_file_by_wps(local_path))
|