Skip to content

Commit

Permalink
#138 stricter types
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 26, 2024
1 parent d275031 commit 6e036f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xsl/awards.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:z="https://www.zerocracy.com" version="2.0" exclude-result-prefixes="xs z">
<xsl:variable name="fb" select="/fb"/>
<xsl:variable name="days" select="z:pmp(/fb, 'hr', 'days_of_running_balance', 28)"/>
<xsl:variable name="days" select="z:pmp(/fb, 'hr', 'days_of_running_balance', '28')"/>
<xsl:variable name="weeks" select="xs:integer(ceiling(xs:float($days) div 7))"/>
<xsl:variable name="since" select="xs:dateTime($today) - xs:dayTimeDuration(concat('P', $days, 'D'))"/>
<xsl:variable name="facts" select="$fb/f[award and xs:dateTime(when) &gt; $since and is_human = 1]"/>
Expand Down
8 changes: 4 additions & 4 deletions xsl/vitals.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SOFTWARE.
<xsl:import href="qo-section.xsl"/>
<xsl:import href="dot.xsl"/>
<xsl:function name="z:index">
<xsl:param name="i"/>
<xsl:param name="i" as="xs:double"/>
<span>
<xsl:attribute name="class">
<xsl:choose>
Expand All @@ -62,9 +62,9 @@ SOFTWARE.
</xsl:function>
<xsl:function name="z:pmp">
<xsl:param name="fb"/>
<xsl:param name="area"/>
<xsl:param name="param"/>
<xsl:param name="default"/>
<xsl:param name="area" as="xs:string"/>
<xsl:param name="param" as="xs:string"/>
<xsl:param name="default" as="xs:string"/>
<xsl:variable name="a" select="$fb/f[what='pmp' and area=$area]"/>
<xsl:choose>
<xsl:when test="$a">
Expand Down

0 comments on commit 6e036f2

Please sign in to comment.