mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
B"H api: use GET and POST values in get_entity helper
This commit is contained in:
parent
306a7b3ec3
commit
ef64db46d1
@ -177,7 +177,7 @@ class ResponseHelper:
|
||||
return str(value)
|
||||
|
||||
def get_entity(req, ent, param = 'id'):
|
||||
eid = req.args.get(param)
|
||||
eid = req.values.get(param)
|
||||
if not eid:
|
||||
return False, req.error_formatter(10, 'Missing %s id' % ent.__name__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user