when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report

This commit is contained in:
Eriks Karls 2020-01-14 13:43:10 +02:00
parent 0dd1ae9ac5
commit 00b87dc832

View File

@ -1257,6 +1257,7 @@ class TelegramBot:
self._threads = [] self._threads = []
self.__queue = [] self.__queue = []
self.__thread_stopper = threading.Event() if stop_event is None else stop_event self.__thread_stopper = threading.Event() if stop_event is None else stop_event
self._last_time = self._last_full_energy_report = utils.now().min
@property @property
def __dict__(self): def __dict__(self):