From 8fe5a3d4d83f9f5b6ef005c410581480333b5103 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 11 Jul 2024 16:32:32 +0200 Subject: [PATCH] Adding locale debug and packages --- Dockerfile | 2 ++ changedetectionio/flask_app.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 626759cb..6641b947 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,8 @@ FROM python:${PYTHON_VERSION}-slim-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ libxslt1.1 \ + # For presenting price amounts correctly in the restock/price detection overview + locales \ # For pdftohtml poppler-utils \ zlib1g \ diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index f153714f..ee2143e2 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -85,6 +85,8 @@ notification_debug_log=[] # get locale ready default_locale = locale.getdefaultlocale() +logger.info(f"System locale default is {default_locale}") + locale.setlocale(locale.LC_ALL, default_locale) watch_api = Api(app, decorators=[csrf.exempt])