jovandeginste / workout-tracker

A workout tracking web application for personal use (or family, friends), geared towards running and other GPX-based activities
Other
957 stars 30 forks source link

fix: add function to get filename of workout #233

Closed jovandeginste closed 3 months ago

jovandeginste commented 3 months ago

There was a key that stored the filename of a workout, which was no longer used and therefore removed in the previous PR (#232). This broke the code for viewing and editing a workout, which still referenced the old key.

We fix this by adding a function, that dynamically generates a new filename if there was none, and checking whether we have data in the views.