mirror of
https://github.com/aclist/dztui.git
synced 2026-11-10 20:10:38 +01:00
fix: typo
This commit is contained in:
1 parent
c66511b005
commit
504a2a724c
1 file changed
+3
-3
@@ -48,7 +48,7 @@ class ServerRow:
|
|||||||
|
|
||||||
# TODO: tests for marshalled row insertion
|
# TODO: tests for marshalled row insertion
|
||||||
@classmethod
|
@classmethod
|
||||||
def marshall_rows(
|
def marshal_rows(
|
||||||
cls, rows: list["ServerRow"]
|
cls, rows: list["ServerRow"]
|
||||||
) -> list[tuple[str, str, str, str, int, int, int, str, int, str, str, bool]]:
|
) -> list[tuple[str, str, str, str, int, int, int, str, int, str, str, bool]]:
|
||||||
"""Marshals data before passing into FastInsertListStore's extend() method"""
|
"""Marshals data before passing into FastInsertListStore's extend() method"""
|
||||||
@@ -242,7 +242,7 @@ class ProxyModelManager:
|
|||||||
if skip_cache is False:
|
if skip_cache is False:
|
||||||
if filters in self.filter_cache:
|
if filters in self.filter_cache:
|
||||||
cached_rows = self.filter_cache[filters]
|
cached_rows = self.filter_cache[filters]
|
||||||
marshalled_rows = ServerRow.marshall_rows(cached_rows)
|
marshalled_rows = ServerRow.marshal_rows(cached_rows)
|
||||||
clone = ModelFactory().make_server_store()
|
clone = ModelFactory().make_server_store()
|
||||||
clone.extend(marshalled_rows)
|
clone.extend(marshalled_rows)
|
||||||
self.set_proxy_model(clone)
|
self.set_proxy_model(clone)
|
||||||
@@ -263,7 +263,7 @@ class ProxyModelManager:
|
|||||||
clone = ModelFactory().make_server_store()
|
clone = ModelFactory().make_server_store()
|
||||||
if len(rows) > 0:
|
if len(rows) > 0:
|
||||||
rows = self.sort_rows(rows)
|
rows = self.sort_rows(rows)
|
||||||
marshalled_rows = ServerRow.marshall_rows(rows)
|
marshalled_rows = ServerRow.marshal_rows(rows)
|
||||||
clone.extend(marshalled_rows)
|
clone.extend(marshalled_rows)
|
||||||
|
|
||||||
self.set_cache(filters, rows)
|
self.set_cache(filters, rows)
|
||||||
|
|||||||
Reference in new issue
Block a user