tweetcast/server-gevent/tweetcast.py
changeset 443 6562ec5e6139
parent 442 8ea085e5e7d1
child 446 844938e45fc7
child 450 c964d7e6556e
--- a/tweetcast/server-gevent/tweetcast.py	Mon Dec 19 11:32:59 2011 +0100
+++ b/tweetcast/server-gevent/tweetcast.py	Mon Dec 19 11:36:51 2011 +0100
@@ -109,6 +109,7 @@
         return tweetdict
 
 def refresh():
+    global lastid, data
     print "refreshing"
     query = session.query(Tweet).order_by(asc(Tweet.id)).options(joinedload(Tweet.tweet_source)).filter(Tweet.id > lastid)
     for tweet in query: