Hi! I'm currently building an app where I need accomplish this:

When a booking is made I specify the booking start date time and the
booking end date time. How could I check periodically when a booking
has ended (according to end date)??

For example:

db.define_table('building1_rooms'
        Field('roomname'),
        Field('owner'))

db.define_table('building1_bookings',
        Field('requester'),
        Field('startdate'),
        Field('enddate'),
        Field('validated','boolean'))

so what I need is this, a booking is created, an admin validates the
booking, room.owner takes building1_bookings.requester, and when
server date == enddate,  room.owner should be 'Free'

Reply via email to