From b1d3f50df215e881c75b7855f153d86487d311eb Mon Sep 17 00:00:00 2001 From: codey Date: Sun, 11 Aug 2024 13:58:39 -0400 Subject: [PATCH] fine, i'll use the f-string --- endpoints/lyric_search.py | 2 +- endpoints/rand_msg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/lyric_search.py b/endpoints/lyric_search.py index 7e02f2b..7f6b8a9 100644 --- a/endpoints/lyric_search.py +++ b/endpoints/lyric_search.py @@ -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): """ diff --git a/endpoints/rand_msg.py b/endpoints/rand_msg.py index 6868483..9954e11 100644 --- a/endpoints/rand_msg.py +++ b/endpoints/rand_msg.py @@ -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): """