fixed a big mistake in add_results
@@ -1135,7 +1135,6 @@ class SQLAlchemySocket:
Dict with keys: data, meta
Data is the ids of the inserted/updated/existing docs
"""
-
meta = add_metadata_template()
result_ids = ["placeholder"] * len(record_list)
@@ -1150,8 +1149,8 @@ class SQLAlchemySocket:
res = record_list[i]
items.append((res.program, res.driver, res.method, res.basis, res.keywords, res.molecule))
if (i+1) % 200 == 0:
- items = []
group_items.append(items)
+ items = []
if items != []:
group_items.append(items)
