don't pass for no reason and also marsey -> existing

master
justcool393 2022-10-19 18:16:49 -05:00
parent 62bd5a34e8
commit 9627c6db01
1 changed files with 3 additions and 4 deletions

View File

@ -381,10 +381,9 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.tv'):
process_image(filename, resize=200, trim=True)
purge_files_in_cache([f"https://{SITE}/e/{name}.webp", f"https://{SITE}/assets/images/emojis/{name}.webp", f"https://{SITE}/asset_submissions/marseys/original/{name}.{format}"])
if tags and not marsey.tags == tags:
marsey.tags = tags
g.db.add(marsey)
pass
if tags and existing.tags != tags:
existing.tags = tags
g.db.add(existing)
if not file and not tags:
return error("You need to update this marsey!")