tweetcast/server-gevent/tweetcast.py
changeset 442 8ea085e5e7d1
parent 438 892c3d9f635c
child 443 6562ec5e6139
--- 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)