合入 W2-a 的复核修复(nr8/a:导入的 NOT NULL 补值与孤儿行、收尾 dispose、sslmode 换算、PostgreSQL 写入去 NUL、不分大小写搜索 contains_ci、json_eq 两库同语义、JSON 守卫、用户可见列表补决胜键、bubblewrap --clearenv、部署脚本与原子写的几处、README 连接数预算)

# Conflicts:
#	backend/app/api/schedules.py
#	backend/app/main.py
This commit is contained in:
ThearchyHelios
2026-10-19 12:21:38 +08:00
80 changed files with 995 additions and 201 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ async def schedules_for(session: Any, source_id: str) -> list[dict[str, Any]]:
rows = (await session.execute(select(Schedule).where(
Schedule.target_kind == "source_maintenance", Schedule.target_id == source_id)
.order_by(Schedule.created_at))).scalars()
.order_by(Schedule.created_at, Schedule.id))).scalars()
return [{"id": r.id, "name": r.name, "cron": r.cron, "timezone": r.timezone, "enabled": r.enabled,
"next_run_at": r.next_run_at.isoformat() if r.next_run_at else None} for r in rows]