mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Fix formatter.paginate logic issues
This commit is contained in:
parent
540549def2
commit
9a673d6233
1 changed files with 3 additions and 4 deletions
|
@ -42,12 +42,11 @@ async def paginate(
|
|||
paginator.add_line(start)
|
||||
|
||||
if type(i) in (tuple, list, set):
|
||||
for e in sorted(i):
|
||||
if e and (e not in i) and (len(i) > 1):
|
||||
paginator.add_line(eprefix + f'{ejoin}'.join(e) + esuffix)
|
||||
paginator.add_line(eprefix + f'{ejoin}'.join(i) + esuffix)
|
||||
|
||||
elif type(i) is dict:
|
||||
for k, e in sorted(i.items()):
|
||||
if e and (k not in e) and (len(e) > 1):
|
||||
if e and (k not in e) and (len(e) >= 1):
|
||||
paginator.add_line(kprefix + k + ksuffix + eprefix + f'{ejoin}'.join(e) + esuffix)
|
||||
|
||||
if end:
|
||||
|
|
Loading…
Reference in a new issue