A further fix to the free slot algorithm #178
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HPR/hpr_generator#178
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/178/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
templates/content-index.tpl.html: the
TT²
algorithm can be simplifiedbecause 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.