Update Document360 Connector (#1113)

expects primary_owners to be a list of dictionaries, but it's being provided with a list of strings instead.

https://github.com/danswer-ai/danswer/issues/1111
This commit is contained in:
robertoamoreno 2024-02-27 09:40:52 -07:00 committed by GitHub
parent b38be416b7
commit 59c416b777
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ class Document360Connector(LoadConnector, PollConnector):
continue
authors = [
author["email_id"]
{"name": author.get("name", "Unknown"), "email": author["email_id"]}
for author in article_details.get("authors", [])
if author["email_id"]
]