Et l'ordre des variables est important.

This commit is contained in:
Pierre-Elliott Bécue 2015-03-30 17:08:10 +02:00
parent 3041a8ee16
commit 93ee03aee9

View file

@ -32,6 +32,11 @@ DEBUG = False
LDAP = shortcuts.lc_ldap_admin()
EPOCH = pytz.utc.localize(datetime.datetime(1970, 1, 1))
TZ = pytz.timezone('Europe/Paris')
DELTA = datetime.timedelta(0, upload.interval * 3600, 0)
CUR_DATE = TZ.normalize(TZ.localize(datetime.datetime.now()))
# Connection à la base sql via pgsql
PGSQL = psycopg2.connect(database='filtrage', user='crans')
PGSQL.set_session(autocommit=True)
@ -53,11 +58,6 @@ CURSEUR.execute(REQUETE, {
AVERTIS_UPLOAD_SOFT = CURSEUR.fetchall()
EPOCH = pytz.utc.localize(datetime.datetime(1970, 1, 1))
TZ = pytz.timezone('Europe/Paris')
DELTA = datetime.timedelta(0, upload.interval * 3600, 0)
CUR_DATE = TZ.normalize(TZ.localize(datetime.datetime.now()))
QUERY = """WITH
machines_sans_doublon
AS