mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
17526ded58
It makes no sense to keep the device nodes if all the other data is cleared. Let's do this automatically and not explicitly. This ensures that the function is also called on mobile. Currently it was only called on desktop. Weirdly, the parser-tests were expecting that the device nodes were not reset by clear_dive_file_data() and therefore divecomputers were accumulating in the test results. Thus, the additional computers had to be removed from the expected test results. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
28 lines
917 B
XML
28 lines
917 B
XML
<divelog program='subsurface' version='3'>
|
|
<settings>
|
|
</settings>
|
|
<divesites>
|
|
</divesites>
|
|
<dives>
|
|
<dive number='1' date='2018-01-01' time='10:10:00'>
|
|
<divecomputer model='Imported from CSV' deviceid='ffffffff'>
|
|
<temperature air='27.0 C' water='25.0 C' />
|
|
</divecomputer>
|
|
</dive>
|
|
<dive number='2' date='2018-01-02' time='10:10:00' duration='60:00 min'>
|
|
<divecomputer model='Imported from CSV' deviceid='ffffffff'>
|
|
<depth max='10.0 m' mean='9.508 m' />
|
|
<temperature air='27.0 C' water='25.0 C' />
|
|
<sample time='0:00 min' depth='1.0 m' />
|
|
<sample time='1:00 min' depth='10.0 m' />
|
|
<sample time='55:00 min' depth='10.0 m' />
|
|
<sample time='60:00 min' depth='0.0 m' />
|
|
</divecomputer>
|
|
</dive>
|
|
<dive number='3' date='2018-01-03' time='10:10:00'>
|
|
<divecomputer model='Imported from CSV' deviceid='ffffffff'>
|
|
<temperature air='28.0 C' water='26.0 C' />
|
|
</divecomputer>
|
|
</dive>
|
|
</dives>
|
|
</divelog>
|