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/04 17:21:19 UTC

incubator-ponymail git commit: Oops forgot to encode the JSON

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 0d08450f6 -> 33393fa82


Oops forgot to encode the JSON

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/33393fa8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/33393fa8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/33393fa8

Branch: refs/heads/master
Commit: 33393fa82cc36b409152f059f3c692213ed42bb5
Parents: 0d08450
Author: Sebb <se...@apache.org>
Authored: Wed Jan 4 17:21:06 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Wed Jan 4 17:21:06 2017 +0000

----------------------------------------------------------------------
 site/api/stats.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/33393fa8/site/api/stats.lua
----------------------------------------------------------------------
diff --git a/site/api/stats.lua b/site/api/stats.lua
index fe01105..8b7a273 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -511,7 +511,7 @@ function handle(r)
         datespan.lastYear = tonumber(os.date("%Y", last))
         datespan.lastMonth = tonumber(os.date("%m", last))
 
-        r:ivm_set(DATESPAN_KEY, datespan) 
+        r:ivm_set(DATESPAN_KEY, JSON.encode(datespan)) 
     end
     
     -- Debug time point 6