remotes/1693045480750635534/spooky-22
Aevann1 2022-01-22 14:18:13 +02:00
parent c073e79300
commit 03fdaddd27
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ def api_comment(v):
badge_number = str(len(listdir('files/assets/images/badges'))+1)
with open("badges.json", 'r') as f: badges = loads(f.read())
badges[badge_number] = badge_body
elif parent_post.id == 57:
elif parent_post.id == 37838:
try:
marsey_dict = list(loads(body).items())
marsey_key = marsey_dict[0][0]
@ -207,7 +207,7 @@ def api_comment(v):
filename = f'files/assets/images/badges/{badge_number}.webp'
process_image(file, filename, 200)
with open('badges.json', 'w') as f: dump(badges, f)
elif parent_post.id == 57:
elif parent_post.id == 37838:
filename = f'files/assets/images/emojis/{marsey_key}.webp'
process_image(file, filename, 200)
with open('marsey_list.json', 'w') as f: dump(marsey_list, f)