liquid_feedback_core
diff core.sql @ 250:7b8966b801e5
Allow "calculate_ranks" to work properly, even if there was a previous counting of votes (due to manual reset of issue state)
| author | jbe |
|---|---|
| date | Tue May 15 12:46:30 2012 +0200 (2012-05-15) |
| parents | 05eb08f56f09 |
| children | 389200fd973d |
line diff
1.1 --- a/core.sql Mon May 14 14:36:54 2012 +0200 1.2 +++ b/core.sql Tue May 15 12:46:30 2012 +0200 1.3 @@ -3921,7 +3921,8 @@ 1.4 "multistage_majority" = "rank_ary"["i"] >= "rank_ary"["dimension_v"], 1.5 "reverse_beat_path" = "matrix"["dimension_v"]["i"] >= 0, 1.6 "eligible" = FALSE, 1.7 - "winner" = FALSE 1.8 + "winner" = FALSE, 1.9 + "rank" = NULL -- NOTE: in cases of manual reset of issue state 1.10 WHERE "id" = "initiative_id_v"; 1.11 "i" := "i" + 1; 1.12 END LOOP;