(self, with_valid=True)
| 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): |