diff --git a/api/handlers.py b/api/handlers.py index 5d60cec..08d7abd 100755 --- a/api/handlers.py +++ b/api/handlers.py @@ -125,7 +125,7 @@ class OpTimerHandler(BaseHandler): params = {'userID':obj.id,'apiKey':obj.api_key,'characterID':FULL_API_CHARACTER_ID} cached_doc = CachedDocument.objects.api_query('/char/UpcomingCalendarEvents.xml.aspx', params, exceptions=False) - print cached_doc.body + dom = minidom.parseString(cached_doc.body.encode('utf-8')) enode = dom.getElementsByTagName('error') if enode: @@ -155,7 +155,7 @@ class OpTimerHandler(BaseHandler): duration = int(node.getAttribute('duration')) #In case people forget to set a duration, we'll give a default of 1 hour if duration == 0: - duration = 3600 + duration = 60 endsIn = startsIn + (duration * 60) if startsIn < 0: startsIn = 0