Merge 0.11->trunk

This commit is contained in:
Kim Alvefur 2020-05-15 21:26:54 +02:00
commit e32f71d3d4

View file

@ -150,12 +150,14 @@ function archive:find(username, query)
end
if query.start then
items:filter(function (item)
return item.when >= query.start;
local when = item.when or datetime.parse(item.attr.stamp);
return when >= query.start;
end);
end
if query["end"] then
items:filter(function (item)
return item.when <= query["end"];
local when = item.when or datetime.parse(item.attr.stamp);
return when <= query["end"];
end);
end
if query.total then