Support for comma separated tags

This commit is contained in:
Leigh Morresi
2021-01-30 11:22:59 +01:00
parent e589b441db
commit 3eaccfe5da
3 changed files with 14 additions and 5 deletions

View File

@@ -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