Skip to content

Commit a9a1e2d

Browse files
committed
endpoint names
1 parent 7cf1950 commit a9a1e2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

surftimer/ck_playerrank.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,11 +967,11 @@ async def getPlayerCountryRank(
967967

968968

969969
@router.get(
970-
"/surftimer/getPlayerCountryRank",
971-
name="Player Country Rank by Name",
970+
"/surftimer/getPlayerCountryByName",
971+
name="Player Country by Name",
972972
tags=["ck_playerrank", "strays"],
973973
)
974-
async def getPlayerCountryRank(
974+
async def getPlayerCountryByName(
975975
request: Request,
976976
response: Response,
977977
name: str,
@@ -980,7 +980,7 @@ async def getPlayerCountryRank(
980980
"""`char[] sql_stray_countryRankPlayerCountryRankByName = ....`"""
981981
tic = time.perf_counter()
982982

983-
cache_key = f"getPlayerCountryRank:{name}-{style}"
983+
cache_key = f"getPlayerCountry:{name}-{style}"
984984
cached_data = get_cache(cache_key)
985985
if cached_data is not None:
986986
print(f"[Redis] Loaded '{cache_key}' ({time.perf_counter() - tic:0.4f}s)")

0 commit comments

Comments
 (0)