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"]
|
||||
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
0
intake/source.py
Executable file → Normal file
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "intake"
|
||||
version = "1.0.5"
|
||||
version = "1.0.6"
|
||||
|
||||
[project.scripts]
|
||||
intake = "intake.cli:main"
|
||||
|
Loading…
Reference in New Issue
Block a user