File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ def get_question_list(file_list: List[bytes]) -> list:
41
41
42
42
def get_answered_questions (question_list : List [List [bytes ]]) -> list :
43
43
"""Dont let the type hint confuse you, problem of not using classes.
44
- It needs the result of get_question_list(file_list)
44
+
45
+ It takes the result of get_question_list(file_list)
45
46
46
47
Returns a list of questions that are answered.
47
48
"""
@@ -63,7 +64,7 @@ def get_answered_questions(question_list: List[List[bytes]]) -> list:
63
64
64
65
65
66
def get_challenges_count () -> int :
66
- challenges_path = pathlib .Path (__file__ ).parent .parent .joinpath ('challenges ' ).glob ('*.md' )
67
+ challenges_path = pathlib .Path (__file__ ).parent .parent .joinpath ('exercises ' ).glob ('*.md' )
67
68
return len (list (challenges_path ))
68
69
69
70
Original file line number Diff line number Diff line change 21
21
question_list = get_question_list (file_list )
22
22
question_count = len (question_list )
23
23
total_count = question_count + get_challenges_count ()
24
-
24
+ print (question_count )
25
+ print (get_challenges_count ())
26
+ print (total_count )
25
27
for line in file :
26
28
if LINE_FLAG in line :
27
29
file [file .index (line )] = b':bar_chart: There are currently **%s** questions\r \n ' % \
You can’t perform that action at this time.
0 commit comments