claude-memory/graph/workflows/pr-review-paper-dynasty-database42-remove-duplicate-ranking-bf1e80.md

1.7 KiB
Raw Blame History

id type title tags importance confidence created updated relations
bf1e80d7-cec9-4853-85a4-260f2fe3e0eb workflow PR review: paper-dynasty-database#42 — remove duplicate ranking_max filter
pr-reviewer
paper-dynasty-database
fastapi
peewee
python
duplicate-code
0.4 0.8 2026-03-03T22:17:25.193256+00:00 2026-03-03T22:17:25.595134+00:00
target type direction strength edge_id
04e57a23-0a20-49d6-8c5a-2fa5fc4e55b5 RELATED_TO outgoing 0.79 3561b670-7afa-4a12-8131-5b099f890db5
target type direction strength edge_id
d36a86f0-8183-4c94-8d63-0be65d3fd63a RELATED_TO outgoing 0.77 2276edb6-002f-4656-8ff2-897a026d813c
target type direction strength edge_id
5ae1bf6e-1e1c-4486-8a4d-10afd9e42189 RELATED_TO outgoing 0.77 4b330e3c-087d-41e8-8ffc-3b53f004f551

PR #42: fix: remove duplicate ranking_max filter in get_teams

Verdict: APPROVED (posted as COMMENT — Gitea blocks self-approval)

Files reviewed: app/routers_v2/teams.py

Change: Removed 3 lines — a duplicate if ranking_max is not None: all_teams = all_teams.where(Team.ranking <= ranking_max) block at old lines 141143, identical to the block at lines 138140.

Analysis: The duplicate was a no-op copy-paste. Peewee would have generated WHERE ranking <= $1 AND ranking <= $1 — valid but redundant SQL. Removal has zero functional impact.

Issues found: None. Correctness, security, and conventions all clear.

Note: PR from ai/paper-dynasty-database#21 branch (agent-created). Gitea API returns "approve your own pull is not allowed" when authenticated user is the PR author — used COMMENT state as fallback.