From 09784f98d703a83b46eb95ec9f6bcd48596fad76 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 4 Oct 2018 12:38:00 +0800 Subject: [PATCH] Prune.php --- Prune.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Prune.php b/Prune.php index 7589102f..2fc3587c 100644 --- a/Prune.php +++ b/Prune.php @@ -39,8 +39,7 @@ class Pman_Core_Prune extends Pman function get($m="", $opts=array()) { - echo "start?"; - // prune irrelivant stuff.. + // prune irrelivant stuff.. @@ -88,8 +87,8 @@ class Pman_Core_Prune extends Pman $f->having("mm > 2"); $f->orderBy('mm desc') ; $f->limit(10000); - exit; - $ar = $f->fetchAll(); + $ar = $f->fetchAll(); + foreach($ar as $f) { $q = DB_DataObject::Factory('Events'); $q->query("DELETE FROM Events where -- 2.39.2