Skip to content

Commit ea3cdff

Browse files
author
Josh
committed
Warning on V1 APIs
1 parent ee1f921 commit ea3cdff

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/api/v1/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
router = APIRouter()
4242
oauth2_scheme = HTTPBearer(auto_error=False)
4343

44-
# NOTE: the api is still under design and is subject to change.
45-
# to keep up with breaking changes, please either join our discord,
46-
# or keep up with changes to https://github.com/JKBGL/gulag-api-docs.
44+
# NOTE: The V1 APIs should not be used if a V2 API is available.
45+
# These APIs may be deprecated in the future.
4746

4847
# Unauthorized (no api key required)
4948
# GET /search_players: returns a list of matching users, based on a passed string, sorted by ascending ID.

app/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ def make_safe_name(name: str) -> str:
3535
return name.lower().replace(" ", "_")
3636

3737

38-
def determine_highest_ranking_clan_member(members: list[User]) -> User:
39-
return next(iter(sorted(members, key=lambda m: m["clan_priv"], reverse=True)))
40-
41-
4238
def _download_achievement_images_osu(achievements_path: Path) -> bool:
4339
"""Download all used achievement images (one by one, from osu!)."""
4440
achs: list[str] = []

0 commit comments

Comments
 (0)