mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-12 19:16:40 +00:00
Support for comma separated tags
This commit is contained in:
@@ -69,8 +69,12 @@ class ChangeDetectionStore:
|
||||
def get_all_tags(self):
|
||||
tags=[]
|
||||
for uuid, watch in self.data['watching'].items():
|
||||
if not watch['tag'] in tags:
|
||||
tags.append(watch['tag'])
|
||||
|
||||
# Support for comma separated list of tags.
|
||||
for tag in watch['tag'].split(','):
|
||||
tag = tag.strip()
|
||||
if not tag in tags:
|
||||
tags.append(tag)
|
||||
|
||||
|
||||
return tags
|
||||
|
||||
Reference in New Issue
Block a user