Skip to content

Commit a1ed654

Browse files
committed
* 解决打包出现的日志重复的bug
1 parent bb6f70e commit a1ed654

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
### 更新日志
22

3-
#### JadeV2.2.3 - 2024-05-09
4-
* packing模块支持src目录下的packages
3+
#### JadeV2.2.4 - 2024-05-17
4+
* 解决打包出现的日志重复的bug
55
---
66

77
<details onclose>
88
<summary>查看更多更新日志</summary>
99

10+
#### JadeV2.2.3 - 2024-05-09
11+
* packing模块支持src目录下的packages
12+
---
13+
1014
#### JadeV2.2.2 - 2024-05-09
1115
* 数据库操作支持int和Bool类型
1216
---

jade/jade_packing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,10 @@ def writePyContent(args,src_path,new_src_path,src_path_list,src_import_list,impo
9797
if src_import in prefix.strip():
9898
f1.write(
9999
(content.replace(prefix.strip(), "") + '\n').encode("utf-8"))
100-
if content not in import_list and "#" not in content and \
101-
content[
102-
0] != " ":
103-
import_list.append(content)
104100
edit = True
105101
break
106102
if edit is False:
107103
f1.write((content + '\n').encode("utf-8"))
108-
if content not in import_list and "#" not in content and content[0] != " ":
109-
import_list.append(content)
110104
elif "JadeLog = JadeLogging" in content:
111105
if str_to_bool(args.use_jade_log):
112106
update_log = "\n JadeLog.INFO('{}-更新时间为:{}',True)\r".format(

0 commit comments

Comments
 (0)