fixed lcr csv order and started lcr docs

This commit is contained in:
Radu Ioan Fericean
2015-04-07 13:59:21 +03:00
parent 25a1858eac
commit 27f7e6d9ca
4 changed files with 10 additions and 3 deletions

View File

@@ -609,7 +609,7 @@ func (csvr *CSVReader) LoadLCRs() (err error) {
defer fp.Close()
}
for record, err := csvReader.Read(); err == nil; record, err = csvReader.Read() {
tenant, category, direction, account, subject := record[0], record[1], record[2], record[3], record[4]
direction, tenant, category, account, subject := record[0], record[1], record[2], record[3], record[4]
id := utils.LCRKey(direction, tenant, category, account, subject)
lcr, found := csvr.lcrs[id]
activationTime, err := utils.ParseTimeDetectLayout(record[9])