lib/papercall/analysis.rb in papercall-0.13.0 vs lib/papercall/analysis.rb in papercall-0.14.0
- old
+ new
@@ -26,13 +26,13 @@
@analysis['reviewers'][rating["user"]["name"]] = [{:id => rating["submission_id"]}]
else
@analysis['reviewers'][rating['user']['name']] << {:id => rating["submission_id"]}
end
end
- @analysis['talksWithoutReviews'] << {:id => submission["id"]} if submission["ratings"].empty?
- @analysis['talksWithFourOrMoreReviews'] << {:id => submission["id"]} if submission["ratings"].size >= 4
- @analysis['talksWithLessThanThreeReviews'] << {:id => submission["id"]} if submission["ratings"].size < 3
- @analysis['talksWithoutFeedback'] << {:id => submission["id"]} if submission["feedback"].empty?
+ @analysis['talksWithoutReviews'] << {:id => submission["id"], :submission => submission} if submission["ratings"].empty?
+ @analysis['talksWithFourOrMoreReviews'] << {:id => submission["id"], :submission => submission} if submission["ratings"].size >= 4
+ @analysis['talksWithLessThanThreeReviews'] << {:id => submission["id"], :submission => submission} if submission["ratings"].size < 3
+ @analysis['talksWithoutFeedback'] << {:id => submission["id"], :submission => submission} if submission["feedback"].empty?
@analysis['highlyRated'] << {:id => submission["id"], :submission => submission} if highlyRated? submission
@analysis['lowRated'] << {:id => submission["id"], :submission => submission} if lowRated? submission
@analysis['maybe'] << {:id => submission["id"], :submission => submission} if maybe? submission
@analysis['accepted'] << {:id => submission["id"], :submission => submission} if accepted? submission
@analysis['waitlist'] << {:id => submission["id"], :submission => submission} if waitlisted? submission