improve image handling
This commit is contained in:
parent
3b670016be
commit
7aa0f8b35d
@ -365,8 +365,7 @@ class GeneralSettingsController(AdminController):
|
||||
return variables
|
||||
|
||||
def handle_image(self, data, image_id):
|
||||
if image_id not in data or not data[image_id]:
|
||||
return
|
||||
if image_id in data and data[image_id]:
|
||||
config = CoreConfig()
|
||||
filename = "{}-{}".format(image_id, data[image_id])
|
||||
shutil.copy(config.get_temporary_directory() + "/" + filename, config.get_data_directory() + "/" + image_id)
|
||||
|
Loading…
Reference in New Issue
Block a user