Skip to content

Commit

Permalink
#138 convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 26, 2024
1 parent b1cf075 commit d275031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/pages/test_awards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ def test_in_week

def test_award
{
42 => [ 'darkgreen', '+42' ],
0 => [ 'lightgray', '—' ],
-7 => [ 'darkred', '-7' ]
42 => ['darkgreen', '+42'],
0 => ['lightgray', '—'],
-7 => ['darkred', '-7']
}.each do |k, v|
xml = xslt(
"<xsl:copy-of select='z:award(#{k})'/>",
Expand Down
4 changes: 2 additions & 2 deletions xsl/awards.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ SOFTWARE.
</td>
<xsl:for-each select="1 to $weeks">
<xsl:variable name="week" select="."/>
<xsl:copy-of select="z:td-award(sum($facts[who_name=$name and z:in-week(when, $week)]/award))"/>
<xsl:copy-of select="z:td-award(xs:integer(sum($facts[who_name=$name and z:in-week(when, $week)]/award)))"/>
</xsl:for-each>
<xsl:copy-of select="z:td-award(sum($facts[who_name=$name]/award))"/>
<xsl:copy-of select="z:td-award(xs:integer(sum($facts[who_name=$name]/award)))"/>
<xsl:if test="$fb/f[what='reconciliation']">
<xsl:copy-of select="z:payables($name)"/>
</xsl:if>
Expand Down

0 comments on commit d275031

Please sign in to comment.