From 16ff15b65d2d9d0ed46ab47e69bb61d34214995d Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 8 Nov 2017 22:37:04 -0500 Subject: [PATCH] Fixed returned order interfering with sequential posts fetches --- src/main/cogs/booru.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index 52e537b..6bcb813 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -866,7 +866,8 @@ class MsG: try: if c % limit == 0: await dest.trigger_typing() - posts.update(await self._get_posts(ctx, booru='e621', tags=tags, limit=limit, previous=posts)) + temposts, order = await self._get_posts(ctx, booru='e621', tags=tags, limit=limit, previous=posts) + posts.update(temposts) keys = list(posts.keys()) values = list(posts.values()) @@ -1030,7 +1031,8 @@ class MsG: try: if c % limit == 0: await dest.trigger_typing() - posts.update(await self._get_posts(ctx, booru='e926', tags=tags, limit=limit, previous=posts)) + temposts, order = await self._get_posts(ctx, booru='e926', tags=tags, limit=limit, previous=posts) + posts.update(temposts) keys = list(posts.keys()) values = list(posts.values())