mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Three sync callsites (endpoints/sync.py, sync_watcher.py, and both branches of tasks/sync_push_pull_task.py) ran get_saves(...) and then discarded archival null-slot rows in a Python list comprehension. On libraries with many archival/web-UI uploads that's a strict waste: those rows are pulled from MariaDB, hydrated into Save model instances, and then immediately filtered out. Add a slot_not_null bool kwarg to DBSavesHandler.get_saves and apply the filter in the SQL query. Update all four callsites to use it and drop the Python-side comprehension. Default stays False so unrelated callers keep the current behavior.