diff --git a/src/cogs/booru.py b/src/cogs/booru.py index 509a39b..5f9bb4d 100644 --- a/src/cogs/booru.py +++ b/src/cogs/booru.py @@ -36,7 +36,7 @@ class MsG: time = (dt.utcnow() - td(days=29)).strftime('%d/%m/%Y/%H:%M:%S') self.suggested = u.setdefault('cogs/suggested.pkl', 7) # self.suggested = u.setdefault('cogs/suggested.pkl', {'last_update': 'test', 'tags': {}, 'total': 1}) - print(self.suggested) + # print(self.suggested) self.favorites = u.setdefault('cogs/favorites.pkl', {}) self.blacklists = u.setdefault('cogs/blacklists.pkl', {'global': {}, 'channel': {}, 'user': {}}) diff --git a/src/utils/formatter.py b/src/utils/formatter.py index 9c274aa..d7950a7 100644 --- a/src/utils/formatter.py +++ b/src/utils/formatter.py @@ -39,16 +39,15 @@ async def paginate( end=''): paginator = Paginator(prefix=prefix, suffix=suffix) messages = [] - i = sorted(copy.deepcopy(i)) + i = copy.deepcopy(i) if start: - paginator.add_line(start) + paginator.add_line(start + ('' if type(i) is not dict else '\n')) if type(i) in (tuple, list, set): if not i: i = (' ') - paginator.add_line(eprefix + f'{ejoin}'.join(i) + esuffix) - + paginator.add_line(eprefix + f'{ejoin}'.join(sorted(i)) + esuffix) elif type(i) is dict: if not i: i = {' ': ' '}