kopia lustrzana https://github.com/kartoza/docker-osm
fix osmenrich failure to startup
rodzic
db949996b9
commit
dbd06e54f3
|
@ -567,7 +567,7 @@ class Enrich(object):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
sql = """ SELECT EXISTS (SELECT 1 AS result from information_schema.tables
|
sql = """ SELECT EXISTS (SELECT 1 AS result from information_schema.tables
|
||||||
where table_name like TEMP_TABLE and table_schema = 'TEMP_SCHEMA'); """
|
where table_name like TEMP_TABLE and table_schema = 'TEMP_SCHEMA'); """
|
||||||
self.cursor.execute(sql.replace('TEMP_TABLE', '%s' % name).replace('TEMP_SCHEMA', '%s' % schema))
|
cursor.execute(sql.replace('TEMP_TABLE', '%s' % name).replace('TEMP_SCHEMA', '%s' % schema))
|
||||||
# noinspection PyUnboundLocalVariable
|
# noinspection PyUnboundLocalVariable
|
||||||
return cursor.fetchone()[0]
|
return cursor.fetchone()[0]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue