1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +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) return str(value)
def get_entity(req, ent, param = 'id'): def get_entity(req, ent, param = 'id'):
eid = req.args.get(param) eid = req.values.get(param)
if not eid: if not eid:
return False, req.error_formatter(10, 'Missing %s id' % ent.__name__) return False, req.error_formatter(10, 'Missing %s id' % ent.__name__)