From d546a84659e462d018808e5470e52762df55a0d9 Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Sun, 18 Oct 2020 11:47:28 +0530 Subject: [PATCH] refactor: Make code more readable --- frappe/database/postgres/setup_db.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/database/postgres/setup_db.py b/frappe/database/postgres/setup_db.py index 9655b8c6ce..f53872db82 100644 --- a/frappe/database/postgres/setup_db.py +++ b/frappe/database/postgres/setup_db.py @@ -20,8 +20,10 @@ def setup_database(force, source_sql=None, verbose=False): source_sql = os.path.join(os.path.dirname(__file__), 'framework_postgres.sql') subprocess.check_output([ - 'psql', frappe.conf.db_name, '-h', frappe.conf.db_host or 'localhost', - '-p', str(frappe.conf.db_port or '5432'), '-U', frappe.conf.db_name, + 'psql', frappe.conf.db_name, + '-h', frappe.conf.db_host or 'localhost', + '-p', str(frappe.conf.db_port or '5432'), + '-U', frappe.conf.db_name, '-f', source_sql ], env=subprocess_env)