Permalink
Browse files

Passing datetime objects to the Signin constructor.

Signed-off-by: Joe Baker <jbaker@alum.wpi.edu>
  • Loading branch information...
1 parent c24f3f4 commit f8b577dc53d711de97cd28292fd792adb6c67aa3 @jbaker0428 committed Jun 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 gc_attendance.py
View
@@ -166,7 +166,7 @@ def read_attendance(self, infile):
time = row[2].split(':')
dt = datetime.datetime(int(date[2]), int(date[0]), int(date[1]), int(time[0]), int(time[1]))
# The record variable formatting matches the Sigin.__init__ arguments list
- record = (dt.isoformat(), None, int(row[3]))
+ record = (dt, None, int(row[3]))
signins.append(record)
cur = self.memory.cursor()

0 comments on commit f8b577d

Please sign in to comment.