Commit caed0f76 authored by PkSM3's avatar PkSM3

[UPDATE] remove .count()

parent 2a435408
...@@ -246,7 +246,7 @@ class Ngrams(APIView): ...@@ -246,7 +246,7 @@ class Ngrams(APIView):
# print("\t\tSTEP 07","\tCORPUS:",node_id," LIST:",request.GET.get('list', False) , " SCORES:",request.GET.get('score', False)) # print("\t\tSTEP 07","\tCORPUS:",node_id," LIST:",request.GET.get('list', False) , " SCORES:",request.GET.get('score', False))
# print("") # print("")
# print(ngrams_query) # print(ngrams_query)
total = ngrams_query.count() # total = ngrams_query.count()
# print("") # print("")
# print("\t\tSTEP 07.1, count:", total ,"\tCORPUS:",node_id," LIST:",request.GET.get('list', False) , " SCORES:",request.GET.get('score', False)) # print("\t\tSTEP 07.1, count:", total ,"\tCORPUS:",node_id," LIST:",request.GET.get('list', False) , " SCORES:",request.GET.get('score', False))
...@@ -277,7 +277,7 @@ class Ngrams(APIView): ...@@ -277,7 +277,7 @@ class Ngrams(APIView):
'pagination': { 'pagination': {
'offset': offset, 'offset': offset,
'limit': limit, 'limit': limit,
'total': total, 'total': len(output),
}, },
'data': output, 'data': output,
}) })
......
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