Commit 4d6e0506 authored by 金凯强's avatar 金凯强 🎨

测试

parent 8c7e63ee
...@@ -71,7 +71,7 @@ class DBDriver: ...@@ -71,7 +71,7 @@ class DBDriver:
return res return res
res_dict = dict(map(lambda x, y: [x, y], fields, res)) res_dict = dict(map(lambda x, y: [x, y], fields, res))
cur.close() # cur.close()
return res_dict return res_dict
def query_sql(self, sql, *args, **kwargs): def query_sql(self, sql, *args, **kwargs):
...@@ -82,7 +82,7 @@ class DBDriver: ...@@ -82,7 +82,7 @@ class DBDriver:
for r in res: for r in res:
res_dict = OrderedDict(map(lambda x, y: [x, y], fields, r)) res_dict = OrderedDict(map(lambda x, y: [x, y], fields, r))
res_list.append(res_dict) res_list.append(res_dict)
cur.close() # cur.close()
return res_list return res_list
def __enter__(self): def __enter__(self):
......
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