1. Darius Damalakas
  2. parasykjiems

Commits

Darius Damalakas  committed 49675da

Fixing silly mistake of using old institutionType code instead of new one

  • Participants
  • Parent commits 31b5abf
  • Branches default

Comments (0)

Files changed (2)

File cdb_lt/management/commands/createTerritories.py

View file
  • Ignore whitespace
 
         # create addresses for civilParish
         fileNames = [f[1] for f in ltGeoDataSources_Institution.civilParishAddresses]
-        importInstitutionTerritoryYielder(addressYielder=civilParishStreetReader(csvFileNames=fileNames, institutionNameGetter=makeCivilParishInstitutionName, cityNameGetter = cityNameGetterGenitive), institutionCode = "civpar")
+        importInstitutionTerritoryYielder(addressYielder=civilParishStreetReader(csvFileNames=fileNames, institutionNameGetter=makeCivilParishInstitutionName, cityNameGetter = cityNameGetterGenitive), institutionCode = InstitutionCivilparishMembers)
 
 
         importInstitutionTerritoryYielder(addressYielder=civilParishVilniusStreetReader(), institutionCode = InstitutionCivilparishMembers, **caches)

File territories/territoryImportUtils.py

View file
  • Ignore whitespace
                 if hasattr(addressYielder, "currentTerritoryInfo"):
                     moreInfo = addressYielder.currentTerritoryInfo()
 
-                self.missingInstitutions[institutionKey]=u"%s '%s'. More info: '%s'. Yielder: '%s'" % (rowNumber, institutionKey, moreInfo, addressYielder)
+                self.missingInstitutions[institutionKey]=u"%s '%s %s'. More info: '%s'. Yielder: '%s'" % (rowNumber, institutionKey, self.institutionCode, moreInfo, addressYielder)
                 continue
             institutionCode = institution.institutionType.code