diff --git a/scripts/question_utils.py b/scripts/question_utils.py index 91fec90..1c1c4ec 100644 --- a/scripts/question_utils.py +++ b/scripts/question_utils.py @@ -41,7 +41,8 @@ def get_question_list(file_list: List[bytes]) -> list: def get_answered_questions(question_list: List[List[bytes]]) -> list: """Dont let the type hint confuse you, problem of not using classes. - It needs the result of get_question_list(file_list) + + It takes the result of get_question_list(file_list) Returns a list of questions that are answered. """ @@ -63,7 +64,7 @@ def get_answered_questions(question_list: List[List[bytes]]) -> list: def get_challenges_count() -> int: - challenges_path = pathlib.Path(__file__).parent.parent.joinpath('challenges').glob('*.md') + challenges_path = pathlib.Path(__file__).parent.parent.joinpath('exercises').glob('*.md') return len(list(challenges_path)) diff --git a/scripts/update_question_number.py b/scripts/update_question_number.py index 7499fbd..ea0f4de 100644 --- a/scripts/update_question_number.py +++ b/scripts/update_question_number.py @@ -21,7 +21,9 @@ file_list = [line.rstrip() for line in file] question_list = get_question_list(file_list) question_count = len(question_list) total_count = question_count + get_challenges_count() - +print(question_count) +print(get_challenges_count()) +print(total_count) for line in file: if LINE_FLAG in line: file[file.index(line)] = b':bar_chart:  There are currently **%s** questions\r\n' %\