Permalink
Browse files

Revert "oops sorry fix bad patch"

This reverts commit 743c2d0.
  • Loading branch information...
1 parent 743c2d0 commit 495aba539222aa7893051143dd3412d746e0cd12 jonathan committed Mar 3, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 main.py
View
@@ -82,9 +82,9 @@ def signin(cls, email, type):
image = 'http://0.gravatar.com/avatar/%s' % hash
name = string.capwords(email.split('@')[0].replace('.', ' '))
# prevents double signin...
- #previous_signin = db.GqlQuery("SELECT * FROM Signin WHERE email = '%s' AND active = true" % email).get()
- #if previous_signin is not None:
- # cls.deactivate_staffer(email)
+ previous_signin = db.GqlQuery("SELECT * FROM Signin WHERE email = '%s' AND active = true" % email).get()
+ if previous_signin is not None:
+ cls.deactivate_staffer(email)
s = Signin(email=email, type=type, image_url=image, name=name)
s.put()
return s

0 comments on commit 495aba5

Please sign in to comment.