none 9 months ago
parent 1bc483a3b6
commit 30ca35cd4b

@ -44,6 +44,7 @@ server.start()
# Стартуем авто-поиск портов и авто-обновление сайтов
updater = Thread(target = update_demon, args=(serv_port,))
updater.daemon = True
updater.start()
# Стартуем интерфейс

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

Loading…
Cancel
Save