aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-09-05 15:00:41 +0300
committerTulir Asokan <tulir@maunium.net>2020-09-05 15:00:41 +0300
commit3876e13d4d864865667c90a9f578b528ad61a7f0 (patch)
tree437cc9d92b6a85ffd9d6e020636ac70af98091f2
parentb5f37da639c562e4bd56a1d17d8584d0330df87c (diff)
Move saved pack print
-rw-r--r--import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/import.py b/import.py
index 5114db4..d1b892f 100644
--- a/import.py
+++ b/import.py
@@ -179,6 +179,7 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull) -> None:
"hash": pack.set.hash,
"stickers": list(reuploaded_documents.values()),
}, pack_file, ensure_ascii=False)
+ print(f"Saved {pack.set.title} as {pack.set.short_name}.json")
add_to_index(os.path.basename(pack_path))
@@ -211,7 +212,6 @@ async def main():
for input_pack in input_packs:
pack: StickerSetFull = await client(GetStickerSetRequest(input_pack))
await reupload_pack(client, pack)
- print(f"Saved {pack.set.title} as {pack.set.short_name}.json")
else:
parser.print_help()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage