Remove protocol part from URL

pull/6/head
Yax 10 years ago
parent 39039fd533
commit 1521daf485

@ -61,7 +61,11 @@ def convert_comment(db, site, filename):
if 'site' in d:
comment.author_site = d['site']
if 'url' in d:
comment.url = d['url']
logger.info(d['url'][:6])
if d['url'][:7] == 'http://':
comment.url = d['url'][7:]
elif d['url'][:8] == 'https://':
comment.url = d['url'][8:]
# else:
# comment.url = d['article']
if 'date' in d:

Loading…
Cancel
Save