Format with Black

This commit is contained in:
Michał Gdula 2023-04-12 15:18:13 +00:00
parent d36699bd1f
commit 02d99a1671
5 changed files with 35 additions and 27 deletions

View file

@ -38,8 +38,9 @@ def index():
# get the images for the current page
images = (
Post.query
.with_entities( Post.filename, Post.alt, Post.colours, Post.created_at, Post.id)
Post.query.with_entities(
Post.filename, Post.alt, Post.colours, Post.created_at, Post.id
)
.order_by(Post.id.desc())
.offset((page - 1) * limit)
.limit(limit)