Fix serialization of action return value

This commit is contained in:
Tim Van Baak 2024-04-27 14:33:56 +00:00
parent b7e83c5059
commit 8828a4abef
3 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ def action(source_name, item_id, action):
data_path: Path = current_app.config["INTAKE_DATA"]
source = LocalSource(data_path, source_name)
item = execute_action(source, item_id, action)
return jsonify(item)
return jsonify(item._item)
@app.route("/edit/source/<string:name>", methods=["GET", "POST"])

0
intake/source.py Executable file → Normal file
View File

View File

@ -1,6 +1,6 @@
[project]
name = "intake"
version = "1.0.5"
version = "1.0.6"
[project.scripts]
intake = "intake.cli:main"