Skip to content

Minor fix in the Limitless Data import functionality formatting.#3673

Merged
aaravgarg merged 1 commit into
mainfrom
Limitless-formatting-fix
Dec 10, 2025
Merged

Minor fix in the Limitless Data import functionality formatting.#3673
aaravgarg merged 1 commit into
mainfrom
Limitless-formatting-fix

Conversation

@aaravgarg
Copy link
Copy Markdown
Collaborator

No description provided.

@aaravgarg aaravgarg merged commit 7422310 into main Dec 10, 2025
1 check passed
@aaravgarg aaravgarg deleted the Limitless-formatting-fix branch December 10, 2025 03:08
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request implements a minor fix in the parse_lifelog_md function within backend/utils/imports/limitless.py. The change introduces a two-pass approach to header processing. The first pass collects all H2 and H3 headers and determines if any H3 headers are present. The second pass then formats the headers: H2 headers are kept as markdown headers if H3s exist, but converted to bullet points if no H3s are found, while H3 headers are always converted to bullet points. This ensures correct conditional formatting of summaries based on the presence of different header levels. The changes appear to correctly address the described formatting requirement, and no high or critical severity issues were identified.

Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant