mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-16 04:51:58 +00:00
合入 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:
@@ -79,7 +79,7 @@ async def upkeep(session: AsyncSession = Depends(get_session)) -> dict[str, Any]
|
||||
counts = await sc.counts_by_source(session, ids)
|
||||
schedules: dict[str, list[dict[str, Any]]] = {}
|
||||
for r in (await session.execute(select(Schedule).where(Schedule.target_kind == "source_maintenance")
|
||||
.order_by(Schedule.created_at))).scalars():
|
||||
.order_by(Schedule.created_at, Schedule.id))).scalars():
|
||||
schedules.setdefault(r.target_id or "", []).append({
|
||||
"id": r.id, "enabled": r.enabled, "cron": r.cron, "timezone": r.timezone,
|
||||
"description_text": _describe(r.cron, r.timezone),
|
||||
@@ -249,7 +249,7 @@ async def get_maintenance(source_id: str, session: AsyncSession = Depends(get_se
|
||||
row = await _source(session, source_id)
|
||||
rows = list((await session.execute(select(Schedule).where(
|
||||
Schedule.target_kind == "source_maintenance", Schedule.target_id == row.id)
|
||||
.order_by(Schedule.created_at))).scalars())
|
||||
.order_by(Schedule.created_at, Schedule.id))).scalars())
|
||||
outs = await _schedule_outs(session, rows)
|
||||
fire_ids = [o["last_fire"]["id"] for o in outs if o.get("last_fire")]
|
||||
inputs = dict((await session.execute(select(ScheduleFire.id, ScheduleFire.inputs).where(
|
||||
|
||||
Reference in New Issue
Block a user