Fixed a few issues
This commit is contained in:
parent
326347421b
commit
f23541f717
3 changed files with 5 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
port.json
|
||||
config.json
|
||||
data/missing.json
|
||||
data/favicon_requests.json
|
||||
*.pyc
|
||||
*~
|
||||
|
|
|
@ -59,5 +59,7 @@
|
|||
1650105235.6373727,
|
||||
1650105264.9144416,
|
||||
1650105289.841991,
|
||||
1650105298.780408
|
||||
1650105298.780408,
|
||||
1650105503.264465,
|
||||
1650107255.0110946
|
||||
]
|
|
@ -407,7 +407,6 @@ def stats(page, mis=False, data=[]):
|
|||
# Count how much hits happen per each day
|
||||
biggest = 0
|
||||
day_counts = []
|
||||
print(days)
|
||||
for d in range(int(round(days))):
|
||||
count = 0
|
||||
for i in data:
|
||||
|
@ -428,7 +427,7 @@ def stats(page, mis=False, data=[]):
|
|||
dayis = time.strftime("%Y/%m/%d", time.gmtime( dayis) )
|
||||
|
||||
page = page + '<div class="front_progress" title="'+str(dayis)+' : '+str(d)+' visitors" style="height:400; position:absolute; top:5%; left:calc(99vw/'+str(days)+'*'+str(n)+') ;width:'+str(widthfrac)+'%">\n'
|
||||
frac = 100-(d/biggest*100)
|
||||
frac = 100-(d/biggest*99)
|
||||
page = page + '<div class="back_progress" style="height:'+str(frac)+'%; bottom:'+str(frac)+'%"></div></div>\n\n'
|
||||
|
||||
page = page + '\n</center>\n\n<div style="position:absolute; top:500">'
|
||||
|
|
Loading…
Reference in a new issue