Add importing of working pressure from divelogs.de
We were missing the import of cylinders' working pressure when syncing with divelogs.de. This piece of information is required for proper unit conversions when user uses imperial units for displaying the dive information. (Both Subsurface and divelogs.de use metric internally, or at least the export from divelogs.de is in metric.) See #907 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6427564d33
commit
f38f8ce4c9
@ -114,6 +114,11 @@
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</CYLINDERENDPRESSURE>
|
||||
<xsl:if test="cylinder[position() = $cylinder]/@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:if>
|
||||
|
||||
<ADDITIONALTANKS>
|
||||
<xsl:for-each select="cylinder[position() != $cylinder]">
|
||||
@ -159,6 +164,11 @@
|
||||
<CYLINDERENDPRESSURE>
|
||||
<xsl:value-of select="@end"/>
|
||||
</CYLINDERENDPRESSURE>
|
||||
<xsl:if test="@workpressure != ''">
|
||||
<WORKINGPRESSURE>
|
||||
<xsl:value-of select="substring-before(@workpressure, ' ')"/>
|
||||
</WORKINGPRESSURE>
|
||||
</xsl:if>
|
||||
<O2PCT>
|
||||
<xsl:value-of select="substring-before(@o2, '%')"/>
|
||||
</O2PCT>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user