diff options
| author | Ruin0x11 <ipickering2@gmail.com> | 2020-06-02 17:43:18 -0700 |
|---|---|---|
| committer | Ruin0x11 <ipickering2@gmail.com> | 2020-06-02 17:43:18 -0700 |
| commit | 1be947e9462edf3bb0a8d15172e0c6e0190e0482 (patch) | |
| tree | 388fc2561df9f0235d3a8be15fd597a7d650dbb7 /server/szurubooru/func/posts.py | |
| parent | 7bcefeb347cb2969142fbab49a06ac2055be5c02 (diff) | |
PR fixes
Diffstat (limited to 'server/szurubooru/func/posts.py')
| -rw-r--r-- | server/szurubooru/func/posts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index 723a466..62458d8 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -300,7 +300,7 @@ class PostSerializer(serialization.BaseSerializer): self.post.comments, key=lambda comment: comment.creation_time)] - def serialize_pools(self) -> Any: + def serialize_pools(self) -> List[Any]: return [ pools.serialize_pool(pool) for pool in sorted( @@ -343,7 +343,7 @@ def get_post_by_id(post_id: int) -> model.Post: return post -def get_posts_by_ids(ids: List[int]) -> List[model.Pool]: +def get_posts_by_ids(ids: List[int]) -> List[model.Post]: if len(ids) == 0: return [] posts = ( |