Et l'ordre des variables est important.
This commit is contained in:
parent
3041a8ee16
commit
93ee03aee9
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue