MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / page

Method page

apps/knowledge/serializers/paragraph.py:452–454  ·  view source on GitHub ↗
(self, current_page, page_size)

Source from the content-addressed store, hash-verified

450 return list(map(lambda row: ParagraphSerializer(row).data, self.get_query_set()))
451
452 def page(self, current_page, page_size):
453 query_set = self.get_query_set()
454 return page_search(current_page, page_size, query_set, lambda row: ParagraphSerializer(row).data)
455
456 class Association(serializers.Serializer):
457 workspace_id = serializers.CharField(required=True, label=_("workspace id"))

Callers

nothing calls this directly

Calls 3

get_query_setMethod · 0.95
page_searchFunction · 0.90
ParagraphSerializerClass · 0.85

Tested by

no test coverage detected