aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-25html-encode the link when saving GPX filesDaniel Schadt
This fixes links that contain ampersands by encoding them as &. It is a quick workaround, not a proper fix, but at least it makes BRouter exports working.
2023-05-25move "sort" button on home page upDaniel Schadt
This looks better than having the header line and the sort button below each other.
2023-05-25make Fietsboek text a link to home pageDaniel Schadt
2023-05-25fix script inclusionDaniel Schadt
For some reason we forgot the end tag there, which broke the inclusion of the next script, which then broke our custom layers (and the tileproxy!). Maybe we should also add some tests for the proxy 😏
2023-05-22make tokens expire after 24 hoursDaniel Schadt
2023-05-21sort images by their original file nameDaniel Schadt
This is better than the "random" sort we get otherwise, but maybe one day we can allow the user to re-arrange the images and save the sorting in the database. But this is rather low-priority, this way at least the images are shown in the correct order if they are named systematically.
2023-05-18usertile: return empty tile instead of 404Daniel Schadt
2023-05-17add cache header to user tilesDaniel Schadt
2023-05-15also add German translation for elevation-jumperDaniel Schadt
2023-05-15add translations for fix-elevation-jumpsDaniel Schadt
2023-05-15Merge branch 'elevation-jumper'Daniel Schadt
2023-05-13add docs for fix elevation jump transformerDaniel Schadt
2023-05-13add a test for the new elevation jump transformerDaniel Schadt
2023-05-10Merge branch 'browse-sorting'Daniel Schadt
2023-05-09add translations for new browse sortDaniel Schadt
2023-05-09implement sorting for the browse pageDaniel Schadt
2023-05-09properly type hint browse.pyDaniel Schadt
This is in preparation of adding the sorting feature.
2023-05-08fix whitespaceDaniel Schadt
2023-05-08add a button to change the sorting on home pageDaniel Schadt
Currently it is realized via a small cookie that is set, which might not be optimal. It's also not too bad though and works just well. And I'm not sure how a better alternative would look like.
2023-05-08implement "fix elevation jumps" transformerDaniel Schadt
2023-05-08move FixNullElevation to separate fileDaniel Schadt
2023-04-26allow number of hittekaart threads to be limitedDaniel Schadt
2023-04-24bump version to 0.7.0v0.7.0Daniel Schadt
2023-04-23show upload time in user's local tiemzoneDaniel Schadt
2023-04-23fietscron: don't run both queuesDaniel Schadt
This has always been intended, but we forgot to set the had_hq_item flag.
2023-04-23update dependenciesDaniel Schadt
2023-04-23update CHANGELOGDaniel Schadt
2023-04-23add translations for remove-breaks transformerDaniel Schadt
2023-04-23Merge branch 'remove-breaks'Daniel Schadt
2023-04-21docs: add remove breaks documentationDaniel Schadt
2023-04-20update installation docsDaniel Schadt
2023-04-20add unfinished uploads to home pageDaniel Schadt
2023-04-19implement first "break removal" transformerDaniel Schadt
2023-04-17use gpx.walk() instead of manually implementing itDaniel Schadt
2023-04-14CI: install Rust on pypy imageDaniel Schadt
2023-04-13update changelogDaniel Schadt
2023-04-13replace bleach with nh3Daniel Schadt
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 <script> tags are completely gone.
2023-04-13Merge branch 'profiles'Daniel Schadt
2023-04-04install driver for Postgres and MySQL on dockerDaniel Schadt
Considering this is the example/"official" image, it makes sense to support the big (open source) databases PostgreSQL and MySQL/MariaDB out of the box.
2023-04-03add a fietsctl hittekaart --delete optionDaniel Schadt
2023-04-03doc: document hittekaart configuration optionsDaniel Schadt
2023-04-03fietscron: add queue priority for hittekaart logDaniel Schadt
2023-04-03hittekaart: no error if no input files are passedDaniel Schadt
2023-04-03add translations for profile pageDaniel Schadt
I'm not too happy with the longest/shortest time/duration words (neither in English nor in German), but those will do for now until we can think of better ones.
2023-04-01remove import across toplevelDaniel Schadt
Python seems to do fine, but pylint complains (probably rightfully, since the tests do not represent packages). We lose type hinting for the playwright_helper, but there's probably a better way to do it in the future.
2023-04-01fix isolated running of unit testsDaniel Schadt
They caused issues because they might not have created the database tables or the data directory. Since the cleanup job runs globally after every test, it should take that into consideration and not error out.
2023-04-01add some very basic tests for profilesDaniel Schadt
I'd like to have more, but this is a start (and already caught some errors, see the last two commits).
2023-04-01fix division by zero for profile pageDaniel Schadt
Now that round_to_seconds can actually return 0, we need to catch this case.
2023-04-01fix round_to_multiple for second-level accuracyDaniel Schadt
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).
2023-04-01actually check permission for user profilesDaniel Schadt
Otherwise everyone can just access any profile.