mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-15 23:32:17 +00:00
Use BeautifulSoup to clear out CCP's fail
This commit is contained in:
@@ -11,6 +11,7 @@ from django.core.urlresolvers import reverse
|
|||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
from BeautifulSoup import BeautifulSoup
|
||||||
from piston.handler import BaseHandler
|
from piston.handler import BaseHandler
|
||||||
from piston.utils import rc, throttle
|
from piston.utils import rc, throttle
|
||||||
from gargoyle import gargoyle
|
from gargoyle import gargoyle
|
||||||
@@ -185,7 +186,7 @@ class OpTimerHandler(BaseHandler):
|
|||||||
'eventTitle': node.getAttribute('eventTitle'),
|
'eventTitle': node.getAttribute('eventTitle'),
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'isImportant': int(node.getAttribute('importance')),
|
'isImportant': int(node.getAttribute('importance')),
|
||||||
'eventText': node.getAttribute('eventText'),
|
'eventText': ''.join(BeautifulSoup(node.getAttribute('eventText')).findAll(text=True)),
|
||||||
'endsIn':endsIn,
|
'endsIn':endsIn,
|
||||||
'forumLink': forumlink}
|
'forumLink': forumlink}
|
||||||
events.append(event)
|
events.append(event)
|
||||||
|
|||||||
@@ -14,4 +14,5 @@ django-celery==2.2.4
|
|||||||
xmpppy
|
xmpppy
|
||||||
django-sentry
|
django-sentry
|
||||||
nexus
|
nexus
|
||||||
-e git+https://nikdoof@github.com/nikdoof/gargoyle.git@dca57fc4b437b85f8cbc#egg=gargoyle
|
-e git+https://github.com/nikdoof/gargoyle.git@dca57fc4b437b85f8cbc#egg=gargoyle
|
||||||
|
beautifulsoup
|
||||||
|
|||||||
Reference in New Issue
Block a user