Skip to content

Commit

Permalink
Fix late-add bug in add-project where item was chosen and not attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 26, 2024
1 parent 73a6486 commit 3886382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jaraco/develop/add-project.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(name: str, target: path.Path = path.Path()):
projects = set(map(git.Project.parse, path.read_text().splitlines()))
projects.add(project)
specs = map(
operator.itemgetter('spec'), sorted(projects, key=jaraco.text.FoldedCase)
operator.attrgetter('spec'), sorted(projects, key=jaraco.text.FoldedCase)
)
path.write_text(''.join(add_newlines(specs)))
subprocess.check_call(['git', 'commit', '-a', '-m', f'Adding {name}'])
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+20ce5367.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix late-add bug in add-project where item was chosen and not attribute.

0 comments on commit 3886382

Please sign in to comment.