reporting: strip url to listings (#71239)

This commit is contained in:
Frédéric Péters 2022-11-12 10:05:18 +01:00
parent 09f98d57b5
commit c29f3f3236
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Command(BaseCommand):
raise CommandError('missing reporting user (%s)' % reporting_user_email)
sheets = []
for url in re.findall('href="(.*?)"', cell.text):
url = html.unescape(url)
url = html.unescape(url.strip())
url = re.sub(
r'/backoffice/management/([a-z0-9_-]+)(/[a-z0-9_-]+)?/?(\?)?',
r'/api/forms/\1/ods\2\3',