Fix DivingLog's O2 import
Make sure the Gas setup contains O2 value when trying to import that. In latest log sample the Gas seems to contain the decompression algorithm used. And as this value was grabbed after O2, we ended up with empty O2. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
360cd85445
commit
f9988f0aea
@ -108,7 +108,7 @@
|
|||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="Gas != ''">
|
<xsl:if test="Gas != '' and substring-after(substring-before(Gas, ')'), 'O2=') != ''">
|
||||||
<xsl:attribute name="o2">
|
<xsl:attribute name="o2">
|
||||||
<xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/>
|
<xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user