10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-12-22 12:23:39 +01:00

Fix () in filter for list_basis

This commit is contained in:
Thomas Applencourt 2015-03-12 14:28:02 +01:00
parent d84ff1e538
commit 4ec899d1f1

View File

@ -223,13 +223,12 @@ class EMSL_local:
if average_mo_number:
column_to_fech += ", data"
filter_where = cmd_filter_ele + " AND " + cmd_filter_basis
filter_where = " ({}) AND ({})".format(cmd_filter_ele, cmd_filter_basis)
cmd = """SELECT DISTINCT {0}
FROM output_tab
WHERE {1}
ORDER BY name""".format(column_to_fech, filter_where)
# ~#~#~#~#~ #
# F e t c h #
# ~#~#~#~#~ #
@ -242,6 +241,7 @@ class EMSL_local:
# ~#~#~#~#~#~#~ #
# P a r s i n g #
# ~#~#~#~#~#~#~ #
# If average_mo_number is asking
from collections import OrderedDict
dict_info = OrderedDict()