Private
Public Access
1
0

defined basic models and some low level functions

This commit is contained in:
Sander Roosendaal
2018-01-26 11:03:00 +01:00
parent bb48cfb96b
commit 92d69087cf
3 changed files with 234 additions and 2 deletions

39
rowers/plannedsessions.py Normal file
View File

@@ -0,0 +1,39 @@
# Python
from django.utils import timezone
from datetime import datetime
from datetime import timedelta
import time
from django.db import IntegrityError
import uuid
from django.conf import settings
from utils import myqueue
import django_rq
queue = django_rq.get_queue('default')
queuelow = django_rq.get_queue('low')
queuehigh = django_rq.get_queue('low')
from rowers.models import (
Rower, Workout,
GeoCourse, TrainingMicroCycle,TrainingMesoCycle,TrainingMacroCycle,
TrainingPlan,
)
# Low Level functions - to be called by higher level methods
# dummies for now
def submit_workout(w,ps):
return 1
def remove_workout_plannedsession(w,ps):
return 1
def rank_results(ps):
return 1
def add_team(t,ps):
return 1
def add_rower(r,ps):
return 1