Projet

Général

Profil

0001-mdel-ignore-case-when-searching-for-response-files-2.patch

Josué Kouka, 17 juillet 2018 17:03

Télécharger (1,73 ko)

Voir les différences:

Subject: [PATCH] mdel: ignore case when searching for response files (#24912)

 passerelle/contrib/mdel/models.py                   |   2 +-
 .../{102-2-AEC-LA--1.zip => 102-2-aec-la--1.zip}    | Bin
 .../{102-2-AEC-LA--4.zip => 102-2-aec-la--4.zip}    | Bin
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename tests/data/mdel/test/outputs/{102-2-AEC-LA--1.zip => 102-2-aec-la--1.zip} (100%)
 rename tests/data/mdel/test/outputs/{102-2-AEC-LA--4.zip => 102-2-aec-la--4.zip} (100%)
passerelle/contrib/mdel/models.py
321 321
                                  'outputs')
322 322

  
323 323
        zfiles = [zfile for zfile in os.listdir(output_dir)
324
                  if zfile.startswith(self.demand_id) and zfile.endswith('.zip')]
324
                  if zfile.lower().startswith(self.demand_id.lower()) and zfile.endswith('.zip')]
325 325

  
326 326
        def fnum(zfile):
327 327
            """Returns response's file number