Commit Graph

46 Commits

Author SHA1 Message Date
0e1eb0da3f chore: bump version to v0.5.1 2025-08-19 09:41:57 +02:00
4b81cc7f9f fix: improve JSON response handling in API calls 2025-08-19 09:41:28 +02:00
c4d9236b16 feat: make config_section a global CLI option
Users can now specify --config-section once at the beginning of the command instead of repeating it for each subcommand. Also bumped version to v0.5.0 for this new feature.
2025-08-19 09:25:50 +02:00
2a5883375f chore: display userid after fetch 2025-08-19 09:10:04 +02:00
c4b6e39e9e fix: correct project scripts section name and bump version
- Changed [projectscripts] to [project.scripts] in pyproject.toml to properly register the myice command line tool
- Bump version to v0.4.3
2025-08-19 09:03:42 +02:00
d3b5b6b6fd fix: resolve typer/click compatibility issue with make_metavar error
Fixed TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'
by correcting typer.Option(...) usage for optional parameters with default None values.

Bump version to v0.4.2
2025-08-19 08:57:37 +02:00
bcde9fccf5 chore: bump version to v0.4.1 and update dependencies 2025-08-19 08:52:39 +02:00
c2ab852f3f docs: add web interface and mobile functions info to README
Add documentation about the web interface (index.html and webapi.py) including how to run it and available endpoints. Also document the mobile API functions (mobile-login, mobile, mobile-game) that can be used for debugging or when the web interface is not available.
2025-08-19 08:37:49 +02:00
6b5949b726 docs: translate README to English and add mobile-login info
Translate French content in README to English and add information about how to fetch club_id and token using the mobile-login command.
2025-08-19 08:34:02 +02:00
66b93af6b1 feat: add account selection support in web UI
Add support for multiple MyIce accounts in the web interface:

- Create /accounts endpoint to fetch available accounts from config files

- Update index.html to dynamically show available accounts

- Modify /schedule and /game endpoints to accept account parameter

- Store selected account in localStorage for persistence
2025-08-18 22:10:24 +02:00
6eb9598012 fix: disable SSL verification warnings by commenting out verify=False lines 2025-08-18 21:58:10 +02:00
e7b0fdec00 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 2025-08-18 18:28:53 +02:00
4c53d6ce08 feat: add club selection support and improve mobile API integration 2025-08-18 11:26:56 +02:00
3ce916f5c4 fix: update get_login return type to allow None values 2025-08-18 09:56:11 +02:00
ea696ed361 refactor: simplify AgeGroup enum and enhance normalization
Remove redundant ELIT variants from AgeGroup enum and implement case/spelling tolerant normalization function. The new normalize_age_group function handles case-insensitive matching and spelling variations (Elite/ELIT/Elit) while mapping to canonical enum values.

This reduces the enum from 15 to 13 entries while maintaining full backward compatibility.
2025-08-15 07:50:26 +02:00
6b09a95a45 docs: add and format AGENTS.md file
Adding documentation file for agentic coding agents with proper markdown formatting to pass linting checks.
2025-08-14 12:56:32 +02:00
b11f875756 feat: update AgeGroup class to include all age groups from schedule.json
Added missing age group enums based on the schedule.json file to ensure proper parsing of all scheduled events.
2025-08-14 12:54:29 +02:00
5b5b593a3b refactor: improve JSON handling and API reliability
- Add robust JSON sanitization function to handle malformed API responses
- Select club after login for proper session initialization
- Enhance API request headers for better compatibility
- Add JSON parsing fallback with sanitization for malformed files
- Add poetry plugin requirement for export functionality
2025-08-14 12:50:13 +02:00
03d33f2e03 feat: add healthcheck 2025-03-13 11:29:30 +01:00
2bd10409a1 chore: change title and aligment 2025-03-13 08:51:18 +01:00
f1955238c5 fix: sort players by number 2025-03-12 11:59:22 +01:00
8af989f372 fix: add favicon to docker and load events immediately 2025-03-12 11:53:55 +01:00
28b34d8281 fix: webapi schedule uses mobile api endpoint 2025-03-12 11:46:20 +01:00
251e2b1452 fix: favicon and some stuff 2025-03-12 11:15:45 +01:00
4c5867c19f feat: add webapi, lower python version requirement and add a Dockerfile 2025-03-12 10:52:11 +01:00
75074991af chore: poetry 2.0.0 2025-01-13 09:13:53 +01:00
0ac1659db2 feat: add mobile methods 2025-01-13 09:06:39 +01:00
b5c3164f96 feat: extract players from pdf 2025-01-08 14:06:35 +01:00
91d8824e9c chore: v0.3.0 2024-11-27 14:33:50 +01:00
6b37e0fcc2 feat: add new category and days to schedule argument
🛠️ myice.py -> Added new enum value 'u111' to AgeGroup, modified get_schedule function to accept num_days parameter, added num_days option to schedule function.
2024-11-27 14:32:51 +01:00
5bf970ed26 Here is a brief summary of the changes:
🛠️ poetry.lock -> Updated rl-ai-tools version from 1.10.0 to 1.10.1
🛠️ pyproject.toml -> Updated myice version from v0.2.4 to v0.2.5
2024-11-04 14:46:10 +01:00
37005c5ff0 doc: update 2024-11-04 08:41:01 +01:00
2bf6b62ba4 Here is a brief summary of the changes:
🛠️ myice.py -> Modified get_schedule function and updated AI system prompt
🛠️ poetry.lock -> Updated rich package version from 13.9.3 to 13.9.4 and rl-ai-tools package version from 1.9.0 to 1.10.0
🛠️ pyproject.toml -> Updated project version from v0.2.0 to v0.2.4
2024-11-04 08:37:56 +01:00
275f1d09ca 🛠️ pyproject.toml -> Updated version from v0.1.6 to v0.2.0 2024-11-01 15:24:14 +01:00
e8e6f09e0a 🛠️ myice/myice.py -> Added new AI functionality using Infomaniak LLM API
🛠️ poetry.lock -> Added rl-ai-tools package dependency
🛠️ pyproject.toml -> Updated dependencies and added rl-ai-tools source
2024-11-01 15:23:51 +01:00
f9bc440c1b chore: myice.py -> Added file parameter to save_cookies function and used Path object for file handling. 2024-11-01 14:02:10 +01:00
324397fe27 🟢 pyproject.toml: Added Poetry project configuration file
🛠️ pyproject.toml -> Updated version from 'v0.1.5' to 'v0.1.6'
2024-11-01 13:18:38 +01:00
c1ad2ac9e0 🟢 README.md -> added installation instructions and introduction section
🛠️ .mdlrc -> set style path
🛠️ mdl.rb -> created a new ruby script
🔴 RECUPE\_SCHEDULE.sh -> removed shell script
2024-11-01 13:15:35 +01:00
49f72ef22e 🛠️ myice.py -> updated error messages to redirect to stderr
🛠️ myice.py -> changed login and get\_userid prints to write to stderr
🔴 pyproject.toml -> removed version v0.1.3
🟢 pyproject.toml -> added version v0.1.5
2024-11-01 11:23:05 +01:00
bce52d2462 🛠️ myice/myice.py -> updated function get_login by simplifying config reading; renamed functions open, get_game_pdf, get_practice_pdf to os_open, get_game_pdf_os, get_practice_pdf_os respectively
🔴 pyproject.toml -> removed version 'v0.1.2', now at 'v0.1.3'
2024-11-01 11:17:26 +01:00
c93c9fadd9 🛠️ myice/myice.py -> added EventType enum and updated search command to support optional event type filtering
- Added `EventType` enum with two values: 'game' and 'practice'.
- Updated `parse_schedule` function to accept an optional `event_type_filter` argument which filters displayed events based on their type.
- Changed `age_group` parameter in `parse_schedule` to allow `None`.
2024-11-01 11:06:10 +01:00
0346346a23 🛠️ pyproject.toml -> updated project dependencies and version number from 0.1.0 to v0.1.1
🛠️ poetry.lock -> content-hash changed from e11a99... to 32eb77...
2024-11-01 10:53:58 +01:00
6ad0587246 🟢 LICENSE.txt (New MIT license added)
🛠️ pyproject.toml -> Updated poetry dependencies, authors email changed, added license info
v0.1.0
2024-11-01 10:41:39 +01:00
7a19f9acb7 🟢 README.md: Updated command to retrieve schedule and added new commands for searching events by age group and retrieving match details
🛠️ myice/myice.py: Implemented a function to parse the schedule JSON file based on given age groups, improved error handling, enhanced formatting when printing results, added a new command `myice search`
2024-11-01 10:38:43 +01:00
6c502f94f1 chore: add from Python.gitignore 2024-11-01 10:07:04 +01:00
e102cfa9c8 initial import 2024-11-01 09:59:45 +01:00