Commit 0439ca0f authored by Aron Gergely's avatar Aron Gergely

API /attribute/ resource now listens to uniqued attributes instead of prettytext

parent c47b506c
......@@ -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])
......
Markdown is supported
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