Skip to content

Commit

Permalink
feat: add dinamical price in server side
Browse files Browse the repository at this point in the history
  • Loading branch information
RezenkovD committed Aug 16, 2023
1 parent cda7fb2 commit 86b7c3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vr_club_site/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ def book_session(request, slots, data_to_save):
phone_number=data_to_save["phone_number"],
people_count=data_to_save["people_count"],
comment=data_to_save["comment"],
price=COST_SESSION * data_to_save["people_count"] * len(slots),
price=get_price(data_to_save["date"])
* data_to_save["people_count"]
* len(slots),
)
booking.save()
booking_times_to_create = [
Expand Down

0 comments on commit 86b7c3b

Please sign in to comment.