fix: Image errors
This commit is contained in:
parent
8a44d48441
commit
93a3e95380
1
main.py
1
main.py
@ -212,7 +212,6 @@ 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'] = ''
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user