Giter Club home page Giter Club logo

Comments (5)

foad-heidari avatar foad-heidari commented on July 18, 2024

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

from dj-booking.

iamfeysal avatar iamfeysal commented on July 18, 2024

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

infinite.loop.mp4

from dj-booking.

foad-heidari avatar foad-heidari commented on July 18, 2024

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

infinite.loop.mp4

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

from dj-booking.

foad-heidari avatar foad-heidari commented on July 18, 2024

@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

from dj-booking.

iamfeysal avatar iamfeysal commented on July 18, 2024

@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

from dj-booking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.