fix some small formatting issues
This commit is contained in:
+1
-1
@@ -26,4 +26,4 @@ def pagination_to_dict(pagination):
|
||||
'has_next': pagination.has_next,
|
||||
'has_prev': pagination.has_prev,
|
||||
'total': pagination.total
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -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),)
|
||||
__table_args__ = (db.PrimaryKeyConstraint(textid, language, territory),)
|
||||
|
||||
@@ -18,6 +18,7 @@ def list():
|
||||
}
|
||||
return jsonify(j)
|
||||
|
||||
|
||||
@mod.route("/<int:id>", methods=["GET"])
|
||||
def show(id):
|
||||
category = Category.query.get_or_404(id)
|
||||
|
||||
Reference in New Issue
Block a user