Changeset a72d272 in osmose-backend


Ignore:
Timestamp:
Mar 16, 2014 7:42:30 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
a11ae37
Parents:
400b2f5
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (16/03/2014 19:41:47)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (16/03/2014 19:42:30)
Message:

Some minor code fix, on lower()

Location:
analysers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_merge_bicycle_rental_FR_cub.py

    r210b591 ra72d272  
    2222 
    2323from Analyser_Merge import Analyser_Merge 
    24 import re 
    2524 
    2625 
  • analysers/analyser_merge_parking_FR_cub.py

    rb78e78d ra72d272  
    119119            "ref:FR:CUB": "ident", 
    120120            "start_date": "parkings_donnees_année de mise en service", 
    121             "parking": lambda res: "surface" if "surface" in lower(res["parkings_donnees_type de construction"]) else "underground" if "enterré" in lower(res["parkings_donnees_type de construction"]) else None, 
     121            "parking": lambda res: "surface" if "surface" in res["parkings_donnees_type de construction"].lower() else "underground" if "enterré" in res["parkings_donnees_type de construction"].lower() else None, 
    122122            "levels": "parkings_donnees_nombre de niveaux", 
    123123            "capacity": "parkings_donnees_total places vl", 
  • analysers/analyser_merge_public_transport_FR_tbc.py

    rab1cbee ra72d272  
    9494        self.defaultTagMapping = { 
    9595            "name": lambda res: res['nomarret'], 
    96             "shelter": lambda res: "yes" if "abribus" in lower(res["mobile1"]) else "no" if "poteau" in lower(res["mobile1"]) else None, 
     96            "shelter": lambda res: "yes" if "abribus" in res["mobile1"].lower() else "no" if "poteau" in res["mobile1"].lower() else None, 
    9797        } 
    9898        self.conflationDistance = 100 
Note: See TracChangeset for help on using the changeset viewer.