catchup by date: go by date_entered
This commit is contained in:
parent
c8b693cf7f
commit
94828a8b12
|
@ -1016,23 +1016,23 @@
|
||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
case "1day":
|
case "1day":
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$date_qpart = "updated < NOW() - INTERVAL '1 day' ";
|
$date_qpart = "date_entered < NOW() - INTERVAL '1 day' ";
|
||||||
} else {
|
} else {
|
||||||
$date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 1 WEEK) ";
|
$date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 WEEK) ";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "1week":
|
case "1week":
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$date_qpart = "updated < NOW() - INTERVAL '1 week' ";
|
$date_qpart = "date_entered < NOW() - INTERVAL '1 week' ";
|
||||||
} else {
|
} else {
|
||||||
$date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 1 WEEK) ";
|
$date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 WEEK) ";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "2weeks":
|
case "2weeks":
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
$date_qpart = "updated < NOW() - INTERVAL '2 week' ";
|
$date_qpart = "date_entered < NOW() - INTERVAL '2 week' ";
|
||||||
} else {
|
} else {
|
||||||
$date_qpart = "updated < DATE_SUB(NOW(), INTERVAL 2 WEEK) ";
|
$date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 2 WEEK) ";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue