From 79a2cbbd1823fe1b32f18db3fd916c25a8ec44a3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 04:48:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- podcast_fetcher.py | 1 - src/analyzer.py | 2 -- src/extendedAnalyzer.py | 3 --- 3 files changed, 6 deletions(-) diff --git a/podcast_fetcher.py b/podcast_fetcher.py index 90140f5..e40850b 100644 --- a/podcast_fetcher.py +++ b/podcast_fetcher.py @@ -77,7 +77,6 @@ def populateDatabase(url: str, conn: Connection) -> None: if __name__ == "__main__": - try: from dotenv import load_dotenv diff --git a/src/analyzer.py b/src/analyzer.py index 5bc663d..3253206 100644 --- a/src/analyzer.py +++ b/src/analyzer.py @@ -95,7 +95,6 @@ def _getDataPer( dt = DataType(dataType) retDict = {} for time in timeList: - data = { "number": self.getNumberOfItems(payload={key: time}), "artist": self.getPopularArtists(payload={key: time}), @@ -242,7 +241,6 @@ def _itemInTimeslot_Daytime(self, spec: str, item: Dict[str, str]) -> int: def _itemInTimeslot_Weekday( self, spec: Union[str, int], item: Dict[str, str] ) -> int: - if isinstance(spec, str): intSpec = { "monday": 0, diff --git a/src/extendedAnalyzer.py b/src/extendedAnalyzer.py index b0a6902..5f57d21 100644 --- a/src/extendedAnalyzer.py +++ b/src/extendedAnalyzer.py @@ -138,7 +138,6 @@ def _getDataPer( dt = DataType(dataType) retDict = {} for time in timeList: - data = { "number": self.getNumberOfItems(payload={key: time}), "artist": self.getPopularArtists(payload={key: time}), @@ -269,7 +268,6 @@ def _itemInTimeslot_Daytime(self, spec: str, item: Dict[str, str]) -> int: def _itemInTimeslot_Weekday( self, spec: Union[str, int], item: Dict[str, str] ) -> int: - if isinstance(spec, str): intSpec = { "monday": 0, @@ -293,7 +291,6 @@ def _itemIsMedia(self, media: str, item: Dict[str, str]) -> int: return isMedia def _itemHasKeyword(self, keyword: str, item: Dict[str, str]) -> int: - # Check because there is some data missing/corrupted data if ( not item["master_metadata_album_artist_name"]