diff options
| author | celogeek <65178+celogeek@users.noreply.github.com> | 2021-02-07 17:52:55 +0100 |
|---|---|---|
| committer | celogeek <65178+celogeek@users.noreply.github.com> | 2021-02-07 17:52:55 +0100 |
| commit | 9443e79e97f45d0ed6c974fc23ec2ee510a4737b (patch) | |
| tree | e3fffb368f9200c0b0df95589b836a1b256f7c63 | |
| parent | 85813b22e5bded743f09ba9948fea18ff3c45654 (diff) | |
fix display of packs with sticker-import --list
| -rw-r--r-- | sticker/stickerimport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sticker/stickerimport.py b/sticker/stickerimport.py index 6846184..a2d7fd8 100644 --- a/sticker/stickerimport.py +++ b/sticker/stickerimport.py @@ -138,11 +138,12 @@ async def main(args: argparse.Namespace) -> None: if args.list: stickers: AllStickers = await client(GetAllStickersRequest(hash=0)) index = 1 - width = len(str(stickers.sets)) + width = len(str(len(stickers.sets))) print("Your saved sticker packs:") for saved_pack in stickers.sets: print(f"{index:>{width}}. {saved_pack.title} " f"(t.me/addstickers/{saved_pack.short_name})") + index += 1 elif args.pack[0]: input_packs = [] for pack_url in args.pack[0]: |
