Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Shelter Database
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
CHARISM
Shelter Database
Commits
0439ca0f
Commit
0439ca0f
authored
Jul 31, 2016
by
Aron Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API /attribute/ resource now listens to uniqued attributes instead of prettytext
parent
c47b506c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/web/views/shelterapi.py
src/web/views/shelterapi.py
+1
-1
No files found.
src/web/views/shelterapi.py
View file @
0439ca0f
...
...
@@ -65,7 +65,7 @@ def getattributes(attribute_name, safetext=False):
"""Returns available values for a given attribute name, separated by semicolons"""
result
=
tree
()
attributes
=
Attribute
.
query
.
filter
(
Attribute
.
name
==
attribute_name
).
\
attributes
=
Attribute
.
query
.
filter
(
Attribute
.
uniqueid
==
attribute_name
).
\
first
().
associated_values
result
[
attribute_name
]
=
";"
.
join
([
attribute
.
name
for
attribute
in
attributes
])
...
...
Write
Preview
Markdown
is supported
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