implement string representation for Bootlog

old-commit-hash: e6e8607306
taco
Adeeb Shihadeh 3 years ago
parent 2d23b624a5
commit 8a7454eec3
  1. 3
      tools/lib/bootlog.py

@ -35,6 +35,9 @@ class Bootlog:
def datetime(self) -> datetime.datetime: def datetime(self) -> datetime.datetime:
return timestamp_to_datetime(self._timestamp) return timestamp_to_datetime(self._timestamp)
def __str__(self):
return f"{self._dongle_id}|{self._timestamp}"
def __eq__(self, b) -> bool: def __eq__(self, b) -> bool:
if not isinstance(b, Bootlog): if not isinstance(b, Bootlog):
return False return False

Loading…
Cancel
Save