Why ever would I want the sync_id back when I query with it?

This commit is contained in:
Odd Stråbø 2021-02-22 05:31:25 +01:00
parent 8517597262
commit 2bade17e7f

View file

@ -223,7 +223,12 @@ class FullSync(object):
if not sync_id or sync_id == 'Refresh': if not sync_id or sync_id == 'Refresh':
libraries = self.get_libraries() libraries = self.get_libraries()
else: else:
libraries = [self.get_library(sync_id)] res = self.get_library(sync_id)
if res is not None:
# FIXME: This is a hack. Fix plz.
libraries = [(sync_id,), res]
else:
libraries = []
for entry in libraries: for entry in libraries:
if entry[2] == 'boxsets': if entry[2] == 'boxsets':