|
|
@ -85,9 +85,13 @@ def main_page():
|
|
|
|
sorted_watches = []
|
|
|
|
sorted_watches = []
|
|
|
|
for uuid, watch in datastore.data['watching'].items():
|
|
|
|
for uuid, watch in datastore.data['watching'].items():
|
|
|
|
if limit_tag != None:
|
|
|
|
if limit_tag != None:
|
|
|
|
if watch['tag'] == limit_tag:
|
|
|
|
# Support for comma separated list of tags.
|
|
|
|
watch['uuid'] = uuid
|
|
|
|
for tag_in_watch in watch['tag'].split(','):
|
|
|
|
sorted_watches.append(watch)
|
|
|
|
tag_in_watch = tag_in_watch.strip()
|
|
|
|
|
|
|
|
if tag_in_watch == limit_tag:
|
|
|
|
|
|
|
|
watch['uuid'] = uuid
|
|
|
|
|
|
|
|
sorted_watches.append(watch)
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
watch['uuid'] = uuid
|
|
|
|
watch['uuid'] = uuid
|
|
|
|
sorted_watches.append(watch)
|
|
|
|
sorted_watches.append(watch)
|
|
|
|