mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user