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