fix some banners or sidebars not being uploaded when 1 of them is a repeat

master
Aevann 2023-08-04 16:19:00 +03:00
parent b2a3163a68
commit 95d82073f3
1 changed files with 0 additions and 2 deletions

View File

@ -248,8 +248,6 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None):
if i_hash in hashes.keys():
os.remove(filename)
if has_request:
abort(409, "Image already exists! " + hashes[i_hash].split('/')[-1])
return None
db = db or g.db