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_next': pagination.has_next,
|
||||||
'has_prev': pagination.has_prev,
|
'has_prev': pagination.has_prev,
|
||||||
'total': pagination.total
|
'total': pagination.total
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -2,6 +2,7 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from api import db
|
from api import db
|
||||||
|
|
||||||
|
|
||||||
class Text(db.Model):
|
class Text(db.Model):
|
||||||
|
|
||||||
__tablename__ = 'i18n-texts'
|
__tablename__ = 'i18n-texts'
|
||||||
@@ -27,4 +28,4 @@ class TextData(db.Model):
|
|||||||
inserted = db.Column(db.DateTime, default=datetime.utcnow)
|
inserted = db.Column(db.DateTime, default=datetime.utcnow)
|
||||||
updated = db.Column(db.DateTime)
|
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)
|
return jsonify(j)
|
||||||
|
|
||||||
|
|
||||||
@mod.route("/<int:id>", methods=["GET"])
|
@mod.route("/<int:id>", methods=["GET"])
|
||||||
def show(id):
|
def show(id):
|
||||||
category = Category.query.get_or_404(id)
|
category = Category.query.get_or_404(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user