Add more debug logs
This commit is contained in:
parent
e885e82acd
commit
698747b9bc
1 changed files with 2 additions and 0 deletions
|
@ -317,6 +317,8 @@ def isbn_api(request, isbn):
|
||||||
|
|
||||||
if extra_info:
|
if extra_info:
|
||||||
extra_info = extra_info[0].get_text(strip=True)
|
extra_info = extra_info[0].get_text(strip=True)
|
||||||
|
logger.debug('extra_info')
|
||||||
|
logger.debug(extra_info)
|
||||||
matches = re.search(r'Date de parution(?: :)?\d{2}/\d{2}/(?P<year>\d{4})Editeur(?: :)?(?P<editor>[\w ]+)ISBN', extra_info)
|
matches = re.search(r'Date de parution(?: :)?\d{2}/\d{2}/(?P<year>\d{4})Editeur(?: :)?(?P<editor>[\w ]+)ISBN', extra_info)
|
||||||
if matches:
|
if matches:
|
||||||
groups = matches.groupdict()
|
groups = matches.groupdict()
|
||||||
|
|
Loading…
Reference in a new issue