From 186e7ab9a0ccc62919d13fe947d178cdeb15895d Mon Sep 17 00:00:00 2001 From: Fyodor Alyokhin Date: Thu, 5 Feb 2026 01:32:36 +0100 Subject: [PATCH] works again --- booking/client.py | 5 ++++- config/constants.py | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/booking/client.py b/booking/client.py index fe6aff1..42b955e 100644 --- a/booking/client.py +++ b/booking/client.py @@ -42,6 +42,8 @@ class BookingClient: return resources[-1]['id'] if resources else None def reserve(self, resource_id, start, end): + print(start) + print(end) booking = self.session.post( f"{BOOKING_API_BASE}/order/bookings", params={ @@ -57,7 +59,8 @@ class BookingClient: "customer_note": "", "add_ons_by_service": {SERVICE_ID: [[]]}, "sub_bookings_by_service": {}, - "booking_quota_grant_id":"24735199", + # "booking_quota_grant_id":"24735199", + "booking_quota_grant_id":"24735202", "strategy": "multi-resource" } # data = '{"resource_id":["15994"],"service_id":{"601":1},"start_date":"2026-02-03T22:30:00+01:00","end_date":"2026-02-03T23:30:00+01:00","description":"","customer_note":"","add_ons_by_service":{"601":[[]]},"sub_bookings_by_service":{},"booking_quota_grant_id":"24735199","strategy":"multi-resource"}' diff --git a/config/constants.py b/config/constants.py index 8dc9d2c..054a594 100644 --- a/config/constants.py +++ b/config/constants.py @@ -20,9 +20,14 @@ DEFAULT_HEADERS = { # Booking time slots (in order of priority) BOOKING_TIMES = [ { - 'start': '12:00:00', - 'end': '22:00:00' + 'start': '08:00:00', + 'end': '09:00:00' }, + # { + # 'start': '12:00:00', + # 'end': '22:00:00' + # }, + # { # 'start': '22:30:00', # 'end': '23:30:00'