forked from MarseyWorld/MarseyWorld
fix cutoff
parent
050824b96f
commit
da806fbf4d
|
@ -217,7 +217,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
|
|||
if i_hash in hashes.keys():
|
||||
os.remove(filename)
|
||||
if has_request:
|
||||
abort(409, "Image already exists! " + hashes[i_hash].replace('files', SITE_FULL))
|
||||
abort(409, "Image already exists! " + hashes[i_hash].split('/')[-1])
|
||||
return None
|
||||
|
||||
db = db or g.db
|
||||
|
|
Loading…
Reference in New Issue