Software /
code /
verse
Comparison
plugins/archive.lua @ 380:0891b4e27766
Discard trailing whitespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 May 2015 23:27:29 +0200 |
parent | 353:8cd05c3d0f1f |
child | 409:171c4a8cc3de |
comparison
equal
deleted
inserted
replaced
379:d80d27234e38 | 380:0891b4e27766 |
---|---|
25 function stream:query_archive(where, query_params, callback) | 25 function stream:query_archive(where, query_params, callback) |
26 local queryid = uuid(); | 26 local queryid = uuid(); |
27 local query_st = st.iq{ type="set", to = where } | 27 local query_st = st.iq{ type="set", to = where } |
28 :tag("query", { xmlns = xmlns_mam, queryid = queryid }); | 28 :tag("query", { xmlns = xmlns_mam, queryid = queryid }); |
29 | 29 |
30 | 30 |
31 local qstart, qend = tonumber(query_params["start"]), tonumber(query_params["end"]); | 31 local qstart, qend = tonumber(query_params["start"]), tonumber(query_params["end"]); |
32 query_params["start"] = qstart and datetime(qstart); | 32 query_params["start"] = qstart and datetime(qstart); |
33 query_params["end"] = qend and datetime(qend); | 33 query_params["end"] = qend and datetime(qend); |
34 | 34 |
35 query_st:add_child(query_form:form(query_params, "submit")); | 35 query_st:add_child(query_form:form(query_params, "submit")); |