From 5dde12849f877ec4f59587f51fd16d25be18e349 Mon Sep 17 00:00:00 2001 From: Phuoc CAO Date: Tue, 26 Mar 2019 06:38:28 +0100 Subject: [PATCH] link c:\devfac14 <-> \\srvtse\devfac14 --- mondumas/models/dossier.py | 2 +- mondumas/static/link2DEVFAC14.txt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mondumas/models/dossier.py b/mondumas/models/dossier.py index a6b490e..eb13abf 100644 --- a/mondumas/models/dossier.py +++ b/mondumas/models/dossier.py @@ -141,7 +141,7 @@ def get_docs_attaches(request, nodossier, norapport, filename): nochantier = int(nodossier[3:]) if filename == '': - query = "SELECT * FROM dossier_attaches WHERE nomrep = 'DOCS_ATTACHES' AND societe = :societe AND nochantier = :nochantier ORDER BY cree_le;" + query = "SELECT * FROM dossier_attaches WHERE nomrep = 'DOCS_ATTACHES' AND societe = :societe AND nochantier = :nochantier AND nodossier=0 ORDER BY cree_le;" else: query = """SELECT * FROM dossier_attaches WHERE nomrep = 'DOCS_ATTACHES' AND societe = :societe AND nochantier = :nochantier AND nodossier = :norapport AND nomfichier = :filename ORDER BY cree_le;""" diff --git a/mondumas/static/link2DEVFAC14.txt b/mondumas/static/link2DEVFAC14.txt index a22bfd8..0998e46 100644 --- a/mondumas/static/link2DEVFAC14.txt +++ b/mondumas/static/link2DEVFAC14.txt @@ -1,5 +1,7 @@ -- Windows 10, lecteur local mklink /J DEVFAC C:\DEVFAC14 --- Windows server, lecteur réseau -mklink /D DEVFAC \\SRVTSE\DEVFAC14 +-- Windows server, lecteur r�seau +dans le dossier static : mklink /D DEVFAC \\SRVTSE\DEVFAC14 +dans le dossier c:\ : mklink /D DEVFAC14 \\SRVTSE\DEVFAC14 +