Skip to content

Conversation

@jack89roberts
Copy link
Contributor

@jack89roberts jack89roberts commented Oct 31, 2025

Fixes for teams entered after GW1 and running AIrsenal when transfers have already been made in a GW.

Closes #736
Closes #765
Closes #767

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 61.92%. Comparing base (3311972) to head (2a66039).
⚠️ Report is 86 commits behind head on main.

Files with missing lines Patch % Lines
airsenal/framework/data_fetcher.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #768      +/-   ##
==========================================
- Coverage   62.32%   61.92%   -0.41%     
==========================================
  Files          32       32              
  Lines        4263     4299      +36     
==========================================
+ Hits         2657     2662       +5     
- Misses       1606     1637      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jack89roberts
Copy link
Contributor Author

@lolzeclegend This should fix your issues

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the optimization system to track points hits per gameweek in addition to total points hits across the optimization window. The version is bumped from 1.14.2 to 1.14.3.

  • Modified the return signature of next_week_transfers() to include both total points hits and points hits for the current gameweek
  • Updated the optimization flow to track and display per-gameweek points hits
  • Fixed the calculation of free transfers available from the API to account for transfers already made

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Version bump from 1.14.2 to 1.14.3
airsenal/framework/optimization_utils.py Modified next_week_transfers() to return 4-tuple with hit_this_gw; changed zip strict parameter to True
airsenal/scripts/fill_transfersuggestion_table.py Updated to handle 4-tuple from next_week_transfers(); added Points Hits display; threaded use_api parameter
airsenal/tests/test_optimization.py Updated all test assertions to expect 4-tuples; added new test cases for edge scenarios
airsenal/framework/data_fetcher.py Fixed free transfers calculation to subtract transfers already made
Comments suppressed due to low confidence (1)

airsenal/framework/optimization_utils.py:1

  • [nitpick] The label 'Points Hits' should use singular form 'Points Hit' for grammatical consistency, as it refers to the point penalty amount.
"""

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jack89roberts and others added 8 commits November 1, 2025 11:36
Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.10.6 to 3.10.7.
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](matplotlib/matplotlib@v3.10.6...v3.10.7)

---
updated-dependencies:
- dependency-name: matplotlib
  dependency-version: 3.10.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 4.4.9 to 4.4.10.
- [Release notes](https://github.com/jupyterlab/jupyterlab/releases)
- [Changelog](https://github.com/jupyterlab/jupyterlab/blob/main/RELEASE.md)
- [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/[email protected]...@jupyterlab/[email protected])

---
updated-dependencies:
- dependency-name: jupyterlab
  dependency-version: 4.4.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [types-python-dateutil](https://github.com/typeshed-internal/stub_uploader) from 2.9.0.20250822 to 2.9.0.20251008.
- [Commits](https://github.com/typeshed-internal/stub_uploader/commits)

---
updated-dependencies:
- dependency-name: types-python-dateutil
  dependency-version: 2.9.0.20251008
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [platformdirs](https://github.com/tox-dev/platformdirs) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/tox-dev/platformdirs/releases)
- [Changelog](https://github.com/tox-dev/platformdirs/blob/main/CHANGES.rst)
- [Commits](tox-dev/platformdirs@4.4.0...4.5.0)

---
updated-dependencies:
- dependency-name: platformdirs
  dependency-version: 4.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.43 to 2.0.44.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.0.44
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@jack89roberts jack89roberts requested a review from Copilot November 1, 2025 20:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Squad Printing Error Wildcards and Transfers Incorrect prices for teams entered after GW1

3 participants