Skip to content

Commit

Permalink
fix: parse from string
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jan 2, 2024
1 parent 4b968e2 commit 89fb3b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudrun/src/download/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def process_job():
log.logger.info(f"event.get_data(): {event.get_data()}")
log.logger.info(f"event.get_attributes(): {event.get_attributes()}")
#: todo, figure out how to parse the event data, it's binary protobuf
document = firestore.DocumentEventData(event.get_data())
document = firestore.DocumentEventData()
document.ParseFromString(event.get_data())
log.logger.info(f"dir(document): {dir(document)}")
data = document.value

Expand Down

0 comments on commit 89fb3b5

Please sign in to comment.