From eb2b5fe71df115bcd202866b1f972adac7ef42b5 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Wed, 28 Jan 2026 16:10:00 +0530 Subject: [PATCH] refactor: leaner description and reduced noise --- frappe/commands/site.py | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/frappe/commands/site.py b/frappe/commands/site.py index 29fbc25cbb..4b648dbae8 100644 --- a/frappe/commands/site.py +++ b/frappe/commands/site.py @@ -90,30 +90,18 @@ def new_site( from frappe.installer import _new_site frappe.init(site, new_site=True) - - if db_type == "postgres": + db_labels = { + "postgres": "PostgreSQL", + "sqlite": "SQLite", + } + if db_type in db_labels: click.secho( - "\nKindly Note: PostgreSQL support is currently in development and considered experimental.", + f"\nNote: {db_labels[db_type]} support is currently in development and considered experimental.", fg="yellow", bold=True, ) click.secho( - "We are actively fixing schema and performance issues. If you encounter any bugs,\n" - "please feel free to report them with a full traceback at:\n" - "https://github.com/frappe/frappe/issues\n", - fg="cyan", - ) - - if db_type == "sqlite": - click.secho( - "\nKindly Note: SQLite support is currently in development and considered experimental.", - fg="yellow", - bold=True, - ) - click.secho( - "We are actively fixing schema and performance issues. If you encounter any bugs,\n" - "please feel free to report them with a full traceback at:\n" - "https://github.com/frappe/frappe/issues\n", + "Please report issues with a full traceback here:\nhttps://github.com/frappe/frappe/issues\n", fg="cyan", )