Use windows.location.pathname as page id

This commit is contained in:
Yax 2015-05-26 22:27:13 +02:00
parent 9e1bf963c8
commit 1f590f5c84

View file

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