From 75a6eaa90f526666b2231a01bbb5be58254e814b Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 16 Apr 2019 12:22:38 +0200 Subject: Include project lead election date in projects.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- projects.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'projects.rb') diff --git a/projects.rb b/projects.rb index e5a9eaf..2d9565a 100755 --- a/projects.rb +++ b/projects.rb @@ -27,6 +27,7 @@ projects_q = Query.new do pattern [:proj_uri, GentooWiki::PROP_PROPAGATES_MEMBERS, :propagates_members], optional: true pattern [:proj_uri, GentooWiki::PROP_IRC, :proj_irc], optional: true + pattern [:proj_uri, GentooWiki::PROP_LEAD_ELECTION_DATE, :proj_lead_election_date], optional: true end def query_members(project_uri) @@ -66,6 +67,7 @@ projects_q.execute(graph) do |result| project['irc'] = result[:proj_irc].to_s project['href'] = URI.decode(https(result[:proj_href].to_s).gsub('-', '%')) project['propagates_members'] = result[:propagates_members].to_s == 'true' + project['lead_election_date'] = result[:proj_lead_election_date].to_s parent_id = label_to_id result[:parent_title].to_s project['parent'] = parent_id unless parent_id == 'Gentoo' -- cgit v1.2.3-65-gdbad