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