Private
Public Access
1
0

C2 and ST button to import all new workouts

This commit is contained in:
Sander Roosendaal
2017-05-17 11:54:02 +02:00
parent bb2283635e
commit 12d95cfe43
6 changed files with 218 additions and 69 deletions

View File

@@ -18,6 +18,7 @@ from rowsandall_app.settings import DATABASES
from utils import lbstoN
user = DATABASES['default']['USER']
password = DATABASES['default']['PASSWORD']
database_name = DATABASES['default']['NAME']
@@ -335,6 +336,7 @@ def handle_nonpainsled(f2,fileformat,summary=''):
return (f2,summary,oarlength,inboard)
# Create new workout from file and store it in the database
# This routine should be used everywhere in views.py and mailprocessing.py
# Currently there is code duplication