Add requirement for CoffeeScript, and fix the time formatting on Windows

This commit is contained in:
Stephen Brown
2012-12-07 20:32:03 +00:00
parent c70d61b0ea
commit c93ba32e45
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ def widget_html(widget_name):
def events():
def generate():
while True:
timeString = datetime.datetime.now().strftime('%F %T +0000')
timeString = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S +0000')
yield 'data: {"value":%s,"id":"synergy","updatedAt":"%s"}\n\n' % (random.randint(0, 100), timeString)
time.sleep(2)
return Response(generate(), mimetype='text/event-stream')

View File

@@ -1 +1,2 @@
flask>=0.9
CoffeeScript