-
Notifications
You must be signed in to change notification settings - Fork 48
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
Workout display error when speeds are zero #407
Comments
Hi, Thanks for the bug report. |
Ok thanks for your help. Let me know if I can help. I can probably provide you with the data for the problematic workout. |
yes, can you provide an example that generates this error? Thanks in advance. I think the error is due to speeds ( |
Here are the various fields for a GPX less workout (the "notes" field is probably not important)
|
thanks! I reproduce the same error when adding a workout without gpx file and with the same values. fittrackee=> SELECT distance, duration, ascent, descent, ave_speed, max_speed FROM workouts WHERE id = 4;
distance | duration | ascent | descent | ave_speed | max_speed
----------+----------+--------+---------+-----------+-----------
0.001 | 00:20:00 | 0.000 | 0.000 | 0.00 | 0.00
(1 ligne) just a question: in the example the distance is 0.001km (1m). Unless I'm mistaken, the value seems very low. Is this value correct? |
As said above, I'm using the smallest value possible as a workaround for being forced to use a non-zero one. When doing paragliding, you really only count the distance when doing cross-country flights. Anything else (hike and fly, acro, ...), you're not counting. So that's me trying to use fittrackee as a flightlog. |
OK, thanks for the explanation . |
On July 29, 2023 9:36:13 AM UTC, Sam ***@***.***> wrote:
With the fix, the workout will be displayed as follows (**FitTrackee** is not really designed to handle workouts without distance):

Just for information, ascent and descent are not mandatory when adding a workout without a gpx file.
Nice, thanks!
I'm planning on seeing how the displayed info can be customized per sport (I.e. we don't use the GPS distance when measuring the distance in paragliding), but that will be for later :)
|
released in v0.7.21 |
I've been importing ~600+ workouts, and apart from little changes, it nearly worked correctly.
But I'm unable to display some of these and am left with a nearly empty page:

The console gives:
It looks like the distance is
null
at some point, but I can see it is0.001
. Is it possible the0.001
, while being a valid float, is too low and got the routines that convert it to produce invalid result? I'm using0.001
for importing "workouts" that have no GPX files and for which I don't have all the data (except for the duration) as0
is not valid.I'm up to date wrt the
dev
branch (e3bb7e5).The only local change (used to accommodate larger notes than 500 chars) I have is:
I've tried to use the debugger but maybe you'll have a better idea of what is going on as web dev is not really my domain...
The text was updated successfully, but these errors were encountered: