From 7fc34d9ee7f511c45e0da359b707921307008f83 Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 22 Oct 2016 03:26:36 +0200 Subject: [PATCH] fix some small formatting issues --- api/helpers.py | 2 +- api/models/i18n.py | 3 ++- api/resources/categories.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/helpers.py b/api/helpers.py index a0a5039..42b000b 100644 --- a/api/helpers.py +++ b/api/helpers.py @@ -26,4 +26,4 @@ def pagination_to_dict(pagination): 'has_next': pagination.has_next, 'has_prev': pagination.has_prev, 'total': pagination.total - } \ No newline at end of file + } diff --git a/api/models/i18n.py b/api/models/i18n.py index db20eb9..74f967a 100644 --- a/api/models/i18n.py +++ b/api/models/i18n.py @@ -2,6 +2,7 @@ from datetime import datetime from api import db + class Text(db.Model): __tablename__ = 'i18n-texts' @@ -27,4 +28,4 @@ class TextData(db.Model): inserted = db.Column(db.DateTime, default=datetime.utcnow) updated = db.Column(db.DateTime) - __table_args__ = (db.PrimaryKeyConstraint(textid, language, territory),) \ No newline at end of file + __table_args__ = (db.PrimaryKeyConstraint(textid, language, territory),) diff --git a/api/resources/categories.py b/api/resources/categories.py index 1050b25..622bdc4 100644 --- a/api/resources/categories.py +++ b/api/resources/categories.py @@ -18,6 +18,7 @@ def list(): } return jsonify(j) + @mod.route("/", methods=["GET"]) def show(id): category = Category.query.get_or_404(id)