Basic tag browse buttons

This commit is contained in:
Leigh Morresi
2021-01-29 15:51:30 +01:00
parent 016937d5de
commit b6e9bb12fb
4 changed files with 36 additions and 5 deletions

View File

@@ -52,8 +52,15 @@ class ChangeDetectionStore:
self.data['watching'][uuid].update({val: var})
self.sync_to_json()
def get_all_tags(self):
tags=[]
for uuid, watch in self.data['watching'].items():
if not watch['tag'] in tags:
tags.append(watch['tag'])
return tags
def delete(self, uuid):
# Probably their should be dict...
del(self.data['watching'][uuid])