Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more than one weight entry per day #1814

Open
rolandgeider opened this issue Nov 10, 2024 · 3 comments
Open

Allow more than one weight entry per day #1814

rolandgeider opened this issue Nov 10, 2024 · 3 comments

Comments

@rolandgeider
Copy link
Member

rolandgeider commented Nov 10, 2024

At the moment, it's only possible to add one weight or measurement entry per day. While it doesn't make much sense to log this several times per day, it also doesn't hurt and it would make some of the logic more easy.

TODO: change the models from date to date time and remove the unique_together

@Dieterbe
Copy link
Contributor

A trainer on our discord brought up a good use case: water cuts for making weight categories (eg in powerlifting comp)

@scrapcode
Copy link
Contributor

I am taking a stab at this but I think clarification needs to be made on any desired restrictions, or none at all.

Currently there are many tests that check that seed data helper functions filter out weight entries for existing dates, date addition functions update existing entries when made within N days, etc.

Are there any restrictions desired here, for example, only one weight entry per day? Or remove such restrictions altogether?

@rolandgeider
Copy link
Member Author

just remove them alltogehter :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants