1
This commit is contained in:
Alex Yatskov 2017-09-12 13:51:49 -07:00
parent 6cb74cc8c1
commit 120dd6ba05
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ import (
"strings"
)
const databaseVersion = 2
const databaseVersion = 1
type dbRecord []interface{}
type dbRecordList []dbRecord

View File

@ -67,6 +67,10 @@ func frequncyExportDb(inputPath, outputPath, language, title string, stride int,
frequencies = append(frequencies, dbFrequency{expression, count})
}
if title == "" {
title = "Frequency"
}
recordData := map[string]dbRecordList{
key: frequencies.crush(),
}