Use windows.location.pathname as page id

This commit is contained in:
Yax 2015-05-26 22:27:13 +02:00
parent e19aae121b
commit 38e632e938

View file

@ -69,8 +69,8 @@ def convert_comment(db, site, root_url, filename):
if 'url' in d:
url = remove_from_string(d['url'], 'https://')
url = remove_from_string(url, 'http://')
url = remove_from_string(url, root_url)
comment.url = remove_from_string(url, '/')
comment.url = remove_from_string(url, root_url)
# comment.url = remove_from_string(url, '/')
# else:
# comment.url = d['article']
if 'date' in d: