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"]