forked from rho_n/hpr_generator
Removed unnecessary computations from query_next_available_episode
This commit is contained in:
parent
51d328203b
commit
3ccd6101ee
@ -22,9 +22,6 @@
|
|||||||
SELECT
|
SELECT
|
||||||
empty_slot AS next_id,
|
empty_slot AS next_id,
|
||||||
ADDDATE(prev_date,date_offset) AS next_date,
|
ADDDATE(prev_date,date_offset) AS next_date,
|
||||||
YEAR(ADDDATE(prev_date,date_offset)) AS last_year,
|
|
||||||
MONTH(ADDDATE(prev_date,date_offset)) AS last_month,
|
|
||||||
DAY(ADDDATE(prev_date,date_offset)) AS last_day,
|
|
||||||
DATEDIFF(ADDDATE(prev_date,date_offset),NOW()) AS delta_days
|
DATEDIFF(ADDDATE(prev_date,date_offset),NOW()) AS delta_days
|
||||||
FROM free_slot
|
FROM free_slot
|
||||||
'
|
'
|
||||||
|
@ -22,9 +22,6 @@
|
|||||||
SELECT
|
SELECT
|
||||||
empty_slot AS next_id,
|
empty_slot AS next_id,
|
||||||
DATE (prev_date, date_offset) AS next_date,
|
DATE (prev_date, date_offset) AS next_date,
|
||||||
strftime(\'%Y\', DATE (prev_date, date_offset)) AS last_year,
|
|
||||||
strftime(\'%m\', DATE (prev_date, date_offset)) AS last_month,
|
|
||||||
strftime(\'%d\', DATE (prev_date, date_offset)) AS last_day,
|
|
||||||
printf(\'%i\',abs(julianday(DATE (prev_date, date_offset)) - julianday(\'now\') + 1)) AS delta_days
|
printf(\'%i\',abs(julianday(DATE (prev_date, date_offset)) - julianday(\'now\') + 1)) AS delta_days
|
||||||
FROM free_slot
|
FROM free_slot
|
||||||
'
|
'
|
||||||
|
Loading…
Reference in New Issue
Block a user