1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00

B"H api: use GET and POST values in get_entity helper

This commit is contained in:
hhm 2016-08-24 02:21:11 -04:00
parent 306a7b3ec3
commit ef64db46d1

View File

@ -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__)