Author: xor
Date: 2008-11-12 01:38:56 +0000 (Wed, 12 Nov 2008)
New Revision: 23507
Modified:
trunk/plugins/WoT/introduction/IntroductionPuzzle.java
Log:
Bugfix: Do not delete our own puzzles when ensuring that there is only a
certain amount of puzzles in the pool.
Modified: trunk/plugins/WoT/introduction/IntroductionPuzzle.java
===================================================================
--- trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-12
01:37:56 UTC (rev 23506)
+++ trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-12
01:38:56 UTC (rev 23507)
@@ -250,6 +250,7 @@
public static void deleteOldestPuzzles(ObjectContainer db, int
puzzlePoolSize) {
Query q = db.query();
q.constrain(IntroductionPuzzle.class);
+ q.descend("mSolution").constrain(null).identity(); /* FIXME:
toad said constrain(null) is maybe broken. If this is true: Alternative would
be: q.descend("mIdentity").constrain(OwnIdentity.class).not(); */
q.descend("mValidUntilTime").orderAscending();
ObjectSet<IntroductionPuzzle> result = q.execute();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs