summaryrefslogtreecommitdiff
path: root/server/szurubooru/func/posts.py
diff options
context:
space:
mode:
authorShyam Sunder <sgsunder1@gmail.com>2020-09-19 09:23:26 -0400
committerShyam Sunder <sgsunder1@gmail.com>2020-09-19 10:29:09 -0400
commit1ef0419dc28c52d005693f672f27f6bc107cb277 (patch)
treec322e87246748c2c1967e462767ba0a0cf4bdfaa /server/szurubooru/func/posts.py
parent802051399fc193eda7f06e534d7b3349cc41eb2e (diff)
server/pools: serialize pools as micro resource within post resources
Fixes #348
Diffstat (limited to 'server/szurubooru/func/posts.py')
-rw-r--r--server/szurubooru/func/posts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py
index 67996b6..e964d97 100644
--- a/server/szurubooru/func/posts.py
+++ b/server/szurubooru/func/posts.py
@@ -334,7 +334,7 @@ class PostSerializer(serialization.BaseSerializer):
def serialize_pools(self) -> List[Any]:
return [
- pools.serialize_pool(pool)
+ pools.serialize_micro_pool(pool)
for pool in sorted(
self.post.pools, key=lambda pool: pool.creation_time
)