apply pre-commit

This commit is contained in:
Deka Jello 2024-04-19 10:32:11 -05:00
parent dff6b65517
commit ebb46e53a4
4 changed files with 5 additions and 5 deletions

View file

@ -65,7 +65,7 @@ $cancel-button-color = tomato
img
width: 100%
height: 100%
video
width: 100%
height: 100%

View file

@ -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

View file

@ -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

View file

@ -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)