From 9a6dda2e1cba472bc1de238a25bb13c12981ccd8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 27 Sep 2022 02:22:06 +0200 Subject: [PATCH] fix syntax error in last commit --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 2e1c34549..beb9c142e 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -720,7 +720,7 @@ def song(song): @limiter.limit("1/second;30/minute;200/hour;1000/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') @auth_required def subscribe(v, post_id): - existing = g.db.query(Subscription).filter_by(user_id=v.id, submission_id=post_id).one_or_none(): + existing = g.db.query(Subscription).filter_by(user_id=v.id, submission_id=post_id).one_or_none() if not existing: new_sub = Subscription(user_id=v.id, submission_id=post_id) g.db.add(new_sub)