Commit 4c31b80b authored by Ismail Moumni's avatar Ismail Moumni
Browse files

WIP adding get_generator

parent 9b877120
Pipeline #719 passed with stage
in 13 seconds
......@@ -97,3 +97,15 @@ def getParameters(generators: dict):
database.disconnect()
return (parameters_basefile, parameters_default)
def get_generators():
database = database_connection()
generators = {}
sql_get_new_job = "SELECT generators.tool, name, basefile, defaultValue from parameters inner join generators on parameters.idGenerator=generators.id"
mycursor = database.cursor(buffered=False)
mycursor.execute(sql_get_new_job)
myresult = mycursor.fetchall()
mycursor.close()
for result in myresult:
print(result)
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