From 93a3e9538017f9fd21ea2eee612c27c403529b63 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 25 Feb 2024 14:15:25 +1100 Subject: [PATCH] fix: Image errors --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index a4fe152..5fe95b7 100644 --- a/main.py +++ b/main.py @@ -212,8 +212,7 @@ def site_post(): file.save(f'avatars/{i["name"]}.' + extension) data['image'] = f'{i["name"]}.' + extension else: - if 'image' not in data: - data['image'] = '' + data['image'] = '' with open(f'sites/{i["name"]}.json', 'w') as file: