Skip to content

Commit

Permalink
Fix get_badge_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
atiberghien committed Jul 30, 2012
1 parent 2aac331 commit be328f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions askbot/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,14 +2191,14 @@ def user_get_badge_summary(self):
bit = ungettext(
'one silver badge',
'%(count)d silver badges',
self.gold
self.silver
) % {'count': self.silver}
badge_bits.append(bit)
if self.silver:
if self.bronze:
bit = ungettext(
'one bronze badge',
'%(count)d bronze badges',
self.gold
self.bronze
) % {'count': self.bronze}
badge_bits.append(bit)

Expand Down

0 comments on commit be328f5

Please sign in to comment.