Skip to content

The only downloader you need. 下载器的集大成者。

fix(recorder): 修复记录文件打开模式问题

XiaoYouChR5e37c45e33d9
diff --git a/app/supports/recorder.py b/app/supports/recorder.py
index f87001c0..131dad82 100644
--- a/app/supports/recorder.py
+++ b/app/supports/recorder.py
@@ -16,7 +16,7 @@ class TaskRecorder:
recordFile.parent.mkdir(parents=True, exist_ok=True)
recordFile.touch()
- self.fileHandle = open(recordFile, "a+", encoding="utf-8")
+ self.fileHandle = open(recordFile, "r+", encoding="utf-8")
self.fileHandle.seek(0)
self.memorizedTasks: dict[str, Task] = {}