mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 18:53:10 +00:00
community[patch]: expanding version in confluence loader (#19324)
**Description:** Expanding version in all the Confluence API calls so to get when the page was last modified/created in all cases. **Issue:** #12812 **Twitter handle:** zzste
This commit is contained in:
parent
08b769d539
commit
01fc69c191
@ -316,7 +316,7 @@ class ConfluenceLoader(BaseLoader):
|
||||
limit=limit,
|
||||
max_pages=max_pages,
|
||||
status="any" if include_archived_content else "current",
|
||||
expand=content_format.value,
|
||||
expand=f"{content_format.value},version",
|
||||
)
|
||||
yield from self.process_pages(
|
||||
pages,
|
||||
@ -349,7 +349,7 @@ class ConfluenceLoader(BaseLoader):
|
||||
limit=limit,
|
||||
max_pages=max_pages,
|
||||
include_archived_spaces=include_archived_content,
|
||||
expand=content_format.value,
|
||||
expand=f"{content_format.value},version",
|
||||
)
|
||||
yield from self.process_pages(
|
||||
pages,
|
||||
|
Loading…
Reference in New Issue
Block a user