Commit 61920b08 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

modules/tag.py tags_to_json add tag prefix

parent 2a54fc05
......@@ -96,10 +96,11 @@ def get_tags(db, group_id, query):
def tags_to_json(tags):
tag_list = []
prefix = get_tag_prefix()
for tag in tags:
tag_dict = {}
tag_dict['id'] = tag.id
tag_dict['value'] = tag.name
tag_dict['value'] = '%s%s' % (prefix, tag.name)
tag_list.append(tag_dict)
suggestions = {'suggestions': tag_list}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment