Ensure canonical DB exists before selection reconciliation

This commit is contained in:
Sleeps
2026-10-07 12:39:16 +01:00
parent e2d07a6d6c
commit f453080c25
+1
View File
@@ -454,6 +454,7 @@ def reconcile_selected_libraries(
selected_library_ids: set[str], selected_library_ids: set[str],
) -> dict[str, object]: ) -> dict[str, object]:
"""Make the plugin/dashboard library selection authoritative locally.""" """Make the plugin/dashboard library selection authoritative locally."""
init_db(settings.db_path)
selected = { selected = {
str(value).strip() str(value).strip()
for value in selected_library_ids for value in selected_library_ids