예제 #1
0
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)
예제 #2
0
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))
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
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)
예제 #6
0
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)
예제 #7
0
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)
예제 #8
0
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'
예제 #9
0
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)
예제 #10
0
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)
예제 #11
0
def workoutsPerPerson(args):
    from Data.RowlogApi import getWorkoutData
    from Service import WorkoutsPerPerson
    return WorkoutsPerPerson.run(
        getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''))
예제 #12
0
def intensityPercentages(args):
    from Data.RowlogApi import getWorkoutData
    from Service import IntensityPercentages
    return IntensityPercentages.run(
        getWorkoutData(teamCode=args.teamCode, orderBy='wid', comment=''))