Return-Path: X-Original-To: apmail-community-commits-archive@minotaur.apache.org Delivered-To: apmail-community-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B813418390 for ; Mon, 8 Feb 2016 11:41:37 +0000 (UTC) Received: (qmail 83510 invoked by uid 500); 8 Feb 2016 11:41:37 -0000 Delivered-To: apmail-community-commits-archive@community.apache.org Received: (qmail 83483 invoked by uid 500); 8 Feb 2016 11:41:37 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 83473 invoked by uid 99); 8 Feb 2016 11:41:37 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2016 11:41:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 06BC91A066F for ; Mon, 8 Feb 2016 11:41:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.571 X-Spam-Level: X-Spam-Status: No, score=0.571 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.429] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PSvyJ0ne2Kl9 for ; Mon, 8 Feb 2016 11:41:36 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 556CB439BF for ; Mon, 8 Feb 2016 11:41:36 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D19E5E0361 for ; Mon, 8 Feb 2016 11:41:35 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id D08253A01D9 for ; Mon, 8 Feb 2016 11:41:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1729141 - /comdev/helpwanted.apache.org/site/listitems.lua Date: Mon, 08 Feb 2016 11:41:35 -0000 To: commits@community.apache.org From: humbedooh@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160208114135.D08253A01D9@svn01-us-west.apache.org> Author: humbedooh Date: Mon Feb 8 11:41:35 2016 New Revision: 1729141 URL: http://svn.apache.org/viewvc?rev=1729141&view=rev Log: hide done tasks unless asked for Modified: comdev/helpwanted.apache.org/site/listitems.lua Modified: comdev/helpwanted.apache.org/site/listitems.lua URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/listitems.lua?rev=1729141&r1=1729140&r2=1729141&view=diff ============================================================================== --- comdev/helpwanted.apache.org/site/listitems.lua (original) +++ comdev/helpwanted.apache.org/site/listitems.lua Mon Feb 8 11:41:35 2016 @@ -78,6 +78,15 @@ function handle(r) local doc = elastic.find(dsl, 200, 'item', 'created') if doc and #doc > 0 then + if not get.all then + local vdoc = {} + for k, v in pairs(doc) do + if not v.closed then + table.insert(vdoc, v) + end + end + doc = vdoc + end r:puts(JSON.encode(doc)) else r:puts[[{}]]