From 641ab7f7ae8a482987b054fd92f07dabfabd8d81 Mon Sep 17 00:00:00 2001 From: samwiseg0 Date: Tue, 30 Apr 2019 09:30:26 -0400 Subject: [PATCH] Fix date compare for history gathering in Tautulli --- varken/tautulli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varken/tautulli.py b/varken/tautulli.py index 0792fc7..8a60ae4 100644 --- a/varken/tautulli.py +++ b/varken/tautulli.py @@ -235,7 +235,7 @@ class TautulliAPI(object): if not history_item['id']: self.logger.debug('Skipping entry with no ID. (%s)', history_item['full_title']) continue - if date.fromtimestamp(history_item['started'] < start_date): + if date.fromtimestamp(history_item['started']) < start_date: continue params['row_id'] = history_item['id'] req = self.session.prepare_request(Request('GET', self.server.url + self.endpoint, params=params))