feat(publish): 30-min slot grid with silent slots and loud morning/evening anchors
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user