[11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0

This commit is contained in:
Sergio Teruel Albert
2018-06-27 13:10:53 +02:00
committed by Pedro M. Baeza
parent 8b6b8fa178
commit 4464e718f7
13 changed files with 85 additions and 34 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2011 Daniel Reis
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -54,6 +53,6 @@ class BaseExternalDbsource(models.Model):
with record.connection_open() as connection:
cur = connection.execute(sqlquery, sqlparams)
if metadata:
cols = cur.keys()
cols = list(cur.keys())
rows = [r for r in cur]
return rows, cols