From 8a7454eec3920afa8c3e7871e38202e697b782fd Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 21 Jul 2022 14:14:24 -0700 Subject: [PATCH] implement string representation for Bootlog old-commit-hash: e6e8607306b14ca1d869846007d91f240bfe2c7a --- tools/lib/bootlog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/lib/bootlog.py b/tools/lib/bootlog.py index 4e71120400..3515370823 100644 --- a/tools/lib/bootlog.py +++ b/tools/lib/bootlog.py @@ -35,6 +35,9 @@ class Bootlog: def datetime(self) -> datetime.datetime: return timestamp_to_datetime(self._timestamp) + def __str__(self): + return f"{self._dongle_id}|{self._timestamp}" + def __eq__(self, b) -> bool: if not isinstance(b, Bootlog): return False