Skip to content

Commit 4c81ae6

Browse files
authored
Use the correct key for fetching contents (#1946)
1 parent 186ae28 commit 4c81ae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llm/bill_on_document_created.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def run_trigger(event: Event[DocumentSnapshot | None]) -> None:
4545
# If the summary is already populated, only run the tags code
4646
summary = inserted_content.get("summary")
4747
if summary is None:
48-
document_text = inserted_content.get("contents", {}).get("DocumentText")
49-
document_title = inserted_content.get("contents", {}).get("Title")
48+
document_text = inserted_content.get("content", {}).get("DocumentText")
49+
document_title = inserted_content.get("content", {}).get("Title")
5050
if document_text is None or document_title is None:
5151
print(f"bill with id `{bill_id}` unable to fetch document text or title")
5252
return

0 commit comments

Comments
 (0)