Skip to content

馃摑 Show how to get v1-style entry dicts in migration guide - #630

Merged
MiWeiss merged 3 commits into
mainfrom
docs/629-entries-to-dicts
Oct 2, 2026
Merged

MiWeiss merged 3 commits into
mainfrom
docs/629-entries-to-dicts

Conversation

@MiWeiss

@MiWeiss MiWeiss commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

The migration guide did not show how to get the plain list-of-dicts / {key: dict} that v1's entries / get_entry_dict() returned.

Adds a short v1/v2 snippet to "Accessing the library", plus a note that values may not be strings after middleware (e.g. SeparateCoAuthors):

entries = [dict(entry) for entry in library.entries]
entries_dict = {entry["ID"]: entry for entry in entries}

dict(entry) relies on #631. Snippet verified; sphinx-build -W and pre-commit pass.

Refs #629

@MiWeiss
MiWeiss merged commit 46d4369 into main Oct 2, 2026
18 checks passed
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