<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fietsboek/tests/unit, branch v0.11.0</title>
<subtitle>A web-based GPX track tracker</subtitle>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/'/>
<entry>
<title>add tests for prev_next_month</title>
<updated>2024-11-25T20:23:15+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2024-11-25T20:23:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=e82233c57ba2a76dd2fbe10cec8effceac2a3e75'/>
<id>e82233c57ba2a76dd2fbe10cec8effceac2a3e75</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add unit tests for util.human_size</title>
<updated>2023-05-12T21:45:25+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-05-12T21:45:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=dca030a075d2a1b12f8ca902ffb44fa1eeb6b718'/>
<id>dca030a075d2a1b12f8ca902ffb44fa1eeb6b718</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>replace bleach with nh3</title>
<updated>2023-04-13T18:46:04+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-13T18:46:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0'/>
<id>c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0</id>
<content type='text'>
See https://github.com/mozilla/bleach/issues/698

nh3 is a small wrapper around https://crates.io/crates/ammonia - more
Rust code in Fietsboek! \o/

The default seems to be to strip unknown tags instead of replace them
with htmlentities, which is fine. Then the &lt;script&gt; tags are completely
gone.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See https://github.com/mozilla/bleach/issues/698

nh3 is a small wrapper around https://crates.io/crates/ammonia - more
Rust code in Fietsboek! \o/

The default seems to be to strip unknown tags instead of replace them
with htmlentities, which is fine. Then the &lt;script&gt; tags are completely
gone.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix round_to_multiple for second-level accuracy</title>
<updated>2023-04-01T11:05:40+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-01T11:05:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=982d6c8cd5ba6ade04683e5699fc9fc170e4c109'/>
<id>982d6c8cd5ba6ade04683e5699fc9fc170e4c109</id>
<content type='text'>
It was ovious that this is broken when you try to round "0s" to
second-level granularity, and you end up with "1s". The problem comes
from the fact that we use the integer divison when checking whether we
should round up or down, but then also use strict inequality.

To fix this, we now also round down if the second_offset is equal to the
halfway point (which in the case of second-level granularity is 0).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was ovious that this is broken when you try to round "0s" to
second-level granularity, and you end up with "1s". The problem comes
from the fact that we use the integer divison when checking whether we
should round up or down, but then also use strict inequality.

To fix this, we now also round down if the second_offset is equal to the
halfway point (which in the case of second-level granularity is 0).
</pre>
</div>
</content>
</entry>
<entry>
<title>hide ugliness of tile url function</title>
<updated>2023-03-31T21:57:59+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-31T21:57:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=114274f900904070e941c4a544426b5d9d1267d2'/>
<id>114274f900904070e941c4a544426b5d9d1267d2</id>
<content type='text'>
We basically do the same hacky trick in two different places, so maybe
we should put it into a separate function, test it, and if a better
implementation arises, swap it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We basically do the same hacky trick in two different places, so maybe
we should put it into a separate function, test it, and if a better
implementation arises, swap it.
</pre>
</div>
</content>
</entry>
<entry>
<title>add first basic tests for synthetic tracks</title>
<updated>2022-07-24T20:28:38+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-07-24T20:28:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=02676f841c10b20e1a69b6936acb60dfc46da5c4'/>
<id>02676f841c10b20e1a69b6936acb60dfc46da5c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'multi-download'</title>
<updated>2022-07-17T19:01:41+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-07-17T19:01:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=333a06478b40d2e1b0f2243745807c745005233a'/>
<id>333a06478b40d2e1b0f2243745807c745005233a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add tests for archive download</title>
<updated>2022-07-17T18:56:38+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-07-17T18:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=69c9167911a8449fef20951abe924a1c4528545c'/>
<id>69c9167911a8449fef20951abe924a1c4528545c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>remove MyTourbook timezone guessing</title>
<updated>2022-07-16T20:30:47+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-07-16T20:30:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=a07ca7c0b7e567f2647d13f84db6aed201cde56c'/>
<id>a07ca7c0b7e567f2647d13f84db6aed201cde56c</id>
<content type='text'>
It turns out that the mt:TourStartTime is also given in UTC, and
therefore cannot be used to get the timezone offset. The problem was
that my local computer's timezone was the same as the tour timezone, so
by the magic of Python's datetime.datetime.fromtimestamp (and the date
CLI util), I did not notice that the timestamp actually represents UTC.

Sadly, it currently looks like there is no way to extract the time zone
from a MyTourbook export.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out that the mt:TourStartTime is also given in UTC, and
therefore cannot be used to get the timezone offset. The problem was
that my local computer's timezone was the same as the tour timezone, so
by the magic of Python's datetime.datetime.fromtimestamp (and the date
CLI util), I did not notice that the timestamp actually represents UTC.

Sadly, it currently looks like there is no way to extract the time zone
from a MyTourbook export.
</pre>
</div>
</content>
</entry>
<entry>
<title>add tests for util.guess_gpx_timezone</title>
<updated>2022-07-07T20:40:59+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2022-07-07T20:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=264612664a24447c929cfd71659d44dd95a8e3a9'/>
<id>264612664a24447c929cfd71659d44dd95a8e3a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
