# HG changeset patch # User Raphael Velt # Date 1324291011 -3600 # Node ID 6562ec5e6139143926a153b8696a96212be61687 # Parent 8ea085e5e7d1d27719efbae1c777602085e0cd6b corrections(3) diff -r 8ea085e5e7d1 -r 6562ec5e6139 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: