Skip to content

Commit

Permalink
https fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlyocean committed May 4, 2020
1 parent a761b4a commit ef5ef6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ir_webstats/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,8 @@ def event_results(self, subsession, sessnum=0):
""" Gets the event results (table of positions, times, etc.). The
event is identified by a subsession id. """

r = self.__req(ct.URL_GET_EVENTRESULTS % (subsession, sessnum))\
.encode('utf8')
data = [x for x in csv.reader(StringIO(r.decode('utf8')), delimiter=',',
r = self.__req(ct.URL_GET_EVENTRESULTS % (subsession, sessnum))
data = [x for x in csv.reader(StringIO(r), delimiter=',',
quotechar='"')]
header_ev, header_res = data[0], data[3]
event_info = dict(list(zip(header_ev, data[1])))
Expand Down

0 comments on commit ef5ef6e

Please sign in to comment.