Walter Mantovani
commited on
Commit
·
fbf131f
1
Parent(s):
0629b7c
UPD
Browse files- Dockerfile +1 -2
- app.py +0 -1
Dockerfile
CHANGED
@@ -13,11 +13,10 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
13 |
RUN apt-get update
|
14 |
RUN apt-get install -y --no-install-recommends sqlite3 locales
|
15 |
|
|
|
16 |
RUN export LC_ALL="it_IT.UTF-8"
|
17 |
RUN export LC_CTYPE="it_IT.UTF-8"
|
18 |
-
# RUN dpkg-reconfigure locales
|
19 |
|
20 |
-
# Set the locale
|
21 |
RUN sed -i '/it_IT.UTF-8/s/^# //g' /etc/locale.gen && \
|
22 |
locale-gen
|
23 |
ENV LANG it_IT.UTF-8
|
|
|
13 |
RUN apt-get update
|
14 |
RUN apt-get install -y --no-install-recommends sqlite3 locales
|
15 |
|
16 |
+
# Set the locale (controllare se è tutto necessario!)
|
17 |
RUN export LC_ALL="it_IT.UTF-8"
|
18 |
RUN export LC_CTYPE="it_IT.UTF-8"
|
|
|
19 |
|
|
|
20 |
RUN sed -i '/it_IT.UTF-8/s/^# //g' /etc/locale.gen && \
|
21 |
locale-gen
|
22 |
ENV LANG it_IT.UTF-8
|
app.py
CHANGED
@@ -31,7 +31,6 @@ def get_dati_lotti():
|
|
31 |
lotti_data = []
|
32 |
for lotto in lotti: # Model objects
|
33 |
lotti_data.append(lotto.to_dict())
|
34 |
-
print(lotti_data)
|
35 |
return jsonify(lotti_data)
|
36 |
|
37 |
|
|
|
31 |
lotti_data = []
|
32 |
for lotto in lotti: # Model objects
|
33 |
lotti_data.append(lotto.to_dict())
|
|
|
34 |
return jsonify(lotti_data)
|
35 |
|
36 |
|