import datetime,os,re import log,skel def levelsgen(): if not os.path.isdir("build/levels"): os.mkdir("build/levels") if os.path.exists("build/levels/index.html"): os.remove("build/levels/index.html") thefile = "build/levels/index.html" skel.headerwrite(thefile,"levels") content = open(thefile,"a") content.write("
\n |
" + firstdate.strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[100].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[300].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[500].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[700].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[1000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[1200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[1400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[1600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[1800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[2000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[2200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[2400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[2700].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[3000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[3300].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[3600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[3900].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[5200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[4500].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[4800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[5100].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[5400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[5700].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[6000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[6300].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[6600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[6900].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[7200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[7500].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[7800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[8100].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[8400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[8700].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[9000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[9300].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[9600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[9900].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[10200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[10500].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[10800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[11100].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[11400].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[11700].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[12000].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[12300].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[12600].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[12900].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[13200].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[13500].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[13800].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[14100].strftime("%Y-%m-%d") + " | \n
\n |
" + datecard[14400].strftime("%Y-%m-%d") + " | \n