Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to helpers and client #53

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions pyracing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,3 +782,4 @@ async def yearly_stats(self, cust_id):
return []

return [career_stats.YearlyStats(x) for x in response.json()]
def cleanup_payload(payload):
NoHeDidnt marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 1 addition & 2 deletions pyracing/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def now_five_min_floor():


def parse_encode(string):
if not type(string) is str:
if not isinstance(string, str):
return ''

return urllib.parse.unquote(string).replace('+', ' ')