Skip to content

Commit

Permalink
mise en commentaire lc_message change - tous les tests sont faux avec…
Browse files Browse the repository at this point in the history
… - A FAIRE
  • Loading branch information
Juliettejns committed Mar 6, 2024
1 parent f73b50c commit f341f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def create_app(config_name="dev"):
compress.init_app(app)
md = Markdown(app, safe_mode=True)
babel.init_app(app, locale_selector=get_locale)
if db.session.get_bind().dialect.name == "postgresql":
"""if db.session.get_bind().dialect.name == "postgresql":
lc_messages_query = db.session.execute(text("SHOW lc_messages;"))
psql_locale = lc_messages_query.fetchone()[0]
if psql_locale != "en_US.UTF-8":
warnings.warn("Your postgresql instance language is not english. Switching to English.")
db.session.execute(text("SET lc_messages TO 'en_US.UTF-8';"))
db.session.commit()
db.session.commit()"""
# Register Jinja template functions
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
Expand Down

0 comments on commit f341f9a

Please sign in to comment.