mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Fix incompatibility with Python versions < 3.6
Direct index access to a match was only added in 3.6. Fixes #359
This commit is contained in:
parent
52b32fddc9
commit
48738dab9f
1 changed files with 1 additions and 1 deletions
|
|
@ -38,6 +38,6 @@ def add_doc_edit_url(result):
|
|||
"""
|
||||
title = result[1]
|
||||
match = re.search(EXTRACT_URL, title)
|
||||
edit_doc_url = match[1]
|
||||
edit_doc_url = match.group(1)
|
||||
result.append(edit_doc_url)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue