#!/usr/bin/python

''' this program writes the moving averages to google chart format to display in browser '''

try:
	txt=open("./header","r").read()
	txt2=open("./footer","r").read()
	fd=open("./graph.html","w")
except:
	print "issues opening files\n"

fd.write(txt)
fd.write("['race #', 'Bangcrashwallop', 'Ballymac Barn'], ['1',  160.75, 142.25], ['2',  170,   154.25], ['3',  165.5, 149.5], ['4',  156.25, 121.5], ['5',  , 121.5] ")
fd.write(txt2)

fd.close()

04a548b1e86ea128a72014e3cdd827ba31dc792e
#!/usr/bin/python

''' this program writes the moving averages to google chart format to display in browser '''

try:
	txt=open("./header","r").read()
	txt2=open("./footer","r").read()
	fd=open("./graph.html","w")
except:
	print "issues opening files\n"

fd.write(txt)
fd.write("['race #', 'Bangcrashwallop', 'Ballymac Barn'], ['1',  160.75, 142.25], ['2',  170,   154.25], ['3',  165.5, 149.5], ['4',  156.25, 121.5], ['5',  , 121.5] ")
fd.write(txt2)

fd.close()
