Commit 13d61e36 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

errors editing

parent 861ad65b
Pipeline #1496 passed with stage
in 18 seconds
...@@ -49,10 +49,10 @@ def query_process(sock: socket, query: dict): ...@@ -49,10 +49,10 @@ def query_process(sock: socket, query: dict):
sock.send(bytes(json.dumps(response), "utf-8")) sock.send(bytes(json.dumps(response), "utf-8"))
print("database generators ", response) print("database generators ", response)
# Sending default generator values # Sending default generator values
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 = client_generator({gen})
sock.send(bytes(json.dumps(resp), "utf-8")) sock.send(bytes(json.dumps(resp), "utf-8"))
...@@ -87,7 +87,7 @@ def client_generator(generator: dict): ...@@ -87,7 +87,7 @@ def client_generator(generator: dict):
if generator is not None: if generator is not None:
res = db.getParameters(generator) res = db.getParameters(generator)
return res return res
else : else:
return Exception("Generator Vide !!") return Exception("Generator Vide !!")
......
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