Moduled Firegex, Merging pt1 (not finished and not working yet)

This commit is contained in:
DomySh
2022-07-21 20:25:39 +02:00
parent 3143f6e474
commit 63ba0e94e7
42 changed files with 2832 additions and 577 deletions

View File

@@ -1,6 +1,6 @@
import asyncio
from ipaddress import ip_interface
import os, socket, secrets, psutil
import os, socket, psutil
import sys
from fastapi_socketio import SocketManager
@@ -30,13 +30,6 @@ def refactor_name(name:str):
while " " in name: name = name.replace(" "," ")
return name
def gen_service_id(db):
while True:
res = secrets.token_hex(8)
if len(db.query('SELECT 1 FROM services WHERE service_id = ?;', res)) == 0:
break
return res
def list_files(mypath):
from os import listdir
from os.path import isfile, join