We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9ce04 commit 45cce80Copy full SHA for 45cce80
src/libtmux/server.py
@@ -260,7 +260,7 @@ def attached_sessions(self) -> t.List[Session]:
260
-------
261
list of :class:`Session`
262
"""
263
- return self.sessions.filter(session_attached="1")
+ return [s for s in self.sessions if s.session_attached != "0"]
264
265
def has_session(self, target_session: str, exact: bool = True) -> bool:
266
"""Return True if session exists.
0 commit comments