From cf5ffd34eefcfbf98c102c38cc2fb64d886d02b3 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 24 Nov 2014 12:22:31 +0100 Subject: [PATCH] List basis give now the description --- src/EMSL_utility.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EMSL_utility.py b/src/EMSL_utility.py index 6f144b9..0f4bf29 100755 --- a/src/EMSL_utility.py +++ b/src/EMSL_utility.py @@ -209,17 +209,17 @@ class EMSL_local: if not elts: - c.execute("SELECT DISTINCT name from all_value") + c.execute("SELECT DISTINCT name,description from all_value") data = c.fetchall() 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) + ";" c.execute(cmd, elts) data = c.fetchall() - data = [i[0] for i in data] + data = [i[:] for i in data] conn.close() return data