got automatic timesheets working and summary of hours working.

Should be good to go but just following the procedure.
What do you do when a row comes up?

From: Teddy Sterne [mailto:notifications@github.com]
Sent: Tuesday, November 11, 2014 9:40 AM
To: lanceriechel/senior-project
Cc: Iverson, Daniel A
Subject: Re: [senior-project] got automatic timesheets working and summary of hours working. (#8)


In client/activeTimesheets/activeDbService.js:

> @@ -17,10 +17,9 @@ ActiveDBService = {

>          return false;

>

>      },

> -    getActiveTimesheets: function(){

> -        return TimeSheet.find({});

> +    getActiveTimeSheetsForUser: function (userId) {

> +        return TimeSheet.find({"userID": userId, $or: [{Approved: "false"}, {active: 1}]});

>      },

I chose this way because it is possible for timesheets to only have the type 1 row. Because empty timesheets need to be shown on the front page i just check if the type 1 is present and if it is then I just hardcode 0 values for all the days.

—
Reply to this email directly or view it on GitHub<https://github.com/lanceriechel/senior-project/pull/8/files#r20153177>.