feat(publish): 30-min slot grid with silent slots and loud morning/evening anchors

This commit is contained in:
kpa39l
2026-11-05 11:49:41 +00:00
parent 2973e96086
commit baaf9f54b6
16 changed files with 281 additions and 21 deletions
+3 -2
View File
@@ -19,7 +19,7 @@ sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
from config import BASE_DIR, PUBLISH_QUEUE_LIVE # noqa: E402
from web import queue # noqa: E402
from web.db import db, migrate # noqa: E402
from web.publish import impl_approve # noqa: E402
from web.publish import _silent_for, impl_approve # noqa: E402
LOG_PATH = BASE_DIR / "logs" / "publish-queue.log"
LOCK_PATH = BASE_DIR / "logs" / "publish-queue.lock"
@@ -75,7 +75,8 @@ def main() -> int:
if err:
log(f"error: #{post_id} {err}")
return 1
log(f"published #{post_id} scheduled {scheduled}")
tag = " (silent)" if _silent_for(scheduled) else ""
log(f"published #{post_id} scheduled {scheduled}{tag}")
return 0
finally:
conn.close()