fine, i'll use the f-string

This commit is contained in:
codey 2024-08-11 13:58:39 -04:00
parent e434512fd0
commit b1d3f50df2
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class LyricSearch(FastAPI):
"LIMNORIA-SHARED"
]
app.add_api_route("/%s/" % self.endpoint_name, self.lyric_search_handler, methods=["POST"]) # pylint: disable=consider-using-f-string trailing-whitespace
app.add_api_route(f"/{self.endpoint_name}/",self.lyric_search_handler, methods=["POST"]) # pylint: disable=consider-using-f-string trailing-whitespace
async def lyric_search_handler(self, data: ValidLyricRequest):
"""

View File

@ -16,7 +16,7 @@ class RandMsg(FastAPI):
self.endpoint_name = "randmsg"
app.add_api_route("/%s/" % self.endpoint_name, self.randmsg_handler, methods=["POST"])
app.add_api_route(f"/{self.endpoint_name}/", self.randmsg_handler, methods=["POST"])
async def randmsg_handler(self):
"""