]> git.sesse.net Git - ccbs/commitdiff
Combined patch (sorry): fix URL, fix points awarded.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 24 Apr 2005 20:15:15 +0000 (20:15 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 24 Apr 2005 20:15:15 +0000 (20:15 +0000)
html/ccbs.pm
html/do-finish-tournament.pl

index f5deadab8e9c0a28ad1548eb07d04457a86f0c42..d4bc6bc4518d46ab7224ad05e2120ff4b265efc7 100755 (executable)
@@ -25,7 +25,7 @@ sub print_see_other {
        my $location = shift;
 
        print CGI::header(-status=>'303 See other',
-                         -location=>'http://192.168.1.200/' . $location,
+                         -location=>'http://ccbs.sesse.net/' . $location,
                          -type=>'text/html; charset=utf-8');
 }
 
index bea25b424f544cb13436759832f6c94e1a86da26..bf53b91844dddeff86a8da74243ce84512584b72 100755 (executable)
@@ -35,13 +35,13 @@ $dbh->disconnect;
 
 ccbs::print_see_other('show-tournament.pl?id=' . $tournament);
 
-# gives the usual 100, 91, 83, 76. 65, 61, ... series
+# gives the usual 100, 90, 81, 73, 60, 55, ... series
 sub points_for_place {
        my $n = shift;
        if ($n <= 10) {
-               return 110 - (21/2) * $n + (1/2) * $n * $n;
-       } elsif ($n <= 65) {
-               return 65 - $n;
+               return 111 - (23/2) * $n + (1/2) * $n * $n;
+       } elsif ($n <= 56) {
+               return 56 - $n;
        } else {
                return 0;
        }