Skip to content

Commit

Permalink
Merge pull request #20 from fedora-infra/feature/person-scope
Browse files Browse the repository at this point in the history
Watch out for the other 'person' in the scope.
  • Loading branch information
yograterol committed Oct 22, 2013
2 parents e20329b + de8efd3 commit 0c023d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tahrir_api/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ def _adjust_ranks(self, person, old_rank):
return

# Otherwise, take our calculations and commit them to the db.
for person, data in leaderboard.items():
person.rank = data['rank']
for _person, data in leaderboard.items():
_person.rank = data['rank']

self.session.flush()

Expand Down

0 comments on commit 0c023d4

Please sign in to comment.