From 9dd0c2416e887600bdf983edb2675263f7a5172b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 15 Mar 2015 02:23:52 +0530 Subject: [PATCH] better description --- ox/web/ubu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/ubu.py b/ox/web/ubu.py index 4bc32cf..2cbd39b 100644 --- a/ox/web/ubu.py +++ b/ox/web/ubu.py @@ -60,7 +60,7 @@ def get_data(url): if txt: if len(txt) > 1 and txt[0].strip() == m.get('title'): txt = txt[1:] - m['description'] = '\n\n'.join(txt).strip() + m['description'] = '\n\n'.join(txt).split('RESOURCES')[0].strip() y = re.compile('\((\d{4})\)').findall(data) if y: m['year'] = int(y[0])