Commit c0790438 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

changing function name

parent 13d61e36
Pipeline #2567 passed with stage
in 15 seconds
......@@ -53,7 +53,7 @@ def query_process(sock: socket, query: dict):
elif ((list(query.keys()))[0] == "default"):
gen = query["default"]
print("generator :", gen)
resp = client_generator({gen})
resp = get_generator_parameters_for_client({gen})
sock.send(bytes(json.dumps(resp), "utf-8"))
# Inserting client query in DATABASE
......@@ -83,7 +83,7 @@ def query_fields(addr, data):
# Function Client Generator gets from database a generator paramaters and default parameters
# Function takes a dict generator to send to database
# Function outputs the result from database
def client_generator(generator: dict):
def get_generator_parameters_for_client(generator: dict):
if generator is not None:
res = db.getParameters(generator)
return res
Supports Markdown
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