|
|
|
@ -13,7 +13,7 @@ from tkcalendar import Calendar |
|
|
|
|
|
|
|
# ----------------------- CONFIG ----------------------- |
|
|
|
# region 配置 |
|
|
|
VERSION = "v1.0.2" |
|
|
|
VERSION = "v1.0.3" |
|
|
|
|
|
|
|
DB_PATH = "tasks.db" # 数据库文件路径 |
|
|
|
TEMPLATES_PATH = "templates.json" # 检索模板文件路径 |
|
|
|
@ -82,7 +82,7 @@ COMPOSITE_WEIGHTS = { |
|
|
|
"type": {"Bug": 1.5, "需求": 1.0, "其他": 1.0}, |
|
|
|
"status": {"待处理": 0.9, "进行中": 1.0, "保持跟进": 0.15, "搁置": 0.1, "取消": 0.0, "已完成": 0.0}, |
|
|
|
# age factor multiplier (per day) |
|
|
|
"age_factor": 0.1 |
|
|
|
"age_factor": 0.05 |
|
|
|
} |
|
|
|
|
|
|
|
# Columns (for sheet) 这里的顺序即列显示顺序 |
|
|
|
@ -945,7 +945,7 @@ class TaskManagerApp(ctk.CTk): |
|
|
|
except Exception: |
|
|
|
try: self.sheet.set_cell_bg(r_idx,COL_STATUS,bg) |
|
|
|
except Exception: pass |
|
|
|
if ddl: |
|
|
|
if ddl and st not in ["已完成", "取消"]: |
|
|
|
try: |
|
|
|
dt_deadline = datetime.fromisoformat(ddl) |
|
|
|
days_to_deadline = (dt_deadline.date() - datetime.now(dt_deadline.tzinfo or timezone.utc).date()).days |
|
|
|
|