Improve tasks and align page elements
This commit is contained in:
@@ -87,7 +87,7 @@ def _normalize_flags(raw: dict | None) -> dict:
|
||||
"allowed_prefixes": _parse_prefixes(row.get("allowed_prefixes")),
|
||||
"completion_enabled": _to_bool(row.get("completion_enabled"), True),
|
||||
"ai_title_enabled": _to_bool(row.get("ai_title_enabled"), True),
|
||||
"announce_task_id": _to_bool(row.get("announce_task_id"), True),
|
||||
"announce_task_id": _to_bool(row.get("announce_task_id"), False),
|
||||
"min_chars": max(1, int(row.get("min_chars") or 3)),
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ def _normalize_partial_flags(raw: dict | None) -> dict:
|
||||
if "ai_title_enabled" in row:
|
||||
out["ai_title_enabled"] = _to_bool(row.get("ai_title_enabled"), True)
|
||||
if "announce_task_id" in row:
|
||||
out["announce_task_id"] = _to_bool(row.get("announce_task_id"), True)
|
||||
out["announce_task_id"] = _to_bool(row.get("announce_task_id"), False)
|
||||
if "min_chars" in row:
|
||||
out["min_chars"] = max(1, int(row.get("min_chars") or 3))
|
||||
return out
|
||||
@@ -327,7 +327,7 @@ async def process_inbound_task_intelligence(message: Message) -> None:
|
||||
payload={"origin_text": text},
|
||||
)
|
||||
await _emit_sync_event(task, event, "create")
|
||||
if bool(flags.get("announce_task_id", True)):
|
||||
if bool(flags.get("announce_task_id", False)):
|
||||
try:
|
||||
await send_message_raw(
|
||||
message.source_service or "web",
|
||||
|
||||
Reference in New Issue
Block a user