Skip to content

Commit

Permalink
Backward compatbile with the old ProcessingMemory model
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin committed Sep 22, 2024
1 parent b796686 commit d3d7147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils/processing_memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def create_memory_by_processing_memory(uid: str, processing_memory_id: str
if not transcript_segments or len(transcript_segments) == 0:
print("Transcript segments is invalid")
return
timer_segment_start = processing_memory.timer_segment_start
timer_segment_start = processing_memory.timer_segment_start if processing_memory.timer_segment_start else processing_memory.timer_start
segment_end = transcript_segments[-1].end
new_memory = CreateMemory(
started_at=datetime.fromtimestamp(timer_segment_start, timezone.utc),
Expand Down

0 comments on commit d3d7147

Please sign in to comment.