From 5b151c68e2d6b5ef5b1cc19b28af11fb4e04b84d Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 13 Jan 2026 16:05:57 +0100 Subject: [PATCH] Possible RSS watch UUID bugfix --- changedetectionio/blueprint/rss/single_watch.py | 5 +---- changedetectionio/blueprint/rss/tag.py | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/changedetectionio/blueprint/rss/single_watch.py b/changedetectionio/blueprint/rss/single_watch.py index 3cfdb1900..1d011902d 100644 --- a/changedetectionio/blueprint/rss/single_watch.py +++ b/changedetectionio/blueprint/rss/single_watch.py @@ -47,9 +47,6 @@ def construct_single_watch_routes(rss_blueprint, datastore): if len(dates) < 2: return f"Watch {uuid} does not have enough history snapshots to show changes (need at least 2)", 400 - # Add uuid to watch for proper functioning - watch['uuid'] = uuid - # Get the number of diffs to include (default: 5) rss_diff_length = datastore.data['settings']['application'].get('rss_diff_length', 5) @@ -101,7 +98,7 @@ def construct_single_watch_routes(rss_blueprint, datastore): date_index_from, date_index_to) # Create and populate feed entry - guid = f"{watch['uuid']}/{timestamp_to}" + guid = f"{uuid}/{timestamp_to}" fe = fg.add_entry() title_suffix = f"Change @ {res['original_context']['change_datetime']}" populate_feed_entry(fe, watch, res.get('body', ''), guid, timestamp_to, diff --git a/changedetectionio/blueprint/rss/tag.py b/changedetectionio/blueprint/rss/tag.py index 7e22af71d..8459234ba 100644 --- a/changedetectionio/blueprint/rss/tag.py +++ b/changedetectionio/blueprint/rss/tag.py @@ -63,11 +63,8 @@ def construct_tag_routes(rss_blueprint, datastore): # Only include unviewed watches if not watch.viewed: - # Add uuid to watch for proper functioning - watch['uuid'] = uuid - - # Include a link to the diff page - diff_link = {'href': url_for('ui.ui_diff.diff_history_page', uuid=watch['uuid'], _external=True)} + # Include a link to the diff page (use uuid from loop, don't modify watch dict) + diff_link = {'href': url_for('ui.ui_diff.diff_history_page', uuid=uuid, _external=True)} # Get watch label watch_label = get_watch_label(datastore, watch)