vote: Change graph display condition, don't fetch for admin

Now, the graph will only show when everyone has voted and the week is no longer
the last one active.
This is to minimize information gathering by looking during voting.

Don't fetch the vote data for the admin : it is not used, so no need to
query the database.

Update README with new TODOs and clean up main includes a bit.
This commit is contained in:
trotFunky 2024-07-26 00:45:53 +01:00
parent f41f5142c9
commit 635716c04b
4 changed files with 15 additions and 5 deletions

View file

@ -10,12 +10,14 @@ A list of things that could be implemented/added to the application, some of the
- [ ] Being able to change from one week to the next
- [ ] Create new weeks for the admin
- [ ] Proper week redirection
- [ ] Correctly handle non-existing week number
- [x] Add introduction to the weekly truths
- [ ] Bundle static assets in the binary
- [ ] Move the database queries to their own functions
- [ ] Cache those results
- [ ] Centralize Markdown parsing ?
- [ ] Use fairings for the different elements ?
- [ ] Use guards for User calls ?
# Dependencies