A further fix to the free slot algorithm #178

Merged
ken_fallon merged 1 commits from fix4_next_available_episode into main 2023-11-18 20:56:21 +00:00
Collaborator

templates/content-index.tpl.html: the TT² algorithm can be simplified
because the new query returns less. We get the date of the show
before the free slot, and can increment it differently depending on
whether the previous show is on a Friday or not - catering for
weekends in other words!

templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: using a 'find unused index
numbers' query available in many places on the Internet, but
modified to return the id number and date for the show before the
next free slot.

templates/content-index.tpl.html: the `TT²` algorithm can be simplified because the new query returns less. We get the date of the show before the free slot, and can increment it differently depending on whether the previous show is on a Friday or not - catering for weekends in other words! templates/queries-index-mysql.tpl.html, templates/queries-index-sqlite.tpl.html: using a 'find unused index numbers' query available in many places on the Internet, but modified to return the id number and date for the show *before* the next free slot.
davmo added 1 commit 2023-11-17 18:34:41 +00:00
e5b5aac104 A further fix to the free slot algorithm
templates/content-index.tpl.html: the `TT²` algorithm can be simplified
    because the new query returns less. We get the date of the show
    before the free slot, and can increment it differently depending on
    whether the previous show is on a Friday or not - catering for
    weekends in other words!

templates/queries-index-mysql.tpl.html,
templates/queries-index-sqlite.tpl.html: using a 'find unused index
    numbers' query available in many places on the Internet, but
    modified to return the id number and date for the show *before* the
    next free slot.
ken_fallon merged commit 15cd9018b0 into main 2023-11-18 20:56:21 +00:00
ken_fallon deleted branch fix4_next_available_episode 2023-11-18 20:56:25 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rho_n/hpr_generator#178
No description provided.