mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Define a constant instead of duplicating this literal' reported by SonarQube.
This commit is contained in:
@@ -16,6 +16,7 @@ from pgadmin.utils import PgAdminModule
|
||||
from pgadmin.utils.csrf import pgCSRFProtect
|
||||
from pgadmin.utils.session import cleanup_session_files
|
||||
from pgadmin.misc.themes import get_all_themes
|
||||
from pgadmin.utils.constants import MIMETYPE_APP_JS
|
||||
import config
|
||||
from werkzeug.exceptions import InternalServerError
|
||||
|
||||
@@ -146,7 +147,7 @@ def explain_js():
|
||||
_=gettext
|
||||
),
|
||||
status=200,
|
||||
mimetype="application/javascript"
|
||||
mimetype=MIMETYPE_APP_JS
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user