Commit graph

7 commits

Author SHA1 Message Date
982a7ffd65 vote_chart: sort parsed votes
The SQL query retrieving the votes is deterministicly sorted, but goes through
a HashMap, for ease of processing and transfer, which does not maintaing order.

Sort the resulting object in the Javascript to keep a consistent order in the graph.
2024-07-24 15:23:52 +01:00
8547312a78 README: Update todo, fix typo 2024-07-23 22:14:18 +01:00
b6f3a49e9f vote: Reset the truth counter to 1 if the key changes
In order to fill the missing truths with 0, a counter follows the next expected
truth number.
If it suddenly drops down, we changed player and it should reset as well.

However, as not all players are voted for on all truths, we might change players
but get a higher truth, which was not taken into account and could miss all
the zeroes at the beggining for this player.

Reset the counter if we change players.
2024-07-23 21:51:59 +01:00
dc00e22dba vote_chart: Remove log of received datasets
Another debug print that I forgot for the release.
2024-07-23 21:51:59 +01:00
a2f70c318f auth: Fix auth token getting leaked to console
Remove a forgotten debug print that leaked auth tokens to the
console to check how they got saved and restored to the database.
2024-07-23 21:51:56 +01:00
67ce54e992 v1.1: Add weekly introductions
- Create a new migration adding a Weeks table, allowing for new weekly introductions
     and paving the way for multiple week handling.
 - Add route to update the weekly introduction
 - Move the week rendering to a specific week file
 - Update the templates to use the week number from the week data
 - Update templates to render and edit weekly introductions
2024-07-23 21:51:51 +01:00
9911895b5b v1.0: First production version
This first version allows login of pre-existing users, creation and update of truths
by admins, vote on the truths by users, their display as well as a simple graph
for the vote results.
Everything persisting in a SQLite database.
2024-07-23 21:51:42 +01:00