diff --git a/data/favicon_requests.json b/data/favicon_requests.json index 621ee7c..5204355 100644 --- a/data/favicon_requests.json +++ b/data/favicon_requests.json @@ -22,5 +22,14 @@ 1650046892.7005703, 1650046895.821551, 1650049035.9363937, - 1650050029.5476623 + 1650050029.5476623, + 1650083891.6949275, + 1650083898.9622037, + 1650083924.1528506, + 1650087590.964061, + 1650088654.4191213, + 1650090012.933084, + 1650090481.4744847, + 1650090521.486587, + 1650090584.648241 ] \ No newline at end of file diff --git a/modules/render.py b/modules/render.py index 1818a60..d176237 100644 --- a/modules/render.py +++ b/modules/render.py @@ -255,12 +255,12 @@ def suggestions(page, json): page = page +""" -
+

""" - page = page + "
Suggestion score: " + str(frac) + "%" + page = progress(page, frac/100, "Suggestion score: " + str(frac) + "%") page = html(page, i[-1]) if more: @@ -350,4 +350,32 @@ def source_code_link(page): + return page + +def progress(page, frac, text=""): + + # This will output a progress bar + + page = page + """ + + + + + + + +
+
+
+
+   """+str(text)+""" + """ return page diff --git a/server.py b/server.py index 4083f7b..1eaaf02 100644 --- a/server.py +++ b/server.py @@ -218,7 +218,8 @@ class handler(BaseHTTPRequestHandler): page = page + "" page = page + '
' - page = page +"Search match: "+ str(int(match*100))+"%" + + page = render.progress(page, match, "Search match: "+ str(int(match*100))+"%") # Let's add the found software to the page page = render.html(page, software_data) page = page + "
"