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 2016/04/07 23:22:15 UTC
[whimsy] 02/02: no need to rescan if current agenda changes
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git
commit 839df5bc02adfbd2e4097175727dc08100c6c48f
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Apr 7 17:21:56 2016 -0400
no need to rescan if current agenda changes
---
www/board/agenda/models/comments.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/board/agenda/models/comments.rb b/www/board/agenda/models/comments.rb
index decd0b6..eabfd4e 100644
--- a/www/board/agenda/models/comments.rb
+++ b/www/board/agenda/models/comments.rb
@@ -16,13 +16,13 @@ class HistoricalComments
sort_by {|file| File.basename(file)}.
map {|file| file.untaint}
+ # drop latest agenda
+ agendas.pop
+
# return previous results unless an agenda has been updated
mtime = agendas.map {|file| File.mtime(file)}.max
return @@comments if mtime == @@mtime
- # drop latest agenda
- agendas.pop
-
# initialize comments to empty hash of hashes
comments = Hash.new {|hash, key| hash[key] = {}}
--
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.