41 lines
978 B
Python
41 lines
978 B
Python
from flask import url_for
|
|
|
|
css = ""
|
|
|
|
for se in ("start", "end"):
|
|
acht = 0
|
|
for i in range(0, 28):
|
|
if i % 4 == 0:
|
|
acht += 100
|
|
h = str(acht)
|
|
else:
|
|
h = str(acht + (i % 4 * 15))
|
|
if len(h) == 3:
|
|
h = "0" + h
|
|
css += "." + se + "-" + h + " {\n"
|
|
if se == "start":
|
|
css += "grid-row-" + se + ": " + "1" + "\n}\n"
|
|
else:
|
|
css += "grid-row-" + se + ": " + "4" + "\n}\n"
|
|
css += "\n\n\n"
|
|
|
|
|
|
for se in ("start", "end"):
|
|
acht = 700
|
|
for i in range(0, 45):
|
|
if i % 4 == 0:
|
|
acht += 100
|
|
h = str(acht)
|
|
else:
|
|
h = str(acht + (i % 4 * 15))
|
|
if len(h) == 3:
|
|
h = "0" + h
|
|
css += "." + se + "-" + h + " {\n"
|
|
css += "grid-row-" + se + ": " + str(i+1) + "\n}\n"
|
|
css += "\n\n\n"
|
|
|
|
f = open("static/cal.scss", "a")
|
|
f.write ("\n // Generated by genstarts.py\n\n")
|
|
f.write(css)
|
|
f.close()
|