works again
This commit is contained in:
parent
75c374dedf
commit
186e7ab9a0
2 changed files with 11 additions and 3 deletions
|
|
@ -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"}'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue