Created
March 30, 2011 20:37
Revisions
-
zooniverse created this gist
Mar 30, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ def progress prog = self.assets.collect { |a| a.ave_pos if !a.ave_pos.empty? }.compact! # only show the last 10 positions limited_progress = prog.reverse.slice(0,10) if prog.empty? return [] else return limited_progress end end