From 20a7ebea46c5b8ab46ae1645c0f3dcc0c8c0e1ff Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Fri, 17 Feb 2023 17:14:56 +0100
Subject: [PATCH] testing full refactor, excluding garmin, polar, rojabo
---
rowers/integrations/__init__.py | 2 +
rowers/templates/list_import.html | 11 +-
rowers/templates/menu_workouts.html | 2 +-
rowers/tests/test_imports.py | 38 +-
rowers/tests/testdata/testdata.tcx.gz | Bin 4001 -> 4001 bytes
rowers/traverselinktest.py | 1 -
rowers/urls.py | 50 +--
rowers/views/importviews.py | 492 ++++----------------------
8 files changed, 97 insertions(+), 499 deletions(-)
diff --git a/rowers/integrations/__init__.py b/rowers/integrations/__init__.py
index 96bb9221..4e34497e 100644
--- a/rowers/integrations/__init__.py
+++ b/rowers/integrations/__init__.py
@@ -5,12 +5,14 @@ from .sporttracks import SportTracksIntegration
from .rp3 import RP3Integration
from .trainingpeaks import TPIntegration
+
importsources = {
'c2': C2Integration,
'strava': StravaIntegration,
'sporttracks': SportTracksIntegration,
'trainingpeaks': TPIntegration,
'nk': NKIntegration,
+ 'tp':TPIntegration,
'rp3':RP3Integration,
}
diff --git a/rowers/templates/list_import.html b/rowers/templates/list_import.html
index 1a0f21c2..643bd6db 100644
--- a/rowers/templates/list_import.html
+++ b/rowers/templates/list_import.html
@@ -8,6 +8,15 @@
Available on {{ integration }}
+ -
+
+
{% if workouts %}
{% if integration == 'C2 Logbook' %}
-
@@ -30,7 +39,7 @@
- {% endif %}
+ {% endif %}