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

bug: Bodyweight used in calculation for all exercises when enabled #329

Open
andreped opened this issue Sep 25, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@andreped
Copy link
Owner

andreped commented Sep 25, 2024

Benchpress should not include body weight in calculation when enabled, but that seems to be the case below.

Screenshot_20240925-213548.png

Screenshot_20240925-213534.png

@andreped andreped added the bug Something isn't working label Sep 26, 2024
@andreped andreped self-assigned this Sep 26, 2024
@andreped
Copy link
Owner Author

andreped commented Oct 10, 2024

This is because we attempt to store a boolean type in the database, but that is not supported by sqlite apparently:
https://github.com/tekartik/sqflite/blob/master/sqflite/doc/supported_types.md#supported-types

So we should change this to uint or similar to get this to work.

Also see here:

Connecting to VM Service at ws://127.0.0.1:60674/4HTqUmjFoC8=/ws
flutter: Database is located at: /Users/andreped/Library/Developer/CoreSimulator/Devices/63D442D5-1A5B-4A79-88B5-9BB25EE7A6A3/data/Containers/Data/Application/77676EEC-C266-4184-891B-C19FF89A180F/Documents/exercises.db
flutter: *** WARNING ***

Invalid argument false with type bool.
Only num, String and Uint8List are supported. See https://github.com/tekartik/sqflite/blob/master/sqflite/doc/supported_types.md for details

This will throw an exception in the future. For now it is displayed once per type.
2
flutter: Fetching names from Exercise table...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant