Skip to content

Commit

Permalink
fix fetching groups contests ids
Browse files Browse the repository at this point in the history
  • Loading branch information
bacali95 committed Dec 22, 2020
1 parent a976f5d commit 065e8ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cf_submit/cf_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def refresh_contests_data(group):
contests = []
for row in rows:
contest = Obj({})
m = re.search('data-contestid=".*"', str(row))
setattr(contest, 'id', m.group(0).replace('data-contestid="', '')[:-1])
setattr(contest, 'id', row['data-contestid'])
setattr(contest, 'name', row.find_all(
'td')[0].text.split('\n')[1].strip())
contests.append(contest)
Expand Down

0 comments on commit 065e8ee

Please sign in to comment.