Skip to content

Commit d2ccf38

Browse files
committed
better fix
1 parent a427233 commit d2ccf38

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

changedetectionio/flask_app.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,11 @@ def rss():
338338

339339
# @todo needs a .itemsWithTag() or something - then we can use that in Jinaj2 and throw this away
340340
for uuid, watch in datastore.data['watching'].items():
341+
# @todo tag notification_muted skip also (improve Watch model)
342+
if watch.get('notification_muted'):
343+
continue
341344
if limit_tag and not limit_tag in watch['tags']:
342-
continue
345+
continue
343346
watch['uuid'] = uuid
344347
sorted_watches.append(watch)
345348

@@ -356,8 +359,8 @@ def rss():
356359
# Re #521 - Don't bother processing this one if theres less than 2 snapshots, means we never had a change detected.
357360
if len(dates) < 2:
358361
continue
359-
# @todo tag notification_muted skip also (improve Watch model)
360-
if not watch.viewed and not watch.get('notification_muted'):
362+
363+
if not watch.viewed:
361364
# Re #239 - GUID needs to be individual for each event
362365
# @todo In the future make this a configurable link back (see work on BASE_URL https://github.com/dgtlmoon/changedetection.io/pull/228)
363366
guid = "{}/{}".format(watch['uuid'], watch.last_changed)

0 commit comments

Comments
 (0)