You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/06 19:06:45 UTC
[whimsy] 02/02: sum up split discussion item text lengths
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 359e201bdf5fbf9f00dafd33ef6e297dd8586412
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Apr 6 15:06:21 2018 -0400
sum up split discussion item text lengths
---
lib/whimsy/asf/agenda/summary.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/agenda/summary.rb b/lib/whimsy/asf/agenda/summary.rb
index 5b1acfd..5429e75 100644
--- a/lib/whimsy/asf/agenda/summary.rb
+++ b/lib/whimsy/asf/agenda/summary.rb
@@ -122,7 +122,9 @@ class ASF::Board::Agenda
# Summarize across this report
summary[STATS_KEY] = {}
summary[STATS_KEY]['specialorders'] = agenda.select{ |v| /\A7/ =~ v[ATTACH_KEY] }.length
- summary[STATS_KEY]['discusstextlen'] = agenda.select{ |v| v[INDEX_KEY] == "Discussion Items" }[0]['text'].length
+ summary[STATS_KEY]['discusstextlen'] = agenda.select{ |v|
+ v[INDEX_KEY] == "Discussion Items" || /\A8[A-Z]/ =~ v[ATTACH_KEY]
+ }.map {|v| v['text'].length}.sum
totapprovals = 0
totcommentlen = 0
totreportlen = 0
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.