|
|
|
@ -745,13 +745,16 @@ def yeargen(local=False):
|
|
|
|
|
filewrite.write("\">« " + str(prevyear) + "</a></span>")
|
|
|
|
|
thisyear = int(datetime.datetime.now().strftime("%Y"))
|
|
|
|
|
if year < thisyear:
|
|
|
|
|
nextyear = yearlist[listposition + 1]
|
|
|
|
|
filewrite.write("<span style=\"float:right;\"><a href=\"")
|
|
|
|
|
if local:
|
|
|
|
|
filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/stats/" + str(nextyear) + "/index.html")
|
|
|
|
|
else:
|
|
|
|
|
filewrite.write("/fic/stats/" + str(nextyear))
|
|
|
|
|
filewrite.write("\">" + str(nextyear) + " »</a></span>")
|
|
|
|
|
try:
|
|
|
|
|
nextyear = yearlist[listposition + 1]
|
|
|
|
|
filewrite.write("<span style=\"float:right;\"><a href=\"")
|
|
|
|
|
if local:
|
|
|
|
|
filewrite.write("/home/mdd/Documents/drive/proj/fic-archive/build/stats/" + str(nextyear) + "/index.html")
|
|
|
|
|
else:
|
|
|
|
|
filewrite.write("/fic/stats/" + str(nextyear))
|
|
|
|
|
filewrite.write("\">" + str(nextyear) + " »</a></span>")
|
|
|
|
|
except:
|
|
|
|
|
pass
|
|
|
|
|
filewrite.write("</p>\n</div>\n</body>\n</html>")
|
|
|
|
|
filewrite.close()
|
|
|
|
|
|
|
|
|
|