File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,14 @@ def _execute(self, args):
97
97
choosen_number = randint (1 , total )
98
98
while True :
99
99
list_instance = ProblemsetQuestionList ({'status' : 'NOT_STARTED' }, limit = 1 , skip = choosen_number - 1 )
100
- problem = list_instance .fetch_data ()[ 'problemsetQuestionList' ][ ' questions' ] [0 ]
101
- if not problem [ ' paidOnly' ] :
100
+ problem = list_instance .fetch_data (list_instance . params ). questions [0 ]
101
+ if not problem . paidOnly :
102
102
break
103
103
choosen_number = randint (1 , total )
104
104
105
105
with Loader ('Fetching problem contents...' , '' ):
106
- question_info_table = QuestionInfoTable (problem [ ' titleSlug' ] )
107
- question_content = QuestionContent (problem [ ' titleSlug' ] )
106
+ question_info_table = QuestionInfoTable (problem . titleSlug )
107
+ question_content = QuestionContent (problem . titleSlug )
108
108
console .print (question_info_table )
109
109
console .print (question_content )
110
110
You can’t perform that action at this time.
0 commit comments