From: Michael Vogel Date: Wed, 28 Aug 2019 04:44:37 +0000 (+0200) Subject: Fixed count, added to-do X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf170c9c0284bf438b1bec4c2f41ade49980b653;p=friendica.git Fixed count, added to-do --- diff --git a/src/Core/Worker.php b/src/Core/Worker.php index f24df5252d..3da17d4a6e 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -671,7 +671,7 @@ class Worker $waiting_processes = 0; // Now adding all processes with workerqueue entries $stamp = (float)microtime(true); - $jobs = DBA::p("SELECT COUNT(*) AS `entries`, `priority` FROM `workerqueue` WHERE NOT `done` AND `next_try` < ? GROUP BY `priority`", DateTimeFormat::utcNow()); + $jobs = DBA::p("SELECT COUNT(*) AS `entries`, `priority` FROM `workerqueue` WHERE NOT `done` GROUP BY `priority`"); self::$db_duration += (microtime(true) - $stamp); self::$db_duration_stat += (microtime(true) - $stamp); while ($entry = DBA::fetch($jobs)) { diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 75d820517f..4d9260d3e9 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1592,6 +1592,7 @@ class Contact extends BaseObject return true; } + /// @todo Add tests for Diaspora endpoints as well return false; }