Skip to content

Fix handling of dodgy buttons#12

Merged
MattyTheHacker merged 1 commit intomainfrom
fix-buttons
Mar 10, 2026
Merged

Fix handling of dodgy buttons#12
MattyTheHacker merged 1 commit intomainfrom
fix-buttons

Conversation

@MattyTheHacker
Copy link
Copy Markdown
Member

No description provided.

@MattyTheHacker MattyTheHacker self-assigned this Mar 10, 2026
Copilot AI review requested due to automatic review settings March 10, 2026 16:20
@MattyTheHacker MattyTheHacker added the bug Something isn't working label Mar 10, 2026
@github-actions github-actions bot added the sync label Mar 10, 2026
@github-actions
Copy link
Copy Markdown

This pull request has been marked to automatically sync to its base branch. You can disable this behavior by removing the label.

@MattyTheHacker MattyTheHacker merged commit 3185ee0 into main Mar 10, 2026
4 of 5 checks passed
@MattyTheHacker MattyTheHacker deleted the fix-buttons branch March 10, 2026 16:20
Copy link
Copy Markdown

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

Updates the Guild sales report scraping logic to better handle problematic <input> elements in the MSL context form, and adds additional output when the report viewer fails to load.

Changes:

  • Skip submit/image/button <input> fields when building form data for the MSL request.
  • Treat inputs with an explicitly empty value (value="") as valid (only exclude when value is missing/None).
  • Add extra diagnostic printing when the expected report viewer element is missing/empty.

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

Comment on lines 136 to 138
print("Failed to load the reports.")
print(soup)
print(report_viewer_div)
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

Avoid printing the full parsed HTML (soup) on failure: it can be very large and may contain sensitive user/org data, leading to noisy logs and potential data exposure. Prefer logging a small, redacted snippet (e.g., status code + relevant div excerpt) and/or gating this behind a debug flag/env var.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants