fix: scout claim missing week field + /resend_scout admin command #76

Merged
cal merged 1 commits from fix/scout-reward-week into main 2026-03-09 15:42:22 +00:00
Owner

Summary

  • Fix scout claim 422 error: Added missing week field to the rewards POST in scout_view.py — fetches current week via db_get("current") before consuming a scout token
  • Add /resend_scout admin command: New slash command in admins.py to manually re-post a scout opportunity with a custom timeout (default 60 min). Updates expires_at in the database before posting.
  • Add pre-commit hooks: Ruff lint check on staged Python files via .githooks/

Test plan

  • Deploy and run /resend_scout 1 60 to re-post scout opportunity #1
  • Verify users can click scout buttons and claim cards without 422 error
  • Verify expires_at is updated in the database after resend
  • Verify scout window closes after timeout

🤖 Generated with Claude Code

## Summary - **Fix scout claim 422 error**: Added missing `week` field to the rewards POST in `scout_view.py` — fetches current week via `db_get("current")` before consuming a scout token - **Add `/resend_scout` admin command**: New slash command in `admins.py` to manually re-post a scout opportunity with a custom timeout (default 60 min). Updates `expires_at` in the database before posting. - **Add pre-commit hooks**: Ruff lint check on staged Python files via `.githooks/` ## Test plan - [ ] Deploy and run `/resend_scout 1 60` to re-post scout opportunity #1 - [ ] Verify users can click scout buttons and claim cards without 422 error - [ ] Verify `expires_at` is updated in the database after resend - [ ] Verify scout window closes after timeout 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cal added 1 commit 2026-03-09 15:39:34 +00:00
feat: add /resend_scout admin command and pre-commit hooks
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m20s
5bed0f3164
Adds /resend_scout slash command to manually re-post a scout opportunity
with a custom timeout window. Updates the scout_opportunity's expires_at
in the database before posting. Also adds ruff pre-commit hook for
staged Python files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cal merged commit 0fbdce9907 into main 2026-03-09 15:42:22 +00:00
cal deleted branch fix/scout-reward-week 2026-03-09 15:42:22 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-discord#76
No description provided.