Skip to content

[Code Issue]: 1. A wrong boolean value capitalization 2. __pycache__ tracked by Git #186

@PHTPSN

Description

@PHTPSN

问题描述

  1. A wrong boolean value capitalization in config_manager.py line 88

  2. .gitignore indeed includes __pycache__, but someone may accidentally track some cache files. To make the git repo clean, please remove them or check corresponding commits.

Corresponding commits:

$ git --no-pager log --all --full-history -- "*__pycache__*" --oneline
commit 41605744009b580d91ef23883b1d5b98a28534d2 (HEAD -> main, origin/main, origin/HEAD)
Merge: db5057a 9ec8736
Author: xianyun <115537554+YILING0013@users.noreply.github.com>
Date:   Mon Sep 8 19:57:37 2025 +0800

    Merge pull request #185 from PenBo1/main
    
    Add files via upload

commit 9ec873600dfedbb2dbbf481f0e61bee6fd21878d
Author: PenBo1 <aaronbuck86@gmail.com>
Date:   Mon Sep 8 11:58:44 2025 +0800

    Add files via upload
    
    增加代理设置选项;
    优化新版本google-generativeai 不支持 Client 类问题;
    优化批量生成章节界面,使用customtkinter统一设计风格;

commit a4a22ec5565dcd8c2ae7fd7c23aa4131e9efc8bc
Author: YILING0013 <xielingqing123@gmail.com>
Date:   Mon Feb 3 19:38:29 2025 +0800

    不要紧的改动

commit 2fe5fe1b852c7ca5d6a1220d6b3a3414e8ccf84d
Author: YILING0013 <xielingqing123@gmail.com>
Date:   Fri Jan 31 13:50:07 2025 +0800

    新增功能:自定义知识库、生成指导
    
    允许用户上传自己的知识库(建议在线版API,或上下文长的用户使用)
    
    允许在生成下一章节时加入提前指导
    
    模型Temperature参数支持

commit 04b5cb598ec7594bad48644d85166f0c26828aea
Author: YILING0013 <xielingqing123@gmail.com>
Date:   Thu Jan 30 10:21:38 2025 +0800

    更新gitignore

commit 11c1fb02d87bd5643df313f39d2c21e45eeb2b2e
Author: YILING0013 <xielingqing123@gmail.com>
Date:   Wed Jan 29 21:59:36 2025 +0800

    提交更新:修复了本地向量化的错误,修复了embedding接口错误

commit c99601fe1048807ba9cacfc32cd7909c10bbcb01
Author: YILING0013 <xielingqing123@gmail.com>
Date:   Wed Jan 29 20:33:20 2025 +0800

    Initial commit

复现步骤

  1. Fix boolean value in config_manager.py
--- a/config_manager.py
+++ b/config_manager.py
@@ -88,7 +88,7 @@ def create_config(config_file: str) -> dict:
     "proxy_setting": {
         "proxy_url": "127.0.0.1",
         "proxy_port": "",
-        "enabled": false
+        "enabled": False
     },
     "webdav_config": {
         "webdav_url": "",

```bash
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
  modified:   config_manager.py
  modified:   novel_generator/__pycache__/__init__.cpython-312.pyc
  modified:   novel_generator/__pycache__/architecture.cpython-312.pyc
  modified:   novel_generator/__pycache__/blueprint.cpython-312.pyc
  modified:   novel_generator/__pycache__/chapter.cpython-312.pyc
  modified:   novel_generator/__pycache__/common.cpython-312.pyc
  modified:   novel_generator/__pycache__/finalization.cpython-312.pyc
  modified:   novel_generator/__pycache__/knowledge.cpython-312.pyc
  modified:   novel_generator/__pycache__/vectorstore_utils.cpython-312.pyc
  modified:   ui/__pycache__/__init__.cpython-312.pyc
  modified:   ui/__pycache__/chapters_tab.cpython-312.pyc
  modified:   ui/__pycache__/character_tab.cpython-312.pyc
  modified:   ui/__pycache__/config_tab.cpython-312.pyc
  modified:   ui/__pycache__/context_menu.cpython-312.pyc
  modified:   ui/__pycache__/directory_tab.cpython-312.pyc
  modified:   ui/__pycache__/generation_handlers.cpython-312.pyc
  modified:   ui/__pycache__/main_tab.cpython-312.pyc
  modified:   ui/__pycache__/main_window.cpython-312.pyc
  modified:   ui/__pycache__/novel_params_tab.cpython-312.pyc
  modified:   ui/__pycache__/other_settings.cpython-312.pyc
  modified:   ui/__pycache__/role_library.cpython-312.pyc
  modified:   ui/__pycache__/setting_tab.cpython-312.pyc
  modified:   ui/__pycache__/summary_tab.cpython-312.pyc

no changes added to commit (use "git add" and/or "git commit -a")

环境信息

No response

日志信息(如适用)

No response

补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions