diff --git a/cheddahbot/api.py b/cheddahbot/api.py index f26ddd4..0718aa2 100644 --- a/cheddahbot/api.py +++ b/cheddahbot/api.py @@ -192,10 +192,17 @@ async def get_link_building_tasks(): ] # need_cora: open LB tasks where LB Method = "Cora Backlinks" + # Exclude tasks that automation already touched + automation_touched = { + "error", "automation underway", "complete", + "closed", "done", "internal review", + } need_cora = [ t for t in active_lb if t["custom_fields"].get("LB Method") == "Cora Backlinks" + and t["status"] not in automation_touched ] + need_cora.sort(key=lambda t: int(t.get("due_date") or "9999999999999")) # recently_completed: closed/complete tasks with date_done in last 7 days seven_days_ago_ms = (time.time() - 7 * 86400) * 1000 diff --git a/dashboard/index.html b/dashboard/index.html index 9eb3f39..29c334b 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -178,6 +178,17 @@
+ +Loading...
+No Cora reports queued.
'; + return; + } + + const PAGE_SIZE = 10; + let showAll = false; + + function render() { + const visible = showAll ? tasks : tasks.slice(0, PAGE_SIZE); + let html = `| Keyword | +Company | + +
|---|---|
| ${esc(keyword)} | +${esc(company)} | + +