mirror of https://github.com/langgenius/dify.git
fix pyright
This commit is contained in:
parent
acb603bff7
commit
060c7f2b45
|
|
@ -113,7 +113,7 @@ from .explore import (
|
|||
recommended_app,
|
||||
saved_message,
|
||||
)
|
||||
from .socketio import workflow as socketio_workflow
|
||||
from .socketio import workflow as socketio_workflow # pyright: ignore[reportUnusedImport]
|
||||
|
||||
# Import tag controllers
|
||||
from .tag import tags
|
||||
|
|
|
|||
|
|
@ -93,7 +93,12 @@ class WorkflowCollaborationRepository:
|
|||
|
||||
def get_session_sids(self, workflow_id: str) -> list[str]:
|
||||
raw_sids = self._redis.hkeys(self.workflow_key(workflow_id))
|
||||
return [self._decode(sid) for sid in raw_sids if self._decode(sid)]
|
||||
decoded_sids: list[str] = []
|
||||
for sid in raw_sids:
|
||||
decoded = self._decode(sid)
|
||||
if decoded:
|
||||
decoded_sids.append(decoded)
|
||||
return decoded_sids
|
||||
|
||||
def list_sessions(self, workflow_id: str) -> list[WorkflowSessionInfo]:
|
||||
sessions_json = self._redis.hgetall(self.workflow_key(workflow_id))
|
||||
|
|
|
|||
Loading…
Reference in New Issue