RSS - Muted watches should not show in RSS feed (#2374 #2304)

pull/2378/head
dgtlmoon 7 months ago committed by GitHub
parent add2c658b4
commit f0ed4f64e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -338,8 +338,11 @@ def changedetection_app(config=None, datastore_o=None):
# @todo needs a .itemsWithTag() or something - then we can use that in Jinaj2 and throw this away # @todo needs a .itemsWithTag() or something - then we can use that in Jinaj2 and throw this away
for uuid, watch in datastore.data['watching'].items(): for uuid, watch in datastore.data['watching'].items():
# @todo tag notification_muted skip also (improve Watch model)
if watch.get('notification_muted'):
continue
if limit_tag and not limit_tag in watch['tags']: if limit_tag and not limit_tag in watch['tags']:
continue continue
watch['uuid'] = uuid watch['uuid'] = uuid
sorted_watches.append(watch) sorted_watches.append(watch)

Loading…
Cancel
Save