Fixed a few issues

This commit is contained in:
jyamihud 2022-04-16 14:19:08 +03:00
parent 326347421b
commit f23541f717
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
port.json port.json
config.json config.json
data/missing.json data/missing.json
data/favicon_requests.json
*.pyc *.pyc
*~ *~

View file

@ -59,5 +59,7 @@
1650105235.6373727, 1650105235.6373727,
1650105264.9144416, 1650105264.9144416,
1650105289.841991, 1650105289.841991,
1650105298.780408 1650105298.780408,
1650105503.264465,
1650107255.0110946
] ]

View file

@ -407,7 +407,6 @@ def stats(page, mis=False, data=[]):
# Count how much hits happen per each day # Count how much hits happen per each day
biggest = 0 biggest = 0
day_counts = [] day_counts = []
print(days)
for d in range(int(round(days))): for d in range(int(round(days))):
count = 0 count = 0
for i in data: for i in data:
@ -428,7 +427,7 @@ def stats(page, mis=False, data=[]):
dayis = time.strftime("%Y/%m/%d", time.gmtime( dayis) ) 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' 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 + '<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">' page = page + '\n</center>\n\n<div style="position:absolute; top:500">'