keiththomas1 / Uplift

A depot for the mobile app which is a student project at University of Illinois at Chicago.
0 stars 0 forks source link

API for stats #22

Closed maximusNullus closed 10 years ago

maximusNullus commented 10 years ago

IDEAS: -Summary -days between first workout and last workout -frequency of workouts (300 days / 100 workouts = workout every 3 days) -total number of workouts -total number of sets -avg sets per workout -avg reps per set

maximusNullus commented 10 years ago

I need to know what the Volume/Workout stat does.

erikboyle commented 10 years ago

Sum of all the reps*weight

maximusNullus commented 10 years ago

Total weight, I assume?

erikboyle commented 10 years ago

Say we have a workout with these sets performed 10 x 100 10 x 150 10 x 200 Then the total volume of this workout would be (10_100) + (10_150) + (10*200)

maximusNullus commented 10 years ago

Hmmm....this function is going to be a little more involved as a database query (I'm going to have to use the heap for this one).

Currently, it's sloppy and just does total reps * total weight (both as global sums).

I'll work on that later, and close a few other issues first.

erikboyle commented 10 years ago

No worries. It's not essential I guess.

maximusNullus commented 10 years ago

Got it.