corrections(3)
authorRaphael Velt <raph.velt@gmail.com>
Mon, 19 Dec 2011 11:36:51 +0100
changeset 443 6562ec5e6139
parent 442 8ea085e5e7d1
child 444 3774706bfb80
corrections(3)
tweetcast/server-gevent/tweetcast.py
--- 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: