# HG changeset patch # User jbe # Date 1329939901 -3600 # Node ID f6ec320e19d4c599e64bc1a05de5fc626e917b16 # Parent 49d470425fc5753907b97a386c16b2b1cdc61673 Bugfix: Set "eligible" to FALSE for all non-eligible admitted initiatives diff -r 49d470425fc5 -r f6ec320e19d4 core.sql --- a/core.sql Fri Feb 17 18:27:38 2012 +0100 +++ b/core.sql Wed Feb 22 20:45:01 2012 +0100 @@ -3700,6 +3700,7 @@ "worse_than_status_quo" = "rank_ary"["i"] > "rank_ary"["dimension_v"], "multistage_majority" = "rank_ary"["i"] >= "rank_ary"["dimension_v"], "reverse_beat_path" = "matrix"["dimension_v"]["i"] >= 0, + "eligible" = FALSE, "winner" = FALSE WHERE "id" = "initiative_id_v"; "i" := "i" + 1; @@ -3743,7 +3744,7 @@ EXIT WHEN NOT FOUND; END LOOP; -- set "multistage_majority" for remaining matching initiatives: - UPDATE "initiative" SET "multistage_majority" = TRUE + UPDATE "initiative" SET "multistage_majority" = TRUE FROM ( SELECT "losing_initiative"."id" AS "initiative_id" FROM "initiative" "losing_initiative"