add event id back to chroma metadata

This commit is contained in:
Josh Hawkins 2024-09-26 10:25:10 -05:00
parent fc2cacadbd
commit 5415c6c999

View File

@ -43,7 +43,7 @@ def get_metadata(event: Event) -> dict:
{ {
k: v k: v
for k, v in event_dict.items() for k, v in event_dict.items()
if k not in ["id", "thumbnail"] if k not in ["thumbnail"]
and v is not None and v is not None
and isinstance(v, (str, int, float, bool)) and isinstance(v, (str, int, float, bool))
} }