Skip to content

Commit ab9bb1b

Browse files
committed
新增对缓存配置的支持
1 parent c428309 commit ab9bb1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/notion_dump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
SEVER_ABS_PATH = os.path.dirname(sys.argv[0]) + "/"
1515
CONFIG_FILE_NAME = SEVER_ABS_PATH + "config.json"
1616
NotionDump.TMP_DIR = SEVER_ABS_PATH + NotionDump.TMP_DIR
17-
VERSION = "2.1"
17+
VERSION = "2.1.1"
1818

1919

2020
class NotionBackup:
@@ -92,6 +92,8 @@ def start_dump(self, force_auto=False):
9292
NotionDump.S_THEME_TYPE = "default"
9393
# 是否下载所有链接文件
9494
NotionDump.FILE_WITH_LINK = self.get_key("file_with_link", None, default=False)
95+
# 是否启用缓存
96+
NotionDump.USE_BUFFER = self.get_key("use_buffer", None, default=True)
9597

9698
self.dump_api = NotionDumpApi(debug=debug_mode)
9799

0 commit comments

Comments
 (0)