From 39955c13e9a9c45ec9edd6e5cde04110c534dd10 Mon Sep 17 00:00:00 2001 From: JulienPeloton Date: Tue, 17 Dec 2024 20:39:36 +0100 Subject: [PATCH] PEP8 --- apps/routes/template/api.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/routes/template/api.py b/apps/routes/template/api.py index daf244d..2b135e9 100644 --- a/apps/routes/template/api.py +++ b/apps/routes/template/api.py @@ -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", @@ -38,6 +34,7 @@ }, ) + @ns.route("") @ns.doc(params={k: ARGS[k].description for k in ARGS}) class Templates(Resource): @@ -72,4 +69,3 @@ def post(self): output_format = payload.get("output-format", "json") return send_tabular_data(out, output_format) -