MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / one

Method one

apps/knowledge/serializers/problem.py:164–167  ·  view source on GitHub ↗
(self, with_valid=True)

Source from the content-addressed store, hash-verified

162 os.path.join(PROJECT_DIR, "apps", "knowledge", 'sql', 'list_paragraph.sql')))
163
164 def one(self, with_valid=True):
165 if with_valid:
166 self.is_valid(raise_exception=True)
167 return ProblemInstanceSerializer(QuerySet(Problem).get(**{'id': self.data.get('problem_id')})).data
168
169 @transaction.atomic
170 def delete(self, with_valid=True):

Callers 7

getMethod · 0.95
getMethod · 0.95
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls 3

is_validMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected