Software / code / prosody
Diff
plugins/mod_storage_internal.lua @ 13848:45c508a12865
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 14 Apr 2025 15:51:05 +0200 |
| parent | 13847:cbd234461c41 |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Fri Apr 11 09:47:23 2025 +0200 +++ b/plugins/mod_storage_internal.lua Mon Apr 14 15:51:05 2025 +0200 @@ -205,12 +205,11 @@ return query.start - when; end); i = wi - 1; - else - iter = it.filter(function(item) - local when = item.when or datetime.parse(item.attr.stamp); - return when >= query.start; - end, iter); end + iter = it.filter(function(item) + local when = item.when or datetime.parse(item.attr.stamp); + return when >= query.start; + end, iter); end if query["end"] then if query.reverse then @@ -221,12 +220,11 @@ if wi then i = wi + 1; end - else - iter = it.filter(function(item) - local when = item.when or datetime.parse(item.attr.stamp); - return when <= query["end"]; - end, iter); end + iter = it.filter(function(item) + local when = item.when or datetime.parse(item.attr.stamp); + return when <= query["end"]; + end, iter); end if query.after then local found = false;