mirror of
https://git.wownero.com/wownero/YellWOWPages.git
synced 2024-08-15 01:03:25 +00:00
Ignore accounts without address, add user page
This commit is contained in:
parent
cc0c35814f
commit
9a51c3c4fb
4 changed files with 59 additions and 2 deletions
|
@ -13,7 +13,9 @@ async def api_root():
|
|||
|
||||
@bp_api.get('/user/')
|
||||
async def api_all():
|
||||
return jsonify([u.to_json(ignore_key='id') for u in User.select()])
|
||||
q = User.select()
|
||||
q = q.where(User.address.is_null(False))
|
||||
return jsonify([u.to_json(ignore_key='id') for u in q])
|
||||
|
||||
|
||||
@bp_api.get('/user/<path:needle>')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue