You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/03/18 14:35:50 UTC
svn commit: r1908493 - in /comdev/helpwanted.apache.org/site: admin/close.lua admin/newtask.lua lib/elastic.lua listitems.lua tasks.lua
Author: sebb
Date: Sat Mar 18 14:35:49 2023
New Revision: 1908493
URL: http://svn.apache.org/viewvc?rev=1908493&view=rev
Log:
Remove unused cruft
Modified:
comdev/helpwanted.apache.org/site/admin/close.lua
comdev/helpwanted.apache.org/site/admin/newtask.lua
comdev/helpwanted.apache.org/site/lib/elastic.lua
comdev/helpwanted.apache.org/site/listitems.lua
comdev/helpwanted.apache.org/site/tasks.lua
Modified: comdev/helpwanted.apache.org/site/admin/close.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/close.lua?rev=1908493&r1=1908492&r2=1908493&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/close.lua (original)
+++ comdev/helpwanted.apache.org/site/admin/close.lua Sat Mar 18 14:35:49 2023
@@ -21,9 +21,6 @@ local elastic = require 'elastic'
function handle(r)
r.content_type = "text/html"
- local t = {}
- local now = r:clock()
- local tnow = now
local get = r:parseargs()
local id = get.id
local doc = elastic.get('item', id)
Modified: comdev/helpwanted.apache.org/site/admin/newtask.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/newtask.lua?rev=1908493&r1=1908492&r2=1908493&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/newtask.lua (original)
+++ comdev/helpwanted.apache.org/site/admin/newtask.lua Sat Mar 18 14:35:49 2023
@@ -21,9 +21,6 @@ local elastic = require 'elastic'
function handle(r)
r.content_type = "text/html"
- local t = {}
- local now = r:clock()
- local tnow = now
local get = r:parseargs()
local post, postm = r:parsebody()
Modified: comdev/helpwanted.apache.org/site/lib/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/lib/elastic.lua?rev=1908493&r1=1908492&r2=1908493&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/lib/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/lib/elastic.lua Sat Mar 18 14:35:49 2023
@@ -98,7 +98,6 @@ end
-- Put a new document somewhere
local function index(r, id, ty, body)
- local js = JSON.encode(query)
if not id then
id = r:sha1(ty .. (math.random(1,99999999)*os.time()) .. ':' .. r:clock())
end
Modified: comdev/helpwanted.apache.org/site/listitems.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/listitems.lua?rev=1908493&r1=1908492&r2=1908493&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/listitems.lua (original)
+++ comdev/helpwanted.apache.org/site/listitems.lua Sat Mar 18 14:35:49 2023
@@ -23,18 +23,9 @@ local elastic = require 'lib/elastic'
function handle(r)
r.content_type = "application/json"
- local t = {}
local now = r:clock()
- local tnow = now
local get = r:parseargs()
local qs = "*"
- local domain = get.domain or ""
- if #domain < 2 then
- domain = "*"
- end
- local dd = 14
- local maxresults = 10000
- local listdata = {}
if get.id then
local doc = nil
Modified: comdev/helpwanted.apache.org/site/tasks.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/tasks.lua?rev=1908493&r1=1908492&r2=1908493&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/tasks.lua (original)
+++ comdev/helpwanted.apache.org/site/tasks.lua Sat Mar 18 14:35:49 2023
@@ -22,18 +22,9 @@ local cache = {}
function handle(r)
r.content_type = "application/json"
- local t = {}
local now = r:clock()
- local tnow = now
local get = r:parseargs()
local qs = "*"
- local domain = get.domain or ""
- if #domain < 2 then
- domain = "*"
- end
- local dd = 14
- local maxresults = 10000
- local listdata = {}
if get.id then
local doc = nil