ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Docn, indentation
Date Fri, 09 Dec 2016 22:53:38 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 151708733 -> 11545df4f


Docn, indentation

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

Branch: refs/heads/master
Commit: 11545df4f22a545369338eec382cb6a074a6c902
Parents: 1517087
Author: Sebb <sebb@apache.org>
Authored: Fri Dec 9 22:53:21 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Fri Dec 9 22:53:21 2016 +0000

----------------------------------------------------------------------
 site/api/pminfo.lua | 67 +++++++++++++++++++++++++++---------------------
 1 file changed, 38 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/11545df4/site/api/pminfo.lua
----------------------------------------------------------------------
diff --git a/site/api/pminfo.lua b/site/api/pminfo.lua
index 408b112..22a5cb3 100644
--- a/site/api/pminfo.lua
+++ b/site/api/pminfo.lua
@@ -63,10 +63,11 @@ function handle(r)
             bool = {
                 must = {
                     {
-                    range = {
-                        date = daterange
-                    }
-                }, {
+                        range = {
+                            date = daterange
+                        }
+                    }, 
+                    {
                         term = {
                             private = false
                         }
@@ -84,8 +85,8 @@ function handle(r)
             }
         }
     }
-    local lists = {}
-    local nal = 0
+    local lists = {} -- TODO unused?
+    local nal = 0 -- This *is* used
 
     for x,y in pairs (doc.aggregations.from.buckets) do
         local list, domain = y.key:match("^<?(.-)%.(.-)>?$")
@@ -105,14 +106,16 @@ function handle(r)
             bool = {
                 must = {
                     {
-                    range = {
-                        date = daterange
-                    }
-                }, {
+                        range = {
+                            date = daterange
+                        }
+                    }, 
+                    {
                         term = {
                             private = false
                         }
-                    },sterm
+                    },
+                    sterm
                 }
             }
         },
@@ -144,14 +147,16 @@ function handle(r)
             bool = {
                 must = {
                     {
-                    range = {
-                        date = daterange
-                    }
-                }, {
+                        range = {
+                            date = daterange
+                        }
+                    },
+                    {
                         term = {
                             private = false
                         }
-                    },sterm
+                    },
+                    sterm
                 }
             }
         }
@@ -176,19 +181,21 @@ function handle(r)
             bool = {
                 must = {
                     {
-                    range = {
-                        date = daterange
-                    }
-                }, {
+                        range = {
+                            date = daterange
+                        }
+                    },
+                    {
                         term = {
                             private = false
                         }
-                    },sterm
+                    },
+                    sterm
                 }
             }
         }
     }
-    local active_senders = {}
+    local active_senders = {} -- TODO unused?
     
     
     
@@ -226,14 +233,16 @@ function handle(r)
             bool = {
                 must = {
                     {
-                    range = {
-                        date = daterange
-                    }
-                }, {
+                        range = {
+                            date = daterange
+                        }
+                    },
+                    {
                         term = {
                             private = false
                         }
-                    },sterm
+                    },
+                    sterm
                 }
             }
         },
@@ -339,9 +348,9 @@ function handle(r)
     listdata.no_threads = #threads
     listdata.hits = h
     listdata.participants = no_senders
-    listdata.top100 = active_senders
+    listdata.top100 = active_senders -- TODO unused by callers?
     listdata.no_active_lists = nal
-    listdata.active_lists = lists
+    listdata.active_lists = lists -- TODO unused by callers?
     listdata.took = r:clock() - now
     listdata.activity = activity
     


Mime
View raw message