added collection and collection type to Guru metadata (#2187)

* added collection and collection type to metadata

* removed collection type
This commit is contained in:
hagen-danswer 2024-08-20 16:29:40 -07:00 committed by GitHub
parent f77b1ebd87
commit 075eacdd91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,6 +103,10 @@ class GuruConnector(LoadConnector, PollConnector):
# In UI it's called Folders
metadata_dict["folders"] = boards
collection = card.get("collection", {})
if collection:
metadata_dict["collection_name"] = collection.get("name", "")
owner = card.get("owner", {})
author = None
if owner: