Skip to content

Commit

Permalink
Updating quiz url
Browse files Browse the repository at this point in the history
  • Loading branch information
debakarr committed Apr 20, 2024
1 parent 5a39b24 commit 6f1c752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kodekloud_downloader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

def download_quiz(output_dir: str, sep: bool):
quiz_markdown = [] if sep else ["# KodeKloud Quiz"]
response = requests.get("https://mcq-backend-main.kodekloud.com/quizzes")
response = requests.get("https://mcq-backend-main.kodekloud.com/api/quizzes/all")
response.raise_for_status()

quizzes = [Quiz(**item) for item in response.json()]
Expand Down
2 changes: 1 addition & 1 deletion src/kodekloud_downloader/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def fetch_question(question_id):
params = {
"id": question_id,
}
url = "https://mcq-backend-main.kodekloud.com/questions"
url = "https://mcq-backend-main.kodekloud.com/api/questions/question"
response = requests.get(url, params=params)
response.raise_for_status()
if question_json := response.json():
Expand Down

0 comments on commit 6f1c752

Please sign in to comment.