|
|
@ -85,6 +85,7 @@ def server(http_port):
|
|
|
|
conn.send("accepted".encode())
|
|
|
|
conn.send("accepted".encode())
|
|
|
|
client(port, f"get_{site}")
|
|
|
|
client(port, f"get_{site}")
|
|
|
|
elif op == "check_all":
|
|
|
|
elif op == "check_all":
|
|
|
|
|
|
|
|
try:
|
|
|
|
sites = next(os.walk('cached/'), (None, None, []))[1]
|
|
|
|
sites = next(os.walk('cached/'), (None, None, []))[1]
|
|
|
|
sites_comp = ""
|
|
|
|
sites_comp = ""
|
|
|
|
for i in sites:
|
|
|
|
for i in sites:
|
|
|
@ -96,7 +97,8 @@ def server(http_port):
|
|
|
|
conn.send("None".encode())
|
|
|
|
conn.send("None".encode())
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
conn.send(sites_comp.encode())
|
|
|
|
conn.send(sites_comp.encode())
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
conn.send("None".encode())
|
|
|
|
conn.close()
|
|
|
|
conn.close()
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|