refactor: optimize material deletion with exact code matching and database queries

- Change from fuzzy material name matching to exact material code matching
- Migrate from MaterialsTypeToBeDeleted to MaterialsToBeDeleted table
- Add should_delete_material() for on-demand database queries
- Remove in-memory material list loading to reduce memory footprint
- Update documentation to reflect new matching logic
- Remove main scripts from git tracking (contain user-specific config)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-02-10 10:53:53 +08:00
parent 6ec7484036
commit cff5e78c1d
7 changed files with 405 additions and 149 deletions

6
.gitignore vendored
View File

@@ -23,6 +23,12 @@ tests/
config/user_settings.json
nul
# 主脚本(包含用户特定配置)
main.py
main_clean.py
main_ui.py
record.py
# 环境变量
.env
.env.local