diff gpp/bio/badges.py @ 400:47f4259ce511

Fixing #197; add a badge for photo of the day.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Mar 2011 21:29:27 +0000
parents 767cedc7d12a
children
line wrap: on
line diff
--- a/gpp/bio/badges.py	Sat Mar 26 03:08:05 2011 +0000
+++ b/gpp/bio/badges.py	Sat Mar 26 21:29:27 2011 +0000
@@ -7,7 +7,7 @@
 
 # Numeric ID's for badges that are awarded for user actions:
 (CONTRIBUTOR_PIN, CALENDAR_PIN, NEWS_PIN, LINK_PIN, DOWNLOAD_PIN,
-        SECURITY_PIN) = range(6)
+        SECURITY_PIN, POTD_PIN) = range(7)
 
 
 def award_badge(badge_id, user):
@@ -33,3 +33,5 @@
         # Already have this badge
         bo.count += 1
     bo.save()
+
+    logging.info('Awarded %s with the badge: %s', user.username, badge.name)