From cadccf1a53063b8892a0e7b42ae6496c2801dce0 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Wed, 31 Aug 2022 00:49:00 +0100 Subject: [PATCH] Updated API path --- server/CLIent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/CLIent.py b/server/CLIent.py index 3d4f8da..66c4c41 100644 --- a/server/CLIent.py +++ b/server/CLIent.py @@ -2,7 +2,6 @@ import requests from typing import Union SERVER = 'http://127.0.0.1:5000/' -FETCH_PATH = 'api/fetch/' INSTRUCTIONS = [ '---- Instructions ----', @@ -83,7 +82,7 @@ def validate_answer(answers:list, question:dict) -> bool: def render_questions() -> dict: answers = [] try: - questions = requests.get(url=f'{SERVER}{FETCH_PATH}questions/').json() + questions = requests.get(url=f'{SERVER}/api/questions/').json() except Exception as exception: print(exception) quit()