Incorrect Interval parsing on import from C2

Issue #523 new
Sander Roosendaal repo owner created an issue

On an unrelated subject there appears to be a bug in the import from the C2 logbook site for interval data.  For example this 4x500m:

https://www.rowsandall.com/rowers/workout/69321b6b/

The summary is blank.  If I look on the interval page I see:

        Workout Summary - media/Import_42198736.csv.gz
--|Total|-Total----|--Avg--|-Avg-|Avg-|-Avg-|-Max-|-Avg
--|Dist-|-Time-----|-Pace--|-Pwr-|SPM-|-HR--|-HR--|-DPS
--|00561|00:12:34.0|11:12.0|239.2|34.0|145.0|167.0|01.3
W-|00561|00:12:34.3|11:12.2|239.2|34.0|145.0|167.0|01.3
R-|00000|00:00:00.0|00:00.0|000.0|00.0|000.0|167.0|00.0
Workout Details
#-|SDist|-Split-|-SPace-|-Pwr-|SPM-|AvgHR|MaxHR|DPS-
00|00888|03:30.8|01:58.7|229.9|34.3|136.4|154.0|07.4
01|00-17|03:34.1|-107:-28.8|220.1|33.7|144.0|160.0|-0.1
02|00000|03:33.6|17800:00.0|223.5|34.1|148.1|164.0|00.0
03|0-310|01:55.8|-3:-6.8|320.5|34.1|156.6|167.0|-4.7

Here is the logbook entry: https://log.concept2.com/profile/29950/log/42198736

My logbook should be visible if you are signed in.

Comments (3)

  1. Sander Roosendaal reporter

    Interestingly, the workout linked on Rowsandall shows the “tiny font bug” that we were unable to reproduce earlier.

  2. Sander Roosendaal reporter

    I did a manual import to my test site and got this summary

    Workout Summary - media/61a6a0a73d814f7b_42198736.csv
    --|Total|-Total----|--Avg--|-Avg-|Avg-|-Avg-|-Max-|-Avg
    --|Dist-|-Time-----|-Pace--|-Pwr-|SPM-|-HR--|-HR--|-DPS
    --|02000|00:06:33.7|01:38.4|367.1|34.0|160.0|000.0|05.5
    W-|02000|00:06:33.7|01:38.4|367.1|34.0|160.0|000.0|05.5
    R-|01213|00:07:40.0|03:09.6|051.3|00.0|000.0|000.0|00.0
    
    Workout Details
    #-|SDist|-Split-|-SPace-|-Pwr-|SPM-|AvgHR|MaxHR|DPS-
    00|00500|01:38.3|01:38.3|368.5|35.0|000.0|0.0|00.0
    01|00500|01:38.5|01:38.5|366.2|34.0|000.0|0.0|00.0
    02|00500|01:38.5|01:38.5|366.2|34.0|000.0|0.0|00.0
    03|00500|01:38.4|01:38.4|367.4|35.0|000.0|0.0|00.0
    

    But I discovered that it’s the automatic import that messes up things

  3. Sander Roosendaal reporter

    OK, I understand what is going on. When doing automatic imports from Concept2, the site

    1. Creates the basic workout data through a quick call to the Concept2 site that gets a list of workouts and basic data (duration, distance, start time).
    2. For each new workout, Rowsandall creates a database entry using just the basic data
    3. Rowsandall then sends a task to the task queue to fetch the detailed stroke data, telling the asynchronous task a file location to store the data
    4. What the asynchronous task doesn’t do is get the interval data from C2. This is an additional task (separate request to the Concept2 server).

    I propose to leave this issue unaddressed until I get around revamping the imports module. This is planned for later this year.

  4. Log in to comment