Private
Public Access
1
0

removed StrokeData table and all references to it

This commit is contained in:
Sander Roosendaal
2019-10-23 20:17:49 +02:00
parent c0e8e448e3
commit 7a26669cd7
7 changed files with 17 additions and 103 deletions

View File

@@ -28,35 +28,6 @@ from rowsandall_app.settings_dev import use_sqlite
from rowers.utils import lbstoN
# dtypes
dtypes = {'workoutid':int,
'hr':int,
'pace':float,
'velo':float,
'spm':float,
'driveenergy':float,
'power':float,
'averageforce':float,
'peakforce':float,
'drivelength':float,
'distance':float,
'cumdist':float,
'drivespeed':float,
'catch':float,
'slip':float,
'finish':float,
'wash':float,
'peakforceangle':float,
'totalangle':float,
'effectiveangle':float,
'rhythm':float,
'efficiency':float,
'distanceperstroke':float,
'ftime':str,
'fpace':str,
'fergpace':str,
'fnowindpace':str,
}
try:
user = DATABASES['default']['USER']
@@ -176,6 +147,7 @@ def rdata(file,rower=rrower()):
return res
from rowers.utils import totaltime_sec_to_string
from rowers.metrics import dtypes
# Creates C2 stroke data