Fix loading of index that was bad because of slop code.

This commit is contained in:
2026-05-30 01:43:46 +00:00
parent 352835a664
commit 72963aeb7a
+1 -2
View File
@@ -111,8 +111,7 @@ class IndexStore:
raw: bytes,
) -> tuple[dict[str, Movie], dict[str, Series], dict[int, Person]]:
"""Parse snapshot bytes in a thread-pool context."""
payload = msgspec.json.decode(raw)
data = msgspec.convert(payload, type=IndexSnapshot)
data = msgspec.json.decode(raw, type=IndexSnapshot)
loaded_movies = dict(data.movies)
loaded_series = dict(data.series)
loaded_people = dict(data.people)