sd
This commit is contained in:
parent
f341fc27d7
commit
53b1a2f862
6 changed files with 7 additions and 25 deletions
|
@ -71,11 +71,7 @@ def get_account(id, v=None):
|
|||
|
||||
user = g.db.query(User).filter_by(id = id).one_or_none()
|
||||
|
||||
if not user:
|
||||
try: id = int(str(id), 36)
|
||||
except: abort(404)
|
||||
user = g.db.query(User).filter_by(id = id).one_or_none()
|
||||
if not user: abort(404)
|
||||
if not user: abort(404)
|
||||
|
||||
if v:
|
||||
block = g.db.query(UserBlock).filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue