From 33d1b30655f6f7a02d0abcd7ca1b9f285975104b Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Mon, 7 Aug 2023 18:08:39 -0400 Subject: [PATCH] Attempt to fix 500 error on save I should have frozen MAGStock's base repo code earlier, but hopefully this should fix the disconnect. --- magstock/receipt_items.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/magstock/receipt_items.py b/magstock/receipt_items.py index 9ddad10..a33bea8 100644 --- a/magstock/receipt_items.py +++ b/magstock/receipt_items.py @@ -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 @@ -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) \ No newline at end of file + 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')