defined basic models and some low level functions
This commit is contained in:
39
rowers/plannedsessions.py
Normal file
39
rowers/plannedsessions.py
Normal 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
|
||||
Reference in New Issue
Block a user