Open adamvail opened 11 years ago
should the workout_tracker database tables have the gym field so that I can key on that? Otherwise how do I figure out which ones to select?
The way I was thinking was that when you want to show other people's results you would:
Get all members in the current user's gym from the affiliation table. Now you have their uid's.
The tracker database is indexed on uid of the user who performed the workout. So you can query the tracker table for a specific user and a specific wid. That way you could display only shared results for the last workout (for now, later we want to build a complete shared section where we could get full details on everyone)
I was just trying to not have to carry the gym in every single row. Also, even once you have the gym you would have to wade through the uid's to figure out who the people are.
Is there a way to get people's real (display) names when the register? That was when sharing we could just use that.
If you're thinking something else let me know.
On Thu, Mar 14, 2013 at 8:40 PM, ACAHNN notifications@github.com wrote:
should the workout_tracker database tables have the gym field so that I can key on that? Otherwise how do I figure out which ones to select?
— Reply to this email directly or view it on GitHubhttps://github.com/adamvail/drupal_modules/issues/12#issuecomment-14939697 .
In the homepage, bring in data from other members of the gym.