vv
This commit is contained in:
parent
cae8a841d8
commit
dd966bfedd
1 changed files with 3 additions and 2 deletions
|
@ -545,8 +545,9 @@ def api_is_available(name, v):
|
|||
|
||||
@app.get("/id/<id>")
|
||||
def user_id(id):
|
||||
|
||||
user = get_account(int(id))
|
||||
try: id = int(id)
|
||||
except: abort(404)
|
||||
user = get_account(id)
|
||||
return redirect(user.url)
|
||||
|
||||
@app.get("/u/<username>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue