Fixed autocompletes #150

This commit is contained in:
Sven Heidemann 2022-12-30 13:05:30 +01:00
parent 7646335d03
commit 33fb973f21

View File

@ -91,6 +91,11 @@ class ClientUtilsService(ClientUtilsServiceABC):
if select is None:
select = lambda x: x
_l = _l.skip(_l.select(select).index_of(current))
sl = _l.select(select)
sl = sl.where(lambda x: current in x)
if current in sl:
sl = sl.skip(sl.index_of(current))
_l = _l.where(lambda x: x.name in sl)
return _l.take(25)