only limit /settings/kofi to subscriptions

master
Aevann1 2022-11-12 11:56:23 +02:00
parent 8d1052105e
commit 6f30cdeee5
1 changed files with 1 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ def settings_kofi(v):
if not (v.email and v.is_activated): if not (v.email and v.is_activated):
abort(400, f"You must have a verified email to verify {patron} status and claim your rewards!") abort(400, f"You must have a verified email to verify {patron} status and claim your rewards!")
transaction = g.db.query(Transaction).filter_by(email=v.email).order_by(Transaction.created_utc.desc()).first() transaction = g.db.query(Transaction).filter_by(email=v.email, type="Subscription").order_by(Transaction.created_utc.desc()).first()
if not transaction: if not transaction:
abort(404, "Email not found") abort(404, "Email not found")