summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2013-09-23 19:22:01 +0200
committeremkael <emkael@tlen.pl>2013-09-23 19:22:01 +0200
commit02491e2e5171a56f8c7920b23e3638b99f44cce8 (patch)
treee34d8f3a37e4b956467f076ac385684bcb596376
parent12810fdc37e0b5dfbcba692dfbd651cf488d02cd (diff)
* renderowanie poprawki za podwiązania (bug mustache'a)
-rw-r--r--bin/lib/OsikaEvaluator.php4
-rw-r--r--web/index.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/lib/OsikaEvaluator.php b/bin/lib/OsikaEvaluator.php
index bfb7023..a53ff7f 100644
--- a/bin/lib/OsikaEvaluator.php
+++ b/bin/lib/OsikaEvaluator.php
@@ -241,13 +241,13 @@ class OsikaEvaluator {
$suitChar = self::$_suits[$ind];
$result['lh'][$suitChar] = $this->_honorTricks($suit);
$result['lh_plus'][$suitChar] = $this->_honorTrickCorrections($suit);
- $result['lh_10'][$suitChar] = $this->_honorTrickSupportCorrections($suit);
+ $result['lh_pod'][$suitChar] = $this->_honorTrickSupportCorrections($suit);
$result['lh_short'][$suitChar] = $this->_honorTrickShortCorrections($suit);
$result['lu'][$suitChar] = $this->_distributionTricks($suit);
}
$result['lh']['total'] = array_sum($result['lh']);
$result['lh_plus']['total'] = array_sum($result['lh_plus']);
- $result['lh_10']['total'] = array_sum($result['lh_10']);
+ $result['lh_pod']['total'] = array_sum($result['lh_10']);
$result['lh_short']['total'] = array_sum($result['lh_short']);
$result['lu']['total'] = array_sum($result['lu']);
diff --git a/web/index.html b/web/index.html
index 7fbc7c5..afd40e7 100644
--- a/web/index.html
+++ b/web/index.html
@@ -44,7 +44,7 @@
<tr><th></th><th class="spades">&spades;</th><th class="hearts">&hearts;</th><th class="diamonds">&diams;</th><th class="clubs">&clubs;</th><th>&Sigma;</th></tr>
<tr><td>Honory (lewy)</td><td>{{lh.s}}</td><td>{{lh.h}}</td><td>{{lh.d}}</td><td>{{lh.c}}</td><td class="subtotal">{{lh.total}}</td></tr>
<tr><td>Poprawka za zgrupowania honorów</td><td>{{lh_plus.s}}</td><td>{{lh_plus.h}}</td><td>{{lh_plus.d}}</td><td>{{lh_plus.c}}</td><td class="subtotal">{{lh_plus.total}}</td></tr>
- <tr><td>Poprawka za podwiązania honorów</td><td>{{lh_10.s}}</td><td>{{lh_10.h}}</td><td>{{lh_10.d}}</td><td>{{lh_10.c}}</td><td class="subtotal">{{lh_10.total}}</td></tr>
+ <tr><td>Poprawka za podwiązania honorów</td><td>{{lh_pod.s}}</td><td>{{lh_pod.h}}</td><td>{{lh_pod.d}}</td><td>{{lh_pod.c}}</td><td class="subtotal">{{lh_pod.total}}</td></tr>
<tr><td>Poprawka za krótkie honory</td><td>{{lh_short.s}}</td><td>{{lh_short.h}}</td><td>{{lh_short.d}}</td><td>{{lh_short.c}}</td><td class="subtotal">{{lh_short.total}}</td></tr>
<tr class="subtotal"><td>Lewy honorowe</td><td>{{lh_subtotal.s}}</td><td>{{lh_subtotal.h}}</td><td>{{lh_subtotal.d}}</td><td>{{lh_subtotal.c}}</td><td>{{lh_subtotal.total}}</td></tr>
<tr><td>Lewy układowe</td><td>{{lu.s}}</td><td>{{lu.h}}</td><td>{{lu.d}}</td><td>{{lu.c}}</td><td class="subtotal">{{lu.total}}</td></tr>