mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
ops
This commit is contained in:
parent
348c880793
commit
34a575aa27
1 changed files with 1 additions and 1 deletions
2
osu.py
2
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:
|
||||
|
|
Loading…
Reference in a new issue