This commit is contained in:
Aevann1 2022-01-22 21:28:49 +02:00
parent dbdcefcfd9
commit bbea5577a9
4 changed files with 7 additions and 7 deletions

View file

@ -163,7 +163,7 @@ def api_comment(v):
try: badge_body = loads(body.lower())
except: return {"error": "You didn't follow the format retard"}, 500
badge_number = str(len(listdir('files/assets/images/badges'))+1)
with open("badges.json", 'r') as f: badges = loads(f.read().replace("'",'"'))
with open("badges.json", 'r') as f: badges = loads(f.read())
badges[badge_number] = badge_body
elif v.id in (CARP_ID,AEVANN_ID) and parent_post.id == 37838:
try: