liquid_feedback_core

changeset 625:7f488033d5ee tip

Fixed mistake in last-level tie-breaking
author jbe
date Wed Jan 01 16:49:21 2025 +0100 (3 months ago)
parents 82387194519b
children
files LICENSE core.sql
line diff
     1.1 --- a/LICENSE	Fri Feb 05 13:50:45 2021 +0100
     1.2 +++ b/LICENSE	Wed Jan 01 16:49:21 2025 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -Copyright (c) 2009-2021 Public Software Group e. V., Berlin, Germany
     1.5 +Copyright (c) 2009-2025 Public Software Group e. V., Berlin, Germany
     1.6  
     1.7  Permission is hereby granted, free of charge, to any person obtaining a
     1.8  copy of this software and associated documentation files (the "Software"),
     2.1 --- a/core.sql	Fri Feb 05 13:50:45 2021 +0100
     2.2 +++ b/core.sql	Wed Jan 01 16:49:21 2025 +0100
     2.3 @@ -5851,11 +5851,11 @@
     2.4            CASE WHEN "initiative1_ord_p" < "initiative2_ord_p" THEN
     2.5              1::INT8 << 62
     2.6            ELSE 0 END
     2.7 -          +
     2.8 +          -
     2.9            CASE WHEN "tie_breaking_p" = 'variant2'::"tie_breaking" THEN
    2.10 -            ("initiative2_ord_p"::INT8 << 31) - "initiative1_ord_p"::INT8
    2.11 +            ("initiative2_ord_p"::INT8 << 31) + "initiative1_ord_p"::INT8
    2.12            ELSE
    2.13 -            "initiative2_ord_p"::INT8 - ("initiative1_ord_p"::INT8 << 31)
    2.14 +            ("initiative1_ord_p"::INT8 << 31) + "initiative2_ord_p"::INT8
    2.15            END
    2.16          END
    2.17        );

Impressum / About Us