From 2915c5c31e459519ea8ad493cd5587fe0096c700 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 1 Aug 2018 02:02:17 +0200 Subject: [PATCH] Remove needlessly high coupling on predb and steam modules. --- dailyreleases/main.py | 4 ++-- dailyreleases/predb.py | 3 +-- dailyreleases/steam.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dailyreleases/main.py b/dailyreleases/main.py index aa74da6..88957bf 100644 --- a/dailyreleases/main.py +++ b/dailyreleases/main.py @@ -37,8 +37,8 @@ class DailyReleasesBot(object): # Initialize sub-modules self.web = Web(self.config, self.cache) - self.predb = Predb(self.config, self.cache) - self.steam = Steam(self.config, self.cache) + self.predb = Predb(self.cache) + self.steam = Steam(self.cache) self.reddit = Reddit(self.config) def run(self): diff --git a/dailyreleases/predb.py b/dailyreleases/predb.py index b3236fd..2f1ffbf 100644 --- a/dailyreleases/predb.py +++ b/dailyreleases/predb.py @@ -7,8 +7,7 @@ logger = logging.getLogger(__name__) class Predb(object): - def __init__(self, config, cache) -> None: - self.config = config + def __init__(self, cache) -> None: self.cache = cache def get_releases(self): diff --git a/dailyreleases/steam.py b/dailyreleases/steam.py index 6a0204e..ed46430 100644 --- a/dailyreleases/steam.py +++ b/dailyreleases/steam.py @@ -6,8 +6,7 @@ logger = logging.getLogger(__name__) class Steam(object): - def __init__(self, config, cache) -> None: - self.config = config + def __init__(self, cache) -> None: self.cache = cache def appdetails(self, appid):