A further fix to the free slot algorithm #178

Merged
rho_n merged 0 commits from refs/pull/178/head into main 2023-11-18 20:56:21 +00:00
Owner

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.
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: HPR/hpr_generator#178
No description provided.