Skip to content

Commit

Permalink
Merge pull request #1438 from henrykironde/spatiallines
Browse files Browse the repository at this point in the history
Remove the newline in the statement
  • Loading branch information
ethanwhite committed Mar 3, 2020
2 parents 26e321c + 655744c commit be301cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions retriever/engines/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def insert_raster(self, path=None, srid=4326):
path=os.path.normpath(path),
SCHEMA_DBTABLE=self.table_name()))

cmd_string = """ | psql -U {USER} -d {DATABASE} --port {PORT}
--host {HOST} > {nul_dev} """.format(
cmd_string = " | psql -U {USER} -d {DATABASE} " \
"--port {PORT} --host {HOST} > {nul_dev} ".format(
USER=self.opts["user"],
DATABASE=self.opts["database"],
PORT=self.opts["port"],
Expand Down Expand Up @@ -221,8 +221,8 @@ def insert_vector(self, path=None, srid=4326):
SCHEMA_DBTABLE=self.table_name(),
))

cmd_string = """ | psql -U {USER} -d {DATABASE} --port {PORT}
--host {HOST} > {nul_dev} """.format(
cmd_string = " | psql -U {USER} -d {DATABASE} --port {PORT} " \
"--host {HOST} > {nul_dev} ".format(
USER=self.opts["user"],
DATABASE=self.opts["database"],
PORT=self.opts["port"],
Expand Down

0 comments on commit be301cf

Please sign in to comment.