# HG changeset patch # User Kim Alvefur # Date 1423411521 -3600 # Node ID 53052a610c6789129c4b9194756ec5e5b24a4814 # Parent 1fbec16996f53cb05d547009fafbc76ee9bfbe7b mod_storage_gdbm: Fix comparison of 'end' diff -r 1fbec16996f5 -r 53052a610c67 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;