Remove needlessly high coupling on predb and steam modules.
This commit is contained in:
parent
b0616cafbc
commit
2915c5c31e
|
@ -37,8 +37,8 @@ class DailyReleasesBot(object):
|
||||||
|
|
||||||
# Initialize sub-modules
|
# Initialize sub-modules
|
||||||
self.web = Web(self.config, self.cache)
|
self.web = Web(self.config, self.cache)
|
||||||
self.predb = Predb(self.config, self.cache)
|
self.predb = Predb(self.cache)
|
||||||
self.steam = Steam(self.config, self.cache)
|
self.steam = Steam(self.cache)
|
||||||
self.reddit = Reddit(self.config)
|
self.reddit = Reddit(self.config)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
|
@ -7,8 +7,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Predb(object):
|
class Predb(object):
|
||||||
def __init__(self, config, cache) -> None:
|
def __init__(self, cache) -> None:
|
||||||
self.config = config
|
|
||||||
self.cache = cache
|
self.cache = cache
|
||||||
|
|
||||||
def get_releases(self):
|
def get_releases(self):
|
||||||
|
|
|
@ -6,8 +6,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Steam(object):
|
class Steam(object):
|
||||||
def __init__(self, config, cache) -> None:
|
def __init__(self, cache) -> None:
|
||||||
self.config = config
|
|
||||||
self.cache = cache
|
self.cache = cache
|
||||||
|
|
||||||
def appdetails(self, appid):
|
def appdetails(self, appid):
|
||||||
|
|
Reference in a new issue