From faf3cba87de357d5f7471a5dc7f9fe2a11cf90cc Mon Sep 17 00:00:00 2001 From: Aaron Static Date: Thu, 1 Jul 2010 19:38:14 +1000 Subject: [PATCH] lets not concatenate strings and integers, hey? --- api/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers.py b/api/handlers.py index 6111667..18728d9 100755 --- a/api/handlers.py +++ b/api/handlers.py @@ -142,7 +142,7 @@ class OpTimerHandler(BaseHandler): dt = datetime.strptime(date,'%Y-%m-%d %H:%M:%S') now = datetime.utcnow() startsIn = int(dt.strftime('%s')) - int(now.strftime('%s')) - duration = node.getAttribute('duration') + duration = int(node.getAttribute('duration')) endsIn = startsIn + (duration * 60) if startsIn < 0: startsIn = 0