From 88becb7cfae61e17307b0b54d70a187ba87e6c28 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 29 Mar 2007 20:14:46 +0000 Subject: [PATCH] - make sure 'verification_expires' is converted to an int in postgres before being returned --- PLC/Persons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLC/Persons.py b/PLC/Persons.py index 7e7578e..6da08ec 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Persons.py,v 1.34 2007/03/28 19:15:34 tmack Exp $ +# $Id: Persons.py,v 1.35 2007/03/29 13:17:09 tmack Exp $ # from types import StringTypes @@ -287,7 +287,7 @@ class Persons(Table): # postgres will return timestamps as datetime objects. # XMLPRC cannot marshal datetime so convert to int - timestamps = ['date_created', 'last_updated'] + timestamps = ['date_created', 'last_updated', 'verification_expires'] for field in fields: if field in timestamps: fields[fields.index(field)] = \ -- 2.43.0