refactor: Make code more readable

This commit is contained in:
Suraj Shetty 2020-10-18 11:47:28 +05:30 committed by GitHub
parent cbf815f25b
commit d546a84659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)