Compare commits

...

3 Commits

7 changed files with 6 additions and 3 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"])

View File

@ -172,7 +172,7 @@ def cmd_action(cmd_args):
source = LocalSource(data_path, args.source)
try:
item = execute_action(source, args.item, args.action, 5)
print("Item:", item, file=sys.stderr)
print("Item:", item._item, file=sys.stderr)
except InvalidConfigException as ex:
print("Could not fetch", args.source, file=sys.stderr)
print(ex, file=sys.stderr)

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

View File

@ -35,6 +35,7 @@ article {
}
article img {
max-width: 100%;
height: auto;
}
article textarea {
width: 100%;

View File

@ -35,6 +35,7 @@ article {
}
article img {
max-width: 100%;
height: auto;
}
button, summary {
cursor: pointer;

View File

@ -19,6 +19,7 @@ article {
}
article img {
max-width: 100%;
height: auto;
}
button, summary {
cursor: pointer;

View File

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