Tweaks to stats display on homepage
This commit is contained in:
parent
359617a15d
commit
5bbece2ebe
1 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
import os
|
import datetime, os
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
||||||
import headerfooter
|
import headerfooter
|
||||||
|
@ -42,8 +42,11 @@ def statslist(local=False):
|
||||||
else:
|
else:
|
||||||
statspath = "/fic/stats/" + str(year)
|
statspath = "/fic/stats/" + str(year)
|
||||||
if yearlist.index(year) > 0:
|
if yearlist.index(year) > 0:
|
||||||
statstring += " • "
|
statstring += " • "
|
||||||
statstring += "<a href=\"" + statspath + "\">" + str(year) + "</a>"
|
statstring += "<a href=\"" + statspath + "\">" + str(year)
|
||||||
|
if year == (datetime.datetime.now()).year:
|
||||||
|
statstring += " (so far)"
|
||||||
|
statstring += "</a>"
|
||||||
linkedyears.append(statstring)
|
linkedyears.append(statstring)
|
||||||
listofyears = "".join(linkedyears)
|
listofyears = "".join(linkedyears)
|
||||||
return listofyears
|
return listofyears
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue