def percentOfMeters(args): from Core.Activities import Activities from Data.RowlogApi import getWorkoutData from Service import PercentOfMeters return PercentOfMeters.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), Activities)
def averageMetersPerSide(args): from Data.RowlogApi import getWorkoutData from Data.RowlogApi import getPeopleData from Service import AverageMetersPerSide return AverageMetersPerSide.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), getPeopleData(teamCode=args.teamCode))
def typesOfWorkoutsPerPerson(args): from Core.Activities import Activities from Data.RowlogApi import getWorkoutData from Service import TypesOfWorkoutsPerPerson return TypesOfWorkoutsPerPerson.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), Activities)
def longestWorkoutPerDay(args): from Core import DateManager from Data.RowlogApi import getWorkoutData from Service import LongestWorkoutPerDay return LongestWorkoutPerDay.run( getWorkoutData(teamCode=args.teamCode, orderBy='time', comment=''), DateManager)
def ergMetersPerDay(args): from Core import DateManager from Core.Activities import Activities from Data.RowlogApi import getWorkoutData from Service import ErgMetersPerDay return ErgMetersPerDay.run( getWorkoutData(teamCode=args.teamCode, orderBy='time', comment=''), Activities, DateManager)
def averageMetersAndSplitBySide(args): from Data.RowlogApi import getWorkoutData from Data.RowlogApi import getPeopleData from Core import SplitManager from Service import AverageMetersAndSplitBySide return AverageMetersAndSplitBySide.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), getPeopleData(teamCode=args.teamCode), SplitManager)
def splitTrends(args): from Core import DateManager from Core import SplitManager from Data.RowlogApi import getWorkoutData from Service import SplitTrends return SplitTrends.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), SplitManager, DateManager)
def searchByComment(args): from Data.RowlogApi import getWorkoutData if args.query is not None: return getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=args.query) else: return 'Inavlid Service Call'
def averageSplitByBoat(args): from Data.RowlogApi import getWorkoutData from Data.RowlogApi import getPeopleData from Core import BoatManager from Core import SplitManager from Service import AverageSplitByBoat return AverageSplitByBoat.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''), getPeopleData(teamCode=args.teamCode), SplitManager, BoatManager)
def individualContributions(args): from Core import DateManager from Core.Activities import Activities from Data.RowlogApi import getPeopleData from Data.RowlogApi import getWorkoutData from Service import IndividualContributions return IndividualContributions.run( getWorkoutData(teamCode=args.teamCode, orderBy='time', comment=''), getPeopleData(teamCode=args.teamCode), DateManager)
def workoutsPerPerson(args): from Data.RowlogApi import getWorkoutData from Service import WorkoutsPerPerson return WorkoutsPerPerson.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''))
def intensityPercentages(args): from Data.RowlogApi import getWorkoutData from Service import IntensityPercentages return IntensityPercentages.run( getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''))