mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-31 17:39:37 +00:00
Improve channel's repr
This commit is contained in:
@@ -109,7 +109,11 @@ class Channel:
|
||||
return self
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"Channel({self.name}, {self.id})"
|
||||
if self._display_name is not None:
|
||||
name = f"{self._display_name}({self._login})"
|
||||
else:
|
||||
name = self._login
|
||||
return f"Channel({name}, {self.id})"
|
||||
|
||||
def __eq__(self, other: object):
|
||||
if isinstance(other, self.__class__):
|
||||
|
||||
Reference in New Issue
Block a user