Skip to content
Browse files

undo last thing i did

  • Loading branch information...
1 parent fd27698 commit 60975045ccabf4cfb626c883411531d4de006478 jonathan committed Mar 2, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 main.py
View
8 main.py
@@ -82,9 +82,11 @@ 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:
- previous_signin.delete() # delete old signin
+ # figure that this code might be toxic if we're using Signin objects
+ # to figure out staff time etc
+ #previous_signin = db.GqlQuery("SELECT * FROM Signin WHERE email = '%s' AND active = true" % email).get()
+ #if previous_signin is not None:
+ # previous_signin.delete() # delete old signin
s = Signin(email=email, type=type, image_url=image, name=name)
s.put()
return s

0 comments on commit 6097504

Please sign in to comment.
Something went wrong with that request. Please try again.