From 9627c6db01d1ba756740931f8ca5f4e12c78d11f Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 19 Oct 2022 18:16:49 -0500 Subject: [PATCH] don't pass for no reason and also marsey -> existing --- files/routes/asset_submissions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 6fcf03e6a..23f9cc934 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -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!")