Compare Workouts Only Seeing First Work Piece

Issue #87 resolved
Michael McGuirk created an issue

When comparing today's 3x10'/5' workout (3205) with other 3x10'/5' workouts (e.g. 2816), only the first piece of today's workout is plotted. When looking at flex charts, all three pieces are there but only the first one shows up when I do a compare. https://rowsandall.com/rowers/workout/compare/3205/2816/time/hr/

Comments (6)

  1. Michael McGuirk reporter

    Comparing by distance does not help. However, on further review, the problem seems to be with workout 2816, not today's workout. I can successfully compare today's (3205) with several others. But, when I compare 2816 to several others, the problem persists.

  2. Michael McGuirk reporter

    I re-uploaded 2816 (it's now 3220) and the same problem exists with this new version when I compare it to several other workouts. However, when I compare it to the original version of itself (3220 and 2816), it works and I get the display of all three work pieces.

  3. Michael McGuirk reporter

    The 2816/3220 file appears to have an zero value for pace on the first work piece. I tried deleting that row in the CSV file and uploading it again. That didn't help.

  4. Sander Roosendaal repo owner

    v1.2 (with bugfix v1.21) resolved this. The reason for the bug was that the two workouts didn't have the same number of records. One of the two workouts was stroke based and had 1200 data records, while the other was seconds based and had 3600 data records. Both were one hour. The longer one was truncated after the first 1200 data records, and thus appeared shorter.

  5. Log in to comment