# HG changeset patch # User Raphael Velt # Date 1324290779 -3600 # Node ID 8ea085e5e7d1d27719efbae1c777602085e0cd6b # Parent aee91fdf967826bf85bb1862559955de5156aaf4 correction diff -r aee91fdf9678 -r 8ea085e5e7d1 tweetcast/server-gevent/tweetcast.py --- a/tweetcast/server-gevent/tweetcast.py Mon Dec 19 11:23:21 2011 +0100 +++ b/tweetcast/server-gevent/tweetcast.py Mon Dec 19 11:32:59 2011 +0100 @@ -112,6 +112,7 @@ print "refreshing" query = session.query(Tweet).order_by(asc(Tweet.id)).options(joinedload(Tweet.tweet_source)).filter(Tweet.id > lastid) for tweet in query: + lastid = tweet.id data.append(anyjson.serialize(tweet.jsondict())) gevent.sleep(2.) gevent.spawn(refresh)