diff --git a/src/web/views/shelterapi.py b/src/web/views/shelterapi.py index 6c52f3faea3e4271fdb609dcb271b036ca1338ef..9a5adf1fb5a17ad0434108c84e9abaed28405d36 100644 --- a/src/web/views/shelterapi.py +++ b/src/web/views/shelterapi.py @@ -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])