10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-10-31 19:23:42 +01:00

List basis give now the description

This commit is contained in:
Thomas Applencourt 2014-11-24 12:22:31 +01:00
parent 45a26ba7e1
commit cf5ffd34ee

View File

@ -209,17 +209,17 @@ class EMSL_local:
if not elts: if not elts:
c.execute("SELECT DISTINCT name from all_value") c.execute("SELECT DISTINCT name,description from all_value")
data = c.fetchall() data = c.fetchall()
else: else:
cmd = ["SELECT name FROM all_value WHERE elt=?"] * len(elts) cmd = ["SELECT name,description FROM all_value WHERE elt=?"] * len(elts)
cmd = " INTERSECT ".join(cmd) + ";" cmd = " INTERSECT ".join(cmd) + ";"
c.execute(cmd, elts) c.execute(cmd, elts)
data = c.fetchall() data = c.fetchall()
data = [i[0] for i in data] data = [i[:] for i in data]
conn.close() conn.close()
return data return data