Skip to content

Commit

Permalink
🔧 removed templates from wikitexts extending existing quizzes
Browse files Browse the repository at this point in the history
  • Loading branch information
gy-mate committed Aug 24, 2024
1 parent a485d8b commit 245efeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/moodle_to_vikwikiquiz/quiz/quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def __init__(
self.state_of_illustrations = StateOfIllustrations.Nil

def __str__(self) -> str:
text = f"{{{{Vissza | {self.parent_article}}}}}"
text += f"""{{{{Kvízoldal
| cím = {self.title}"""
text = ""
if self.grading:
text += f"\n| pontozás = {self.grading.value}"
text += "\n}}"
text += f"""{{{{Vissza | {self.parent_article}}}}}{{{{Kvízoldal
| cím = {self.title}
| pontozás = {self.grading.value}
}}}}"""
for question in self.questions:
text += f"\n\n\n{question}"
text += "\n"
Expand Down

0 comments on commit 245efeb

Please sign in to comment.