Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Twitter link patched.

  • Loading branch information...
commit 0e8628440479bad20243a15f37320f92269a9935 1 parent 3faecbb
@livid authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.