Commit 139dcced authored by Ismail Moumni's avatar Ismail Moumni
Browse files

Call function

parent 21af4784
Pipeline #1317 failed with stage
in 13 seconds
......@@ -115,7 +115,7 @@ def get_generators():
generators[result[0]] = [result]
def list_generator():
def li_gen():
database = database_connection()
generators = {}
sql_get_generators = "SELECT id, tool from generators"
......
......@@ -14,7 +14,7 @@ __RDOS_Dict__ = {"parameters": "request"}
class RdosServer:
__RDOS_Tool__ = db.list_generator()
__RDOS_Tool__ = db.li_gen()
# Function server_conn creates a socket and listens on port 9393
# Function input address : SERVER IP ADRESS & Port server Port
......@@ -54,7 +54,7 @@ class RdosServer:
def query_client(addr, data):
__RDOS_Tool__ = db.list_generator()
__RDOS_Tool__ = db.li_gen()
sa = __RDOS_Tool__.get(list(data.keys())[0])
lm = list((data.values()))
s = {"id": "", "idGenerator": "", "IP": "", "timeSubmitted": "", "timeExecuted": "", "timeFinished": "", "status": "", "parametersJSON": "", "directory": "", "url": "", "message": "", "email": ""}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment