From 835424212164ba7c6f66e5bccea9e4fa927bef2c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 9 Sep 2026 18:50:46 +0200 Subject: [PATCH] UI - Watchlist - bring back Restock & Price column to watchlist overview (#4410) --- .../blueprint/watchlist/row_context.py | 8 ++++---- .../templates/watch-overview-single-row.html | 15 ++++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/changedetectionio/blueprint/watchlist/row_context.py b/changedetectionio/blueprint/watchlist/row_context.py index 461c7f43c..82fb1e422 100644 --- a/changedetectionio/blueprint/watchlist/row_context.py +++ b/changedetectionio/blueprint/watchlist/row_context.py @@ -30,10 +30,10 @@ def watch_row_context(datastore, active_tag_uuid=None, queued_uuids=None): return { 'active_tag_uuid': active_tag_uuid, - # Kept 0 (rather than any_watches_have_processor_by_name) while the price column is - # disabled — it also decides cols_required on the page, so page and row must agree or - # a pushed row ends up with a different count than the table header. - 'any_has_restock_price_processor': 0, + # Also decides cols_required on the page, so page and row must agree or a pushed row + # ends up with a different count than the table header — which is why it is + # computed here and not passed separately by the page. + 'any_has_restock_price_processor': datastore.any_watches_have_processor_by_name("restock_diff"), 'datastore': datastore, 'has_proxies': datastore.proxy_list, 'processor_descriptions': processors.get_processor_descriptions(), diff --git a/changedetectionio/blueprint/watchlist/templates/watch-overview-single-row.html b/changedetectionio/blueprint/watchlist/templates/watch-overview-single-row.html index aa82622cb..8e544f51c 100644 --- a/changedetectionio/blueprint/watchlist/templates/watch-overview-single-row.html +++ b/changedetectionio/blueprint/watchlist/templates/watch-overview-single-row.html @@ -100,6 +100,13 @@ {%- if watch.is_pdf -%}Converting PDF to text{%- endif -%} {%- if watch.has_browser_steps -%}Browser Steps is enabled{%- endif -%} + + + + + +{%- if any_has_restock_price_processor -%} + {%- if watch['processor'] == 'restock_diff' -%} {#- @todo - this could be injected somehow watch.extra_row_info or something -#}
@@ -140,15 +147,9 @@ {%- endif -%}
{%- endif -%} - - - -{# -{%- if any_has_restock_price_processor -%} - {%- endif -%} -#} + {#last_checked becomes fetch-start-time#}