Closed chrisvans closed 11 years ago
So... will del locations.(companyLocation - object) Work for removing a checkIn?
So.. we could make a checkOut button that deletes the CheckIn object, and then creates a checkOut object? This we would want to filter based by time, so that say, only the CheckOut from an hour ago would show.
no we'll want to do something like del checkOut(checkOut - object) I think. this is a bit more complicated becasue we have to do some more digging when the user loggs in. let's work on this tonight.
Note: Right now on the checkIn object we have an in-time and out-time. When the Barista checks in, should we ask for a number of hours they're working and then populate out-time with now+hours? that way users who follow that barista can see how much longer they'll be working for.
Then when the barista checks out, we delete the record from the DB.
Alright, I've worked in a checkOut button. After spending many hours attempting to workaround making a dictionary work with django, I gave up but got some good ideas. Now, you are either nothing, checked in, or checked out. Your last check out persists until you check in somewhere else.
I also improved the format of the timezone displayed at the time of checkin/out.
Attempted to work on this, but hard to trace back the code path.
I think Anthony may have to be the one to finish this section up.