Use windows.location.pathname as page id
This commit is contained in:
parent
9e1bf963c8
commit
1f590f5c84
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue