 			|> Repo.all
 			|> Repo.preload([:approval_poll])
 			|> Enum.filter(fn(reference) ->
-				approval_result = Result.calculate(reference.approval_poll, Ecto.DateTime.utc(), TrustMetric.get(trust_metric_url), vote_weight_halving_days)["true"]
-				is_approved = approval_result["mean"] > 0.5 and approval_result["total"] >= 1 and approval_result["count"] >= 1
+				approval_result = Result.calculate(reference.approval_poll, datetime, TrustMetric.get(trust_metric_url), vote_weight_halving_days)["true"]
+				is_approved = approval_result["mean"] > 0.5 and approval_result["total"] >= 1
 				is_approved
 			end)
 

		end
	end

	def show(conn, %{"poll_id" => poll_id, "id" => reference_id}, _, _) do
		poll = Repo.get(Poll, poll_id)
		reference = Repo.get(Reference, reference_id)
		if poll do

defmodule Democracy.ReferenceController do
	use Democracy.Web, :controller

	alias Democracy.Reference
	alias Democracy.Poll
