concept2 logbook imports lose the date of workout
When I import from the C2 logbook, the workout always registers as the current day, no matter what day the workout occurred.
It should register as the workout date from the C2 logbook.
(only tested with bike erg, but it should be for all types, I think)
Comments (3)
-
repo owner -
repo owner Confirmed for bikerg workout stolen from Greg (sorry). Data
{'id': 46604397, 'user_id': 858964, 'date': '2020-08-29 14:44:00', 'timezone': 'America/New_York', 'date_utc': '2020-08-29 18:44:00', 'distance': 56112, 'type': 'bike', 'time': 72061, 'time_formatted': '2:00:06.1', 'workout_type': 'JustRow', 'source': 'ErgData iOS', 'weight_class': None, 'verified': False, 'ranked': False, 'comments': None, 'stroke_data': True, 'calories_total': 1729, 'drag_factor': 100, 'stroke_count': 8433, 'stroke_rate': 70, 'heart_rate': {'average': 133}, 'workout': {'splits': [{'type': 'time', 'time': 3000, 'distance': 2146, 'calories_total': 61, 'stroke_rate': 64, 'heart_rate': {'ending': 114}}, {'type': 'time', 'time': 3000, 'distance': 2437, 'calories_total': 78, 'stroke_rate': 73, 'heart_rate': {'ending': 129}}, {'type': 'time', 'time': 3000, 'distance': 2429, 'calories_total': 78, 'stroke_rate': 73, 'heart_rate': {'ending': 129}}, {'type': 'time', 'time': 3000, 'distance': 2416, 'calories_total': 77, 'stroke_rate': 73, 'heart_rate': {'ending': 129}}, {'type': 'time', 'time': 3000, 'distance': 2395, 'calories_total': 76, 'stroke_rate': 72, 'heart_rate': {'ending': 131}}, {'type': 'time', 'time': 3000, 'distance': 2386, 'calories_total': 75, 'stroke_rate': 72, 'heart_rate': {'ending': 126}}, {'type': 'time', 'time': 3000, 'distance': 2379, 'calories_total': 75, 'stroke_rate': 72, 'heart_rate': {'ending': 131}}, {'type': 'time', 'time': 3000, 'distance': 2374, 'calories_total': 74, 'stroke_rate': 71, 'heart_rate': {'ending': 129}}, {'type': 'time', 'time': 3000, 'distance': 2375, 'calories_total': 74, 'stroke_rate': 71, 'heart_rate': {'ending': 130}}, {'type': 'time', 'time': 3000, 'distance': 2381, 'calories_total': 75, 'stroke_rate': 72, 'heart_rate': {'ending': 130}}, {'type': 'time', 'time': 3000, 'distance': 2370, 'calories_total': 74, 'stroke_rate': 71, 'heart_rate': {'ending': 133}}, {'type': 'time', 'time': 3000, 'distance': 2371, 'calories_total': 74, 'stroke_rate': 71, 'heart_rate': {'ending': 132}}, {'type': 'time', 'time': 3000, 'distance': 2373, 'calories_total': 74, 'stroke_rate': 71, 'heart_rate': {'ending': 132}}, {'type': 'time', 'time': 3000, 'distance': 2336, 'calories_total': 72, 'stroke_rate': 70, 'heart_rate': {'ending': 145}}, {'type': 'time', 'time': 3000, 'distance': 2285, 'calories_total': 69, 'stroke_rate': 69, 'heart_rate': {'ending': 135}}, {'type': 'time', 'time': 3000, 'distance': 2299, 'calories_total': 70, 'stroke_rate': 69, 'heart_rate': {'ending': 143}}, {'type': 'time', 'time': 3000, 'distance': 2287, 'calories_total': 69, 'stroke_rate': 69, 'heart_rate': {'ending': 139}}, {'type': 'time', 'time': 3000, 'distance': 2308, 'calories_total': 70, 'stroke_rate': 69, 'heart_rate': {'ending': 135}}, {'type': 'time', 'time': 3000, 'distance': 2270, 'calories_total': 68, 'stroke_rate': 68, 'heart_rate': {'ending': 137}}, {'type': 'time', 'time': 3000, 'distance': 2287, 'calories_total': 69, 'stroke_rate': 69, 'heart_rate': {'ending': 134}}, {'type': 'time', 'time': 3000, 'distance': 2318, 'calories_total': 71, 'stroke_rate': 70, 'heart_rate': {'ending': 142}}, {'type': 'time', 'time': 3000, 'distance': 2272, 'calories_total': 68, 'stroke_rate': 68, 'heart_rate': {'ending': 135}}, {'type': 'time', 'time': 3000, 'distance': 2275, 'calories_total': 68, 'stroke_rate': 68, 'heart_rate': {'ending': 140}}, {'type': 'time', 'time': 3000, 'distance': 2308, 'calories_total': 70, 'stroke_rate': 69, 'heart_rate': {'ending': 144}}, {'type': 'time', 'time': 61, 'distance': 37, 'calories_total': 0, 'stroke_rate': 59, 'heart_rate': {'ending': 145}}]}}
-
repo owner - changed status to resolved
Resolved. Fix will be published in next release
- Log in to comment
Just tested (with a OTW row). Imported from C2 logbook. Date was correctly parsed from these data:
{'id': 46594975, 'user_id': 457764, 'date': '2020-08-29 07:30:02', 'timezone': 'Europe/Amsterdam', 'date_utc': '2020-08-29 05:30:02', 'distance': 12853, 'type': 'water', 'time': 39460, 'time_formatted': '1:05:46.0', 'workout_type': False, 'source': 'rowingdata', 'weight_class': 'H', 'verified': False, 'ranked': False, 'comments': None, 'stroke_data': True, 'stroke_count': 1440, 'stroke_rate': 22, 'heart_rate': {'average': 156, 'max': 176}, 'workout': {