Skip to content

Commit

Permalink
Allow badge sales during the event
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed Jun 1, 2024
1 parent fab1d09 commit 2937ff6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/tickets/choose.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from models.exc import CapacityException
from models.product import PriceTier, ProductView, ProductViewProduct, Product, Voucher
from models.basket import Basket
from models.site_state import get_sales_state
from models.site_state import get_site_state, get_sales_state
from typing import Optional

from ..common import get_user_currency, set_user_currency, feature_enabled
Expand Down Expand Up @@ -61,6 +61,10 @@ def main(flow="main"):
if flow != "main":
sales_state = "available"

# Allow badges and batteries to be sold during the event
if get_site_state() == "event" and flow == "badge":
sales_state = "available"

if app.config.get("DEBUG"):
sales_state = request.args.get("sales_state", sales_state)

Expand Down

0 comments on commit 2937ff6

Please sign in to comment.