Permalink
Browse files

Twitter link patched.

  • Loading branch information...
livid committed Nov 23, 2011
1 parent 3faecbb commit 0e8628440479bad20243a15f37320f92269a9935
Showing with 2 additions and 2 deletions.
  1. +2 −2 t.py
View
4 t.py
@@ -85,7 +85,7 @@ def get(self):
twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
user = twitter.GetUserInfo()
memcache.delete('Member_' + str(member.num))
- member = db.GqlQuery("SELECT * FROM Member WHERE num = :1", member.num)[0]
+ member = db.get(member.key())
member.twitter_oauth = 1
member.twitter_oauth_key = access_token.key
member.twitter_oauth_secret = access_token.secret
@@ -116,7 +116,7 @@ def get(self):
twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
user = twitter.GetUserInfo()
memcache.delete('Member_' + str(member.num))
- member = db.GqlQuery("SELECT * FROM Member WHERE num = :1", member.num)[0]
+ member = db.get(member.key())
member.twitter_oauth = 1
member.twitter_oauth_key = access_token.key
member.twitter_oauth_secret = access_token.secret

0 comments on commit 0e86284

Please sign in to comment.