Skip to content

Commit

Permalink
Do not decode event_results from API
Browse files Browse the repository at this point in the history
Fixes jeysonm82#4

Not tested on python 2.x
  • Loading branch information
LaundroMat committed Mar 7, 2016
1 parent 83c6178 commit 899b92b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ 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')
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]
Expand Down

0 comments on commit 899b92b

Please sign in to comment.