liquid_feedback_core

changeset 216:f6ec320e19d4

Bugfix: Set "eligible" to FALSE for all non-eligible admitted initiatives
author jbe
date Wed Feb 22 20:45:01 2012 +0100 (2012-02-22)
parents 49d470425fc5
children 9474e2038590
files core.sql
line diff
     1.1 --- a/core.sql	Fri Feb 17 18:27:38 2012 +0100
     1.2 +++ b/core.sql	Wed Feb 22 20:45:01 2012 +0100
     1.3 @@ -3700,6 +3700,7 @@
     1.4            "worse_than_status_quo"  = "rank_ary"["i"] > "rank_ary"["dimension_v"],
     1.5            "multistage_majority"    = "rank_ary"["i"] >= "rank_ary"["dimension_v"],
     1.6            "reverse_beat_path"      = "matrix"["dimension_v"]["i"] >= 0,
     1.7 +          "eligible"               = FALSE,
     1.8            "winner"                 = FALSE
     1.9            WHERE "id" = "initiative_id_v";
    1.10          "i" := "i" + 1;
    1.11 @@ -3743,7 +3744,7 @@
    1.12          EXIT WHEN NOT FOUND;
    1.13        END LOOP;
    1.14        -- set "multistage_majority" for remaining matching initiatives:
    1.15 -       UPDATE "initiative" SET "multistage_majority" = TRUE
    1.16 +      UPDATE "initiative" SET "multistage_majority" = TRUE
    1.17          FROM (
    1.18            SELECT "losing_initiative"."id" AS "initiative_id"
    1.19            FROM "initiative" "losing_initiative"

Impressum / About Us