Add global state module
This commit is contained in:
@ -22,10 +22,11 @@ class ValidAlbumDetailRequest(BaseModel):
|
||||
|
||||
class LastFM(FastAPI):
|
||||
"""Last.FM Endpoints"""
|
||||
def __init__(self, app: FastAPI, util, constants): # pylint: disable=super-init-not-called
|
||||
def __init__(self, app: FastAPI, util, constants, glob_state): # pylint: disable=super-init-not-called
|
||||
self.app = app
|
||||
self.util = util
|
||||
self.constants = constants
|
||||
self.glob_state = glob_state
|
||||
self.lastfm = importlib.import_module("lastfm_wrapper").LastFM()
|
||||
|
||||
self.endpoints = {
|
||||
|
Reference in New Issue
Block a user