Closed iamfeysal closed 7 months ago
hello @iamfeysal thanks for your report it works for me , can you provide more information? and send me the step by step what you do? and send me the error you get
hello @iamfeysal thanks for your report it works for me , can you provide more information? and send me the step by step what you do? and send me the error you get
@foad-heidari sure. you can please check the below video for more information of the error
hello @iamfeysal thanks for your report it works for me , can you provide more information? and send me the step by step what you do? and send me the error you get
@foad-heidari sure. you can please check the below video for more information of the error
Thanks for the information, i will check it. But you can try to use the admin optionsform "/booking/admin"
Hopefully it will work for you until it will be fixed
@iamfeysal okay so your end time is 23:00 and each booking is 1 hour.
When the while loop get to 00:00, the if state ment is not working
"If (00:00 > 23:00) break"
So it will never stop the loop.
You can change the code to
"If (next_time => booking_settings.end_time) break"
And move it one line before updating the next_time
@iamfeysal okay so your end time is 23:00 and each booking is 1 hour.
When the while loop get to 00:00, the if state ment is not working
"If (00:00 > 23:00) break"
So it will never stop the loop.
You can change the code to
"If (next_time => booking_settings.end_time) break"
And move it one line before updating the next_time
@foad-heidari yeah, I have been using that since then. it worked only when I set in I hours but I checked the admin optionsform "/booking/admin"
and it seems to work there for even 2 hours and beyond. No idea why it does not work when i use the django admin section though
@foad-heidari Hello, if I try to edit the
period_of_each_booking
field on theBookingSettings
model toI hour
through the admin and try to access the time in the template when I ran the app, it does not render and instead goes to an infinite loop. I investigated the issue and found out it is coming from theget_available_time
function on theif next_time > booking_settings.end_time: break
section. for some reason, thetime_list
doesn't break becausenext_time
is not greater thanbooking_settings.end_time
. please check it and let me know if it's also occurring on your side and anyone else reading this.The infinite loop only occurs when I set the
period_of_each_booking
field on theBookingSettings
to 1 hour or to 2 hours or to 3 hours in the admin