remove debug

This commit is contained in:
j 2018-11-16 12:52:19 +00:00
parent 2cd1d85702
commit 03a91e755e

View file

@ -102,7 +102,7 @@ def import_url(url):
title = re.compile('<title>(.*?)</title>').findall(data)
if title:
meta['title'] = title[0]
author= re.compile('<meta name="author" content="(.*?)"').findall(data)
author = re.compile('<meta name="author" content="(.*?)"').findall(data)
if author:
meta['author'] = author
fd, pdf = tempfile.mkstemp('.pdf')
@ -113,7 +113,6 @@ def import_url(url):
})
meta['id'] = did
r = api.editDocument(meta)
print(r['data']['id'])
os.unlink(pdf)