diff --git a/CHANGELOG.md b/CHANGELOG.md index 87cd7aaf848..6de4969eb2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v1.0.2 + +### 2024/4/5 + +- 修复用户配置后接口更新结果与日志文件命名问题(Fix the issue of interface update results and log file naming after user configuration) + ## v1.0.1 ### 2024/4/1 diff --git a/main.py b/main.py index c68e8a192a7..93a205a3ac4 100644 --- a/main.py +++ b/main.py @@ -113,15 +113,9 @@ async def visitPage(self, channelItems): def main(self): asyncio.run(self.visitPage(getChannelItems())) - user_final_file = ( - "user_" + config.final_file - if os.path.exists("user_" + config.source_file) - else getattr(config, "final_file", "result.txt") - ) + user_final_file = getattr(config, "final_file", "result.txt") user_log_file = ( - "user_result.log" - if os.path.exists("user_" + config.source_file) - else "result.log" + "user_result.log" if os.path.exists("user_config.py") else "result.log" ) updateFile(user_final_file, "result_new.txt") updateFile(user_log_file, "result_new.log") diff --git a/version.json b/version.json index 24d3a2ff410..ef6dca9c654 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.1" + "version": "1.0.2" } \ No newline at end of file