Mercurial > prosody-modules
changeset 1604:53052a610c67
mod_storage_gdbm: Fix comparison of 'end'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Feb 2015 17:05:21 +0100 (2015-02-08) |
parents | 1fbec16996f5 |
children | c8a51d1bc96d |
files | mod_storage_gdbm/mod_storage_gdbm.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;