Update utils.py
Browse files
utils.py
CHANGED
|
@@ -793,7 +793,7 @@ def extract_document_info(documents):
|
|
| 793 |
title = filename if filename else "Keine Überschrift"
|
| 794 |
|
| 795 |
# Determine the document type and adjust the path accordingly
|
| 796 |
-
|
| 797 |
"""
|
| 798 |
doc_path = doc.metadata.get("path", "")
|
| 799 |
if doc_path.endswith('.pdf'):
|
|
@@ -810,7 +810,7 @@ def extract_document_info(documents):
|
|
| 810 |
'titel': title,
|
| 811 |
'seite': doc.metadata.get("page", "Unbekannte Seite"),
|
| 812 |
'pfad': doc_path,
|
| 813 |
-
'download_link':
|
| 814 |
}
|
| 815 |
extracted_info.append(info)
|
| 816 |
return extracted_info
|
|
|
|
| 793 |
title = filename if filename else "Keine Überschrift"
|
| 794 |
|
| 795 |
# Determine the document type and adjust the path accordingly
|
| 796 |
+
d_link = download_link(doc)
|
| 797 |
"""
|
| 798 |
doc_path = doc.metadata.get("path", "")
|
| 799 |
if doc_path.endswith('.pdf'):
|
|
|
|
| 810 |
'titel': title,
|
| 811 |
'seite': doc.metadata.get("page", "Unbekannte Seite"),
|
| 812 |
'pfad': doc_path,
|
| 813 |
+
'download_link': d_link,
|
| 814 |
}
|
| 815 |
extracted_info.append(info)
|
| 816 |
return extracted_info
|