feat: add support for multiple config sections in INI file\n\n- Add --config-section CLI option to all commands to allow switching between different credential sets\n- Modify get_login() function to accept a config_section parameter\n- Update all functions that use credentials to pass through the config_section parameter\n- Update webapi.py to handle the additional return value from get_login()\n- Document the new feature in README.md with examples\n- Fix type issues and formatting to pass pre-commit checks

This commit is contained in:
2025-08-18 18:28:53 +02:00
parent 4c53d6ce08
commit e7b0fdec00
3 changed files with 154 additions and 33 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ async def schedule(
):
if not headers.authorized():
raise HTTPException(401, detail="get out")
username, password, userid, existing_token = myice.get_login()
username, password, userid, existing_token, club_id = myice.get_login()
if existing_token:
myice.userdata = {
"id": userid,
@@ -94,7 +94,7 @@ async def game(
headers: Annotated[AuthHeaders, Header()],
game_id: int,
):
username, password, userid, existing_token = myice.get_login()
username, password, userid, existing_token, club_id = myice.get_login()
if existing_token:
myice.userdata = {
"id": userid,