We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3254a55 commit 2d1d20eCopy full SHA for 2d1d20e
details_soup.py
@@ -86,8 +86,12 @@ def contest_rating_details_get():
86
start_ind = page.text.find('[', page.text.find('all_rating'))
87
end_ind = page.text.find(']', start_ind) + 1
88
89
- all_rating = json.loads(page.text[start_ind: end_ind])
+ next_opening_brack = page.text.find('[', start_ind+1)
90
+ while next_opening_brack < end_ind:
91
+ end_ind = page.text.find(']', end_ind+1) + 1
92
+ next_opening_brack = page.text.find('[', next_opening_brack+1)
93
94
+ all_rating = json.loads(page.text[start_ind: end_ind])
95
for rating_contest in all_rating:
96
rating_contest.pop('color')
97
0 commit comments