fixed bug preventing adding items via /api/history endpoint
This commit is contained in:
parent
d3d6665e56
commit
1187badc2d
1 changed files with 1 additions and 1 deletions
|
|
@ -430,7 +430,7 @@ class HttpAPI(common):
|
||||||
|
|
||||||
for item in data:
|
for item in data:
|
||||||
try:
|
try:
|
||||||
self._formatItem(item)
|
item = self._formatItem(item)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
return web.json_response(data={"error": str(e), "data": item}, status=web.HTTPBadRequest.status_code)
|
return web.json_response(data={"error": str(e), "data": item}, status=web.HTTPBadRequest.status_code)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue