Commit 67d6f2e1 authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

order is

parent 18b0de4a
......@@ -173,7 +173,7 @@ class PrefixListAPIView(ListAPIView):
def get_queryset(self):
group_pk = self.kwargs['boilerplate']
queryset_prefix = Prefix.objects.filter(prefix_boilerplate = group_pk)
return queryset_prefix
return queryset_prefix.order_by('id')
class ExtractedPropertyAPIView(APIView):
......@@ -337,7 +337,7 @@ class InferDetailsAPIView(RetrieveUpdateDestroyAPIView):
prefix = BoilerplateData.objects.filter(group_of_boilerplate_data = instance['infer_group_of_boilerplate'].id)
for id in prefix:
boildata.append(self.getboildata(id.boilerplate_data_id.id))
prefixdata.append(self.getprefixdata(id.boilerplate_data_id.id))
prefixdata.append(self.getprefixdata(id.boilerplate_data_id.id).order_by('id'))
maindata.append(self.getmaindata(id.boilerplate_data_id.id))
suffixdata.append(self.getsuffixdata(id.boilerplate_data_id.id))
#try:
......@@ -398,7 +398,7 @@ class GetOntology(APIView):
'''Return extracted Properties based on the Property patterns'''
def getExtractedProperty(group_pk):
queryset_prefix = Prefix.objects.filter(prefix_boilerplate = group_pk)
queryset_prefix = Prefix.objects.filter(prefix_boilerplate = group_pk).order_by('id')
queryset_main = Main.objects.filter(boilerplate_of_main = group_pk)
queryset_suffix = Suffix.objects.filter(boilerplate_of_suffix = group_pk)
prefixdata= list(queryset_prefix.values())
......
File mode changed from 100644 to 100755
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