correction bug import DD MAIF PL
This commit is contained in:
@@ -1593,6 +1593,8 @@ def get_pdf_infos_sinapps_MAIF(extracted_file):
|
||||
societe = 'PE'
|
||||
elif 'MENUISERIE DUMAS' in line :
|
||||
societe = 'ME'
|
||||
elif 'VER SANIT' in line :
|
||||
societe = 'PL'
|
||||
else:
|
||||
societe = ''
|
||||
|
||||
@@ -1679,6 +1681,7 @@ def upload_om(request):
|
||||
def generer_mission(request, dem_info, temp_file_path):
|
||||
# import pdb;pdb.set_trace()
|
||||
societe = dem_info['societe']
|
||||
|
||||
if societe == '':
|
||||
return "Descriptif de travaux non prevu par le programme. Prévenir M. CAO."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user