summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/tracking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tracking.py b/modules/tracking.py
index dd4e396..7285014 100644
--- a/modules/tracking.py
+++ b/modules/tracking.py
@@ -148,7 +148,7 @@ class PostenModule(TrackingModule):
continue
last = eventset[0]
desc = last.find('{%s}Description' % ns).text.replace('&lt;', '<').replace('<br/>', ' ')
- desc = re.sub(r'<[^>]*?>', '', desc).encode('utf8')
+ desc = re.sub(r'<[^>]*?>', '', desc).encode('utf8').strip()
isodate = last.find('{%s}OccuredAtIsoDateTime' % ns).text[:-10]
isodate = datetime.datetime.strptime(isodate, '%Y-%m-%dT%H:%M:%S')
city = last.find('{%s}City' % ns).text