Changeset 8784 for main


Ignore:
Timestamp:
24 Jun 2012, 08:24:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Improve lga conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/tools/fix_import_file.py

    r8781 r8784  
    208208        try:
    209209            value = value.replace("'","")
    210             value = value.lower()
    211210        except:
    212211            return ''
    213         if value in LGAS_dict.keys():
    214             return value
     212        lower = value.lower()
     213        if lower in LGAS_dict.keys():
     214            return lower
    215215        # If real names are given, let's see if a similar value
    216216        # in LGAS exist.
    217         value = LGAS_inverted_stripped.get(strip(value), value)
     217        value = LGAS_inverted_stripped.get(strip(lower), value)
    218218        return value
    219219
Note: See TracChangeset for help on using the changeset viewer.