mod_storage_gdbm: Fix comparison of 'end'
authorKim Alvefur <zash@zash.se>
Sun, 08 Feb 2015 17:05:21 +0100
changeset 1608 53052a610c67
parent 1607 1fbec16996f5
child 1609 c8a51d1bc96d
mod_storage_gdbm: Fix comparison of 'end'
mod_storage_gdbm/mod_storage_gdbm.lua
--- 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;