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
|
||||
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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in a new issue