fix
This commit is contained in:
parent
f2ba97b9d1
commit
ba849449ce
@ -5,7 +5,7 @@ from fastapi import FastAPI
|
|||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
from .constructors import ValidArtistSearchRequest, ValidAlbumDetailRequest,\
|
from .constructors import ValidArtistSearchRequest, ValidAlbumDetailRequest,\
|
||||||
ValidTrackInfoRequest, LastFMException
|
ValidTrackInfoRequest, LastFMException
|
||||||
|
|
||||||
class LastFM(FastAPI):
|
class LastFM(FastAPI):
|
||||||
"""Last.FM Endpoints"""
|
"""Last.FM Endpoints"""
|
||||||
def __init__(self, app: FastAPI,
|
def __init__(self, app: FastAPI,
|
||||||
@ -13,7 +13,7 @@ class LastFM(FastAPI):
|
|||||||
self.app: FastAPI = app
|
self.app: FastAPI = app
|
||||||
self.util = util
|
self.util = util
|
||||||
self.constants = constants
|
self.constants = constants
|
||||||
self.lastfm = importlib.import_module("lastfm_wrapper").LastFM()
|
self.lastfm = importlib.import_module("utils.lastfm_wrapper").LastFM()
|
||||||
|
|
||||||
self.endpoints: dict = {
|
self.endpoints: dict = {
|
||||||
"lastfm/get_artist_by_name": self.artist_by_name_handler,
|
"lastfm/get_artist_by_name": self.artist_by_name_handler,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user