Commit 618abf66 authored by Mathieu Rodic's avatar Mathieu Rodic

[DEBUG] problem with ngrams.* fields in advanced query

parent bd33187b
......@@ -312,7 +312,7 @@ class NodesChildrenQueries(APIView):
field = func.count(Ngram.id)
tables.add('ngrams')
elif field_name_parts[0] == 'ngrams':
field = getattr(Ngram, field_name)
field = getattr(Ngram, field_name_parts[1])
tables.add('ngrams')
elif field_name_parts[0] == 'hyperdata':
hyperdata = _hyperdata_dict[field_name_parts[1]]
......
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