Skip to content

fix: 修复窗口创建函数返回值逻辑#226

Merged
lzy98276 merged 1 commit intomasterfrom
seer/fix/window-return-logic
May 5, 2026
Merged

fix: 修复窗口创建函数返回值逻辑#226
lzy98276 merged 1 commit intomasterfrom
seer/fix/window-return-logic

Conversation

@seer-by-sentry
Copy link
Copy Markdown
Contributor

@seer-by-sentry seer-by-sentry Bot commented May 5, 2026

Fixes SECRANDOM-AQ. The issue was that: create_remaining_list_window implicitly returns None, causing TypeError during unpacking in show_remaining_list.

  • 调整了 _create_weight_calculation_rule_window 函数中 get_page_callback 的创建和返回位置,确保其正确返回。

This fix was generated by Seer in Sentry, triggered by wsxyt. 👁️ Run ID: 1244467

Not quite right? Click here to continue debugging with Seer.

@WSXYT WSXYT marked this pull request as ready for review May 5, 2026 14:40
Copilot AI review requested due to automatic review settings May 5, 2026 14:40
@lzy98276 lzy98276 merged commit 2e47fb1 into master May 5, 2026
10 of 11 checks passed
@WSXYT WSXYT deleted the seer/fix/window-return-logic branch May 5, 2026 14:42
Copy link
Copy Markdown
Contributor

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 fixes the remaining-list window factory in the page-building layer so callers in the roll-call and lottery flows can reliably unpack its return value and initialize the page callback without hitting the reported TypeError.

Changes:

  • Moves get_page_callback creation back into create_remaining_list_window.
  • Restores return window, get_page_callback from the correct function.
  • Removes the unreachable callback/return block that had been left under create_weight_formula_window.

💡 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.

2 participants