From ebb46e53a4a8989229523ff960957806334d7dfa Mon Sep 17 00:00:00 2001 From: Deka Jello Date: Fri, 19 Apr 2024 10:32:11 -0500 Subject: [PATCH] apply pre-commit --- client/css/post-upload.styl | 2 +- server/Dockerfile | 2 +- server/szurubooru/func/posts.py | 4 ++-- server/szurubooru/search/configs/post_search_config.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/css/post-upload.styl b/client/css/post-upload.styl index cb6b0067..2b38d928 100644 --- a/client/css/post-upload.styl +++ b/client/css/post-upload.styl @@ -65,7 +65,7 @@ $cancel-button-color = tomato img width: 100% height: 100% - + video width: 100% height: 100% diff --git a/server/Dockerfile b/server/Dockerfile index ae57f686..ad01406c 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -49,7 +49,7 @@ RUN apk --no-cache add \ && apk --no-cache del py3-pip COPY ./ /opt/app/ - + RUN addgroup app \ && adduser -SDH -h /opt/app -g '' -G app app \ && chown app:app /opt/app diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index 7098e894..b8c608ab 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -989,10 +989,10 @@ def get_pool_posts_around(post: model.Post) -> List[PoolPostsAround]: if index_in_pool < len(pool.posts) - 1: next_post = pool.posts[index_in_pool + 1] last_post = pool.posts[-1] - + around = PoolPostsAround(pool, first_post, prev_post, next_post, last_post) results.append(around) - + return results diff --git a/server/szurubooru/search/configs/post_search_config.py b/server/szurubooru/search/configs/post_search_config.py index b1de2476..6dea1262 100644 --- a/server/szurubooru/search/configs/post_search_config.py +++ b/server/szurubooru/search/configs/post_search_config.py @@ -221,7 +221,7 @@ class PostSearchConfig(BaseSearchConfig): def create_around_query(self) -> SaQuery: return db.session.query(model.Post).options(sa.orm.lazyload("*")) - + def create_around_filter_queries(self, filter_query: SaQuery, entity_id: int) -> Tuple[SaQuery, SaQuery]: if self.pool_id is not None: return _posts_around_pool(filter_query, entity_id, self.pool_id)