forked from MarseyWorld/MarseyWorld
don't pass for no reason and also marsey -> existing
parent
62bd5a34e8
commit
9627c6db01
|
@ -381,10 +381,9 @@ if SITE not in ('pcmemes.net', 'watchpeopledie.tv'):
|
||||||
process_image(filename, resize=200, trim=True)
|
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}"])
|
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:
|
if tags and existing.tags != tags:
|
||||||
marsey.tags = tags
|
existing.tags = tags
|
||||||
g.db.add(marsey)
|
g.db.add(existing)
|
||||||
pass
|
|
||||||
|
|
||||||
if not file and not tags:
|
if not file and not tags:
|
||||||
return error("You need to update this marsey!")
|
return error("You need to update this marsey!")
|
||||||
|
|
Loading…
Reference in New Issue