aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2023-04-01fix copy/paste errorDaniel Schadt
We copied the factory method from Track, but forgot to change some of the words. Now the code fits better with what the function is doing. As a bonus, pylint no longer complains about a duplicate method.
2023-03-31hide ugliness of tile url functionDaniel Schadt
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.
2023-03-31add a link to the profile to the user menuDaniel Schadt
2023-03-31suppress hittekaart standard outputDaniel Schadt
Otherwise it'll show progress bars.
2023-03-31insert user into hittekaart queue on track uploadsDaniel Schadt
2023-03-31make fietscron call hittekaartDaniel Schadt
2023-03-31stop sqlite3 DB creation if it doesnt existDaniel Schadt
This would otherwise happen if e.g. the user has the page open, the SQLite file is deleted, the user then activates the overlay layer, and the sqlite3.connect() creates the database.
2023-03-30allow log level to be easily set in containerDaniel Schadt
2023-03-30check if data version matches at startupDaniel Schadt
This might be helpful to see some errors early.
2023-03-30type hint the updaterDaniel Schadt
2023-03-29fix lintDaniel Schadt
2023-03-29profile: show longest duration & duration tracksDaniel Schadt
2023-03-29fix longest/shortest confusionDaniel Schadt
2023-03-28remove -c from docker documentationDaniel Schadt
With fietsboek.ini, those commands become very ergonomic to use (as long as the user has the configuration at the default place)
2023-03-28cli: have a hint if fietsboek.ini is not foundDaniel Schadt