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>")
|
@app.get("/id/<id>")
|
||||||
def user_id(id):
|
def user_id(id):
|
||||||
|
try: id = int(id)
|
||||||
user = get_account(int(id))
|
except: abort(404)
|
||||||
|
user = get_account(id)
|
||||||
return redirect(user.url)
|
return redirect(user.url)
|
||||||
|
|
||||||
@app.get("/u/<username>")
|
@app.get("/u/<username>")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue