# HG changeset patch # User Kim Alvefur # Date 1490091466 -3600 # Node ID 71ce798c86ccf4ec2ff612ad09d4908431649ee0 # Parent 1330ed88ecd89a0624eea70c7ddbe1179a97bd65 mod_storage_xmlarchive: Add some spacing to improve readability diff -r 1330ed88ecd8 -r 71ce798c86cc mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Mar 21 11:17:17 2017 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Mar 21 11:17:46 2017 +0100 @@ -196,7 +196,9 @@ module:log("warn", "data[%q][%d] is nil", date, i); break; end + local i_when, i_with = item.when, item.with; + if type(i_when) == "string" then i_when = dt.parse(i_when); end @@ -204,6 +206,7 @@ module:log("warn", "data[%q][%d].when is invalid", date, i); break; end + if (not q_with or i_with == q_with) and (not q_start or i_when >= q_start) and (not q_end or i_when <= q_end) then