mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0
This commit is contained in:
committed by
Sergio Teruel
parent
1345900308
commit
1cbdf087c3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user