set locale
authorJulien Rabier <taziden@flexiden.org>
Tue, 22 May 2012 22:06:06 +0000 (00:06 +0200)
committerJulien Rabier <taziden@flexiden.org>
Tue, 22 May 2012 22:06:06 +0000 (00:06 +0200)
main.py

diff --git a/main.py b/main.py
index 036352a..bd87c9a 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -5,6 +5,8 @@ from flask import Flask, request, session, g, redirect, url_for, abort, \
     render_template, flash
 import sqlite3
 from datetime import date, timedelta
+import locale
+locale.setlocale(locale.LC_ALL, '')
 
 DATABASE = '/tmp/cavote.db'
 SECRET_KEY = '{J@uRKO,xO-PK7B,jF?>iHbxLasF9s#zjOoy=+:'