tweetcast/server/tweetcast.py
changeset 309 e26d4354b578
parent 306 70c9688a1486
--- a/tweetcast/server/tweetcast.py	Mon Oct 10 11:55:03 2011 +0200
+++ b/tweetcast/server/tweetcast.py	Mon Oct 10 15:24:12 2011 +0200
@@ -8,8 +8,8 @@
 from autobahn.websocket import WebSocketServerFactory, WebSocketServerProtocol
 
 connectstring = "dbname='tweet_live' user='postgres' host='localhost' password='doiteshimashite'"
-columns = [ 'id', 'created_at', 'text', 'user_id', 'screen_name' ]
-selectcommon = "SELECT tweet_tweet.id, tweet_tweet.created_at, text, user_id, screen_name FROM tweet_tweet JOIN tweet_user ON tweet_tweet.user_id = tweet_user.id"
+columns = [ 'id', 'created_at', 'text', 'user_id', 'screen_name', 'profile_image_url' ]
+selectcommon = "SELECT tweet_tweet.id, tweet_tweet.created_at, text, user_id, screen_name, profile_image_url FROM tweet_tweet JOIN tweet_user ON tweet_tweet.user_id = tweet_user.id"
 
 dbpool = adbapi.ConnectionPool("psycopg2",connectstring)