heikkilevanto / beertracker

Simple script to track the beers I drink
GNU General Public License v2.0
2 stars 1 forks source link

sync graph and list #257

Open heikkilevanto opened 7 months ago

heikkilevanto commented 7 months ago

When clicking on the graph-moving links (month, year, earlier/later), adjust the long list underneath to show them all.

Maybe not so simple to do, but at least show the year in question.

heikkilevanto commented 6 months ago

The way to do this would be to change the graph offsets from ?op=Graph-180-120 to separate parameters with full dates like ?op=Graph&start=2023-01-01&end=2023-12-31. Then use those start/end values on all pages. (Maybe skip anything outside them while reading the file?)