Commits

li yudong  committed 1644cbf

fix

  • Participants
  • Parent commits cd22c02

Comments (0)

Files changed (1)

File apps/reactive/sina.py

 from library.oauth.weibo import APIClient
 from settings import DOMAIN_NAME
 import web
+import json
 
 
 
             expires_in = r.expires_in
             info = ChannelInfo(channel_id = sina_channel.id, user_id = user.id, info = ':'.join([uid, access_token, expires_in]))
             info.save()
-            return render.sina(channel = sina_channel, result = info)
+            return str(json.dump(r))
 
     @login_required
     def POST(self):