X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Fbriskin5%2Fstat-day.php;h=caf3e0ab1a72949ed7b5e1eb93de013c8d7cef07;hb=76e60a0d70700e42468b35921854fecc929254c5;hp=71e8fc8eaa24400f356ddcfabd6f559f5182b948;hpb=6f7adfc43f2ce4ad8dcf616a58a8edaf3d6c5c42;p=brisk.git diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php index 71e8fc8..caf3e0a 100644 --- a/web/briskin5/stat-day.php +++ b/web/briskin5/stat-day.php @@ -238,6 +238,7 @@ function main_pgsql($from, $to) $ret = FALSE; $fpexp = FALSE; + // log_crit("stat-day: BEGIN"); do { if (($fpexp = @fopen(LEGAL_PATH."/explain.log", 'w')) == FALSE) { log_crit("stat-day: open explain failed"); @@ -267,6 +268,7 @@ function main_pgsql($from, $to) printf("Number of tournaments: %d\n", $trn_n); for ($t = 0 ; $t < $trn_n ; $t++) { + // log_crit("stat-day: LOOP t"); $trn_obj = pg_fetch_object($trn_pg, $t); $tmt_sql = sprintf("SELECT m.code AS code, m.mazzo_next as minus_one_is_old FROM %sbin5_matches AS m, %sbin5_games AS g, %sbin5_tournaments as t WHERE t.code = m.tcode AND m.code = g.mcode AND t.code = %d AND g.tstamp >= '%s' AND g.tstamp < '%s' GROUP BY m.code, minus_one_is_old ORDER BY m.code, minus_one_is_old DESC;", @@ -294,11 +296,12 @@ function main_pgsql($from, $to) fprintf($fpexp, "