style: align priority calculation pattern with rest of file

Address CodeRabbit feedback - use consistent conditional pattern:
`(max_priority.priority + 1) if max_priority else 1`

This matches the pattern used in create_feature and create_features_bulk.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cabana8471
2026-01-25 12:36:54 +01:00
parent 6731ef44ea
commit d6ba075ac4

View File

@@ -553,7 +553,7 @@ async def skip_feature(project_name: str, feature_id: int):
# Set priority to max + 1 to push to end (consistent with MCP server)
max_priority = session.query(Feature).order_by(Feature.priority.desc()).first()
feature.priority = (max_priority.priority if max_priority else 0) + 1
feature.priority = (max_priority.priority + 1) if max_priority else 1
session.commit()