| Conditions | 4 |
| Total Lines | 11 |
| Code Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | from src.moodle_to_vikwikiquiz.grading_types import GradingType |
||
| 22 | def __str__(self) -> str: |
||
| 23 | text = f"== {self.text} ==" |
||
| 24 | if self.illustration: |
||
| 25 | text += "\n[[Fájl:.png|bélyegkép]]" |
||
| 26 | text += f"\n\n{{{{kvízkérdés|típus={self.q_type.value}|válasz={",".join([str(answer) for answer in self.correct_answers])}" |
||
| 27 | if self.grading: |
||
| 28 | text += f"|pontozás={self.grading}" |
||
| 29 | text += "}}" |
||
| 30 | for answer in self.answers: |
||
| 31 | text += f"\n# {answer}" |
||
| 32 | return text |
||
| 33 | |||
| 46 |