fix: 修复命令列表模糊搜索报错500的问题

fix: 修复命令列表模糊搜索报错500的问题
pull/8422/head
Jiangjie.Bai 2022-06-16 13:16:25 +08:00 committed by 老广
parent 4520051d40
commit 8cbc8c0a34
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ class QuerySet(DJQuerySet):
self._command_store_config = command_store_config
self._storage = CommandStore(command_store_config)
# 命令列表模糊搜索时报错
super().__init__()
@lazyproperty
def _grouped_method_calls(self):
_method_calls = {k: list(v) for k, v in groupby(self._method_calls, lambda x: x[0])}