Skip to content

Commit

Permalink
fix travis flake8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarion-source committed Jun 2, 2020
1 parent 039e867 commit 7899f9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions base_geoengine/geo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ def init_postgis(cr):
except Exception:
raise MissingError(
_("Error,"
"can not automatically initialize spatial postgis support."
"Database user may have to be superuser and postgres/postgis "
"extentions with their devel header have to be installed. "
"If you do not want Odoo to connect with a super user "
"you can manually prepare your database. To do this"
"open a client to your database using a super user and run: \n"
"CREATE EXTENSION postgis;\n"
"CREATE EXTENSION postgis_topology;\n")
"can not automatically initialize spatial postgis support."
"Database user may have to be superuser and postgres/postgis "
"extentions with their devel header have to be installed. "
"If you do not want Odoo to connect with a super user "
"you can manually prepare your database. To do this"
"open a client to your database using a super user and run: \n"
"CREATE EXTENSION postgis;\n"
"CREATE EXTENSION postgis_topology;\n")

)
2 changes: 1 addition & 1 deletion base_geoengine/geo_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def geo_search(model, domain=None, geo_domain=None, offset=0,
sql = 'SELECT "%s".id FROM ' % model._table + from_clause + \
where_statement + order_by + limit_str + offset_str
# logger.debug(cursor.mogrify(sql, where_clause_params))

cr.execute(sql, where_clause_params)
res = cr.fetchall()
if res:
Expand Down

0 comments on commit 7899f9b

Please sign in to comment.