comparison mod_http_muc_log/mod_http_muc_log.lua @ 1553:1398d2bbcd42

mod_http_muc_log: List only dates with messages
author Kim Alvefur <zash@zash.se>
date Sun, 09 Nov 2014 08:34:52 +0100
parents 81b3599c02fb
children 8059b7cdaf17
comparison
equal deleted inserted replaced
1552:81b3599c02fb 1553:1398d2bbcd42
150 local next_day; 150 local next_day;
151 repeat 151 repeat
152 local iter = archive:find(room, { 152 local iter = archive:find(room, {
153 ["start"] = next_day; 153 ["start"] = next_day;
154 limit = 1; 154 limit = 1;
155 with = "message<groupchat";
155 }) 156 })
156 if not iter then break end 157 if not iter then break end
157 next_day = nil; 158 next_day = nil;
158 for key, message, when in iter do 159 for key, message, when in iter do
159 next_day = datetime.date(when); 160 next_day = datetime.date(when);