From c0126bf5c7649f694dc90a7313763c5fcb1ad585 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Fri, 13 Apr 2018 09:54:38 +0200 Subject: [PATCH] Remove sed command from generate_fixtures --- scripts/generate_fixtures.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/generate_fixtures.py b/scripts/generate_fixtures.py index b3bcd2f..d224622 100644 --- a/scripts/generate_fixtures.py +++ b/scripts/generate_fixtures.py @@ -236,7 +236,6 @@ def dump(cols, tablename, where=''): subprocess.check_call('PGPASSWORD={pgpassword} PGUSER={pguser} PGHOST={pghost} PGDATABASE={pgdb} ' 'pg_dump -x --section=pre-data -t observatory.{tablename} ' ' | sed "s:SET search_path.*::" ' - ' | sed "s:CREATE TABLE :CREATE TABLE observatory.:" ' ' | sed "s:ALTER TABLE.*OWNER.*::" ' ' | sed "s:SET idle_in_transaction_session_timeout.*::" ' ' >> {outfile}'.format(