tweetcast/server-gevent/tweetcast.py
changeset 446 844938e45fc7
parent 443 6562ec5e6139
child 451 c223cae8db5b
--- a/tweetcast/server-gevent/tweetcast.py	Mon Dec 19 11:39:31 2011 +0100
+++ b/tweetcast/server-gevent/tweetcast.py	Mon Dec 19 12:37:41 2011 +0100
@@ -123,6 +123,7 @@
     WSGIServer(('', WEB_PORT), webserver).serve_forever()
 
 def webserver(env, start_response):
+    global data
     if env['PATH_INFO'] == '/':
         httpquery = parse_qs(env['QUERY_STRING'])
         print "serving tweets to", env['REMOTE_ADDR'], httpquery