Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
61920b08
Commit
61920b08
authored
Sep 01, 2017
by
Ryan Herbert
Browse files
modules/tag.py tags_to_json add tag prefix
parent
2a54fc05
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/modules/tag.py
View file @
61920b08
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment