left a print in op timer api

This commit is contained in:
Aaron Static
2010-06-30 23:47:55 +10:00
parent 1427caaa76
commit c41c225a29

View File

@@ -136,13 +136,14 @@ class OpTimerHandler(BaseHandler):
for node in events_node_children:
if node.nodeType == 1:
ownerID = node.getAttribute('ownerID')
print ownerID
ownerID = node.getAttribute('ownerID')
if ownerID != '1':
date = node.getAttribute('eventDate')
dt = datetime.strptime(date,'%Y-%m-%d %H:%M:%S')
now = datetime.utcnow()
startsIn = int(dt.strftime('%s')) - int(now.strftime('%s'))
startsIn = int(dt.strftime('%s')) - int(now.strftime('%s'))
if startsIn < 0:
startsIn = 0
event = {
'startsIn': startsIn,
'eventID': node.getAttribute('eventID'),