fix: Image errors
This commit is contained in:
parent
8a44d48441
commit
93a3e95380
3
main.py
3
main.py
@ -212,8 +212,7 @@ def site_post():
|
|||||||
file.save(f'avatars/{i["name"]}.' + extension)
|
file.save(f'avatars/{i["name"]}.' + extension)
|
||||||
data['image'] = f'{i["name"]}.' + extension
|
data['image'] = f'{i["name"]}.' + extension
|
||||||
else:
|
else:
|
||||||
if 'image' not in data:
|
data['image'] = ''
|
||||||
data['image'] = ''
|
|
||||||
|
|
||||||
|
|
||||||
with open(f'sites/{i["name"]}.json', 'w') as file:
|
with open(f'sites/{i["name"]}.json', 'w') as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user