We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186ae28 commit 4c81ae6Copy full SHA for 4c81ae6
llm/bill_on_document_created.py
@@ -45,8 +45,8 @@ def run_trigger(event: Event[DocumentSnapshot | None]) -> None:
45
# If the summary is already populated, only run the tags code
46
summary = inserted_content.get("summary")
47
if summary is None:
48
- document_text = inserted_content.get("contents", {}).get("DocumentText")
49
- document_title = inserted_content.get("contents", {}).get("Title")
+ document_text = inserted_content.get("content", {}).get("DocumentText")
+ document_title = inserted_content.get("content", {}).get("Title")
50
if document_text is None or document_title is None:
51
print(f"bill with id `{bill_id}` unable to fetch document text or title")
52
return
0 commit comments