From 34a575aa272b6681cc3755f9221cf607d50fb3be Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 20 Feb 2017 11:21:47 +0100 Subject: [PATCH] ops --- osu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.py b/osu.py index eed323b5..e85a3b64 100644 --- a/osu.py +++ b/osu.py @@ -16,7 +16,7 @@ async def get_user(user, mode=0): "u": user } # Get the data - r = await loop.run_in_executor(None, functools.partial(requests.get, timeout=6.1) 'https://osu.ppy.sh/api/get_user?k={k}&m={m}&u={u}'.format(**params)) + r = await loop.run_in_executor(None, functools.partial(requests.get, timeout=6.1), 'https://osu.ppy.sh/api/get_user?k={k}&m={m}&u={u}'.format(**params)) if r.status_code == 200: return r.json()[0] else: