Skip to content

Commit

Permalink
Another missing guard
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed May 25, 2024
1 parent ef6cbca commit b90948a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/common/receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from playwright.async_api import async_playwright
import segno

from apps.common import feature_enabled
from main import external_url
from models import event_year
from models.product import Product, ProductGroup, PriceTier
Expand Down Expand Up @@ -125,6 +126,9 @@ def attach_tickets(msg, user):


def set_tickets_emailed(user):
if not feature_enabled("ISSUE_TICKETS"):
return False

purchases = (
user.owned_purchases.filter_by(is_paid_for=True)
.filter(Purchase.state.in_(["paid"]))
Expand Down

0 comments on commit b90948a

Please sign in to comment.