projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76252d2
)
Prune.php
author
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:00 +0000
(12:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:00 +0000
(12:38 +0800)
Prune.php
patch
|
blob
|
history
diff --git
a/Prune.php
b/Prune.php
index
7589102
..
2fc3587
100644
(file)
--- a/
Prune.php
+++ b/
Prune.php
@@
-39,8
+39,7
@@
class Pman_Core_Prune extends Pman
function get($m="", $opts=array())
{
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);
$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
foreach($ar as $f) {
$q = DB_DataObject::Factory('Events');
$q->query("DELETE FROM Events where