1
0
Fork 0

Remove needlessly high coupling on predb and steam modules.

This commit is contained in:
Casper V. Kristensen 2018-08-01 02:02:17 +02:00
parent b0616cafbc
commit 2915c5c31e
Signed by: caspervk
GPG key ID: B1156723DB3BDDA8
3 changed files with 4 additions and 6 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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):