Skip to content

Commit

Permalink
Attempt to fix 500 error on save
Browse files Browse the repository at this point in the history
I should have frozen MAGStock's base repo code earlier, but hopefully this should fix the disconnect.
  • Loading branch information
kitsuta authored Aug 7, 2023
1 parent 87f3cc7 commit 33d1b30
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 33d1b30

Please sign in to comment.