Skip to content

Commit

Permalink
Merge pull request #177 from magfest/main
Browse files Browse the repository at this point in the history
Attempt to fix 500 error on save
  • Loading branch information
kitsuta authored Aug 7, 2023
2 parents 02d97a3 + 33d1b30 commit 78501bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions magstock/receipt_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
@cost_calculation.Attendee
def brunch_tickets_cost(attendee):
if attendee.brunch_tickets:
return ("{} Brunch Ticket(s)".format(attendee.brunch_tickets), c.FOOD_PRICE * attendee.brunch_tickets * 100)
return ("{} Brunch Ticket(s)".format(attendee.brunch_tickets), c.FOOD_PRICE * attendee.brunch_tickets * 100, 'brunch_tickets')


@cost_calculation.Attendee
def dinner_tickets_cost(attendee):
if attendee.dinner_tickets:
return ("{} Dinner Ticket(s)".format(attendee.dinner_tickets), c.FOOD_PRICE * attendee.dinner_tickets * 100)
return ("{} Dinner Ticket(s)".format(attendee.dinner_tickets), c.FOOD_PRICE * attendee.dinner_tickets * 100, 'dinner_tickets')


@cost_calculation.Attendee
Expand All @@ -30,5 +30,5 @@ def camping_type_cost(attendee):
if attendee.camping_type == c.CABIN:
if not attendee.cabin_type:
return
return (attendee.cabin_type_label, int(c.CABIN_TYPE_PRICES[attendee.cabin_type]) * 100)
return (attendee.camping_type_label, int(c.CAMPING_TYPE_PRICES[attendee.camping_type]) * 100)
return (attendee.cabin_type_label, int(c.CABIN_TYPE_PRICES[attendee.cabin_type]) * 100, 'cabin_type')
return (attendee.camping_type_label, int(c.CAMPING_TYPE_PRICES[attendee.camping_type]) * 100, 'camping_type')

0 comments on commit 78501bc

Please sign in to comment.