mod_storage_gdbm/mod_storage_gdbm.lua
changeset 1608 53052a610c67
parent 1607 1fbec16996f5
child 1632 5e4b37b9cde1
--- a/mod_storage_gdbm/mod_storage_gdbm.lua	Sat Feb 07 22:22:46 2015 +0100
+++ b/mod_storage_gdbm/mod_storage_gdbm.lua	Sun Feb 08 17:05:21 2015 +0100
@@ -95,7 +95,7 @@
 			item = meta[i];
 			if (not query.with or item.with == query.with)
 			and (not query.start or item.when >= query.start)
-			and (not query["end"] or item.when >= query["end"]) then
+			and (not query["end"] or item.when <= query["end"]) then
 				s = i + d; c = c + 1;
 				value = self:get(item.key);
 				return item.key, (deserialize[item.type] or id)(value), item.when, item.with;