You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2017/01/06 00:52:55 UTC
incubator-ponymail git commit: Docn
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 36b138444 -> b9db11ffc
Docn
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/b9db11ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/b9db11ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/b9db11ff
Branch: refs/heads/master
Commit: b9db11ffcfb0c6330db118cc91b38cbb134a7e28
Parents: 36b1384
Author: Sebb <se...@apache.org>
Authored: Fri Jan 6 00:52:22 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Fri Jan 6 00:52:22 2017 +0000
----------------------------------------------------------------------
site/api/stats.lua | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/b9db11ff/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index e349329..29950e6 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -211,7 +211,7 @@ function handle(r)
get.s = get.d
get.e = get.d
end
- -- Param: d=.*lte=n[wMyd].* (how long ago to start search)
+ -- Param: d=.*lte=n[wMyd].* (less than or equal to n days/weeks/etc ago)
-- from now-nP to now+1d (P=period)
if get.d then
local lte = get.d:match("lte=([0-9]+[wMyd])")
@@ -221,7 +221,7 @@ function handle(r)
daterange.gt = nil
end
end
- -- Param: d=.*gte=n[wMyd].* (how long ago to end search)
+ -- Param: d=.*gte=n[wMyd].* (greater than or equal to n days/weeks/etc ago)
-- before now-nP (P=period)
if get.d then
local gte = get.d:match("gte=([0-9]+[wMyd])")
@@ -231,7 +231,7 @@ function handle(r)
daterange.lte = "now-" .. gte
end
end
- -- Param: d=.*dfr=yyyy-mm-dd.*
+ -- Param: d=.*dfr=yyyy-mm-dd.* (dates from)
-- start date for search
if get.d then
local y,m,d = get.d:match("dfr=(%d+)%-(%d+)%-(%d+)")
@@ -240,7 +240,7 @@ function handle(r)
daterange.gt = nil
end
end
- -- Param: d=.*dto=yyyy-mm-dd.*
+ -- Param: d=.*dto=yyyy-mm-dd.* (dates up to)
-- end date for search
if get.d then
local y,m,d = get.d:match("dto=(%d+)%-(%d+)%-(%d+)")
@@ -263,8 +263,8 @@ function handle(r)
lte = get.e:gsub("%-","/").."/" .. ec .. " 23:59:59",
}
end
- local wc = false
- local sterm = {
+ local wc = false -- wildcard?
+ local sterm = { -- which lists to process
term = {
list_raw = listraw
}
@@ -287,7 +287,7 @@ function handle(r)
end
local top10 = {}
- local allparts = 0
+ local allparts = 0 -- number of participants
-- Check for changes?
-- Param: since=epoch (optional, defaults to now)
if get.since then