Skip to content

Commit 3aa5715

Browse files
committed
* 解决数据库清空的bug
1 parent 84a7a92 commit 3aa5715

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
### 更新日志
22

3-
4-
#### JadeV2.1.6 - 2024-01-11
5-
* 解决随机字符串的bug
3+
#### JadeV2.1.7 - 2024-01-31
4+
* 解决数据库清空的bug
65
---
76

87

8+
99
<details onclose>
1010
<summary>查看更多更新日志</summary>
1111

12+
#### JadeV2.1.6 - 2024-01-11
13+
* 解决随机字符串的bug
14+
---
15+
16+
1217
#### JadeV2.1.5 - 2024-01-10
1318
* 解决随机字符串的bug
1419
---

jade/jade_sqlite_data_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def clear(self):
118118
try:
119119
self.cursor.execute(sql_str)
120120
self.db.commit()
121+
self.cursor.execute("VACUUM")
122+
self.db.commit()
121123
except Exception as e:
122124
self.JadeLog.ERROR("插入数据表失败,失败原因为{},sql语句为{}".format(e, sql_str))
123125

0 commit comments

Comments
 (0)