後端代碼清理:移除冗餘註解和調試代碼
清理內容: - 移除所有開發元資訊(Author, Version, DocID, Rationale等) - 刪除註解掉的代碼片段(力導向演算法等24行) - 移除調試用的 logger.debug 語句 - 簡化冗餘的內聯註解(emoji、"重要"等標註) - 刪除 TDD 文件引用 清理檔案: - backend/main.py - 移除調試日誌和元資訊 - backend/importer.py - 移除詳細類型檢查調試 - backend/export.py - 簡化 docstring - backend/schemas.py - 移除元資訊 - backend/renderer.py - 移除 TDD 引用 - backend/renderer_timeline.py - 移除註解代碼和冗餘註解 - backend/path_planner.py - 簡化策略註解 保留內容: - 所有函數的 docstring(功能說明、參數、返回值) - 必要的業務邏輯註解 - 簡潔的模組功能說明 效果: - 刪除約 100+ 行冗餘註解 - 代碼更加簡潔專業 - 功能完整性 100% 保留 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,12 +3,6 @@
|
||||
|
||||
本模組負責將時間軸圖表匯出為各種格式(PDF、PNG、SVG)。
|
||||
使用 Plotly 的 kaleido 引擎進行圖片生成。
|
||||
|
||||
Author: AI Agent
|
||||
Version: 1.0.0
|
||||
DocID: SDD-EXP-001
|
||||
Related: TDD-UT-EXP-001
|
||||
Rationale: 實現 SDD.md 定義的 POST /export API 功能
|
||||
"""
|
||||
|
||||
import os
|
||||
@@ -95,7 +89,6 @@ class ExportEngine:
|
||||
匯出引擎
|
||||
|
||||
負責將 Plotly 圖表匯出為不同格式的檔案。
|
||||
對應 TDD.md - UT-EXP-01
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user