No second booking at the same time

If there is already a booking from 8:00 am to 9:00 am, then there should be no second booking at this time. can any one guide me

Save the booking date nd time in tinydb.

Whenever user try to book check the current booking is in tinydb or not
If exists
Then alert user
Else continue for booking and save the booking date nd time in tinydb

create a list in the DB with the date/time with each reservation, when listing time availability you do it excluding the existing ones

If i have a booking 8:00 am to 1:00 pm . and someone want to book 11:00 am .

that is different case… your qustion is, you dont want second booking between two time interavl… if you want proper help (and do not want waste our time) pls elaborate your query properly…

By the way we have received two queries from different peoples, if both are same as per community guideliness only one account only be used… else one ac will be delisted…if both are different persons pls wait untill the op got his answer

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.