Comparison

plugins/mod_storage_memory.lua @ 9906:d0b58bdd6c86

mod_storage_memory: Fix copypaste mistake
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2019 22:05:42 +0100
parent 9905:6d50efaee148
child 9997:7c4631d7b6fb
comparison
equal deleted inserted replaced
9905:6d50efaee148 9906:d0b58bdd6c86
145 if not item then return; end 145 if not item then return; end
146 return item.key, item.value(), item.when, item.with; 146 return item.key, item.value(), item.when, item.with;
147 end, count; 147 end, count;
148 end 148 end
149 149
150 function archive:summary(username, query) 150 function archive_store:summary(username, query)
151 local iter, err = self:find(username, query) 151 local iter, err = self:find(username, query)
152 if not iter then return iter, err; end 152 if not iter then return iter, err; end
153 local summary = {}; 153 local summary = {};
154 for _, _, _, with in iter do 154 for _, _, _, with in iter do
155 summary[with] = (summary[with] or 0) + 1; 155 summary[with] = (summary[with] or 0) + 1;