Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Dec 17, 2024
1 parent 49ca761 commit 39955c1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/routes/template/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
ARGS = ns.model(
"template",
{
"arg1": fields.Integer(
description="Explain me",
example=1,
required=True
),
"arg1": fields.Integer(description="Explain me", example=1, required=True),
"output-format": fields.String(
description="Output format among json[default], csv, parquet, votable.",
example="json",
Expand All @@ -38,6 +34,7 @@
},
)


@ns.route("")
@ns.doc(params={k: ARGS[k].description for k in ARGS})
class Templates(Resource):
Expand Down Expand Up @@ -72,4 +69,3 @@ def post(self):

output_format = payload.get("output-format", "json")
return send_tabular_data(out, output_format)

0 comments on commit 39955c1

Please sign in to comment.