Fix serialization of action return value
This commit is contained in:
parent
b7e83c5059
commit
8828a4abef
|
@ -253,7 +253,7 @@ def action(source_name, item_id, action):
|
||||||
data_path: Path = current_app.config["INTAKE_DATA"]
|
data_path: Path = current_app.config["INTAKE_DATA"]
|
||||||
source = LocalSource(data_path, source_name)
|
source = LocalSource(data_path, source_name)
|
||||||
item = execute_action(source, item_id, action)
|
item = execute_action(source, item_id, action)
|
||||||
return jsonify(item)
|
return jsonify(item._item)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/edit/source/<string:name>", methods=["GET", "POST"])
|
@app.route("/edit/source/<string:name>", methods=["GET", "POST"])
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "intake"
|
name = "intake"
|
||||||
version = "1.0.5"
|
version = "1.0.6"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
intake = "intake.cli:main"
|
intake = "intake.cli:main"
|
||||||
|
|
Loading…
Reference in New Issue