forked from shaytan/rdgen
add save/load configuration
This commit is contained in:
@@ -80,7 +80,8 @@ def generator_view(request):
|
|||||||
full_url = f"{protocol}://{host}"
|
full_url = f"{protocol}://{host}"
|
||||||
try:
|
try:
|
||||||
iconfile = form.cleaned_data['iconfile']
|
iconfile = form.cleaned_data['iconfile']
|
||||||
print(iconfile)
|
if not iconfile:
|
||||||
|
iconfile = request.POST.get('iconfile')
|
||||||
#iconbase64 = resize_and_encode_icon(iconfile)
|
#iconbase64 = resize_and_encode_icon(iconfile)
|
||||||
iconlink = save_png(iconfile,myuuid,full_url,"icon.png")
|
iconlink = save_png(iconfile,myuuid,full_url,"icon.png")
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user