Finalizing TPCSVImporter with AccountActions method

This commit is contained in:
DanB
2013-07-30 19:35:20 +02:00
parent c60b26c0c4
commit 2f733525b2
2 changed files with 33 additions and 1 deletions

View File

@@ -769,7 +769,7 @@ func (self *SQLStorage) SetTPAccountActions(tpid string, aa map[string]*AccountA
utils.TBL_TP_ACCOUNT_ACTIONS)
i := 0
for aaId, aActs := range aa {
if i != 1 { //Consecutive values after the first will be prefixed with "," as separator
if i != 0 { //Consecutive values after the first will be prefixed with "," as separator
qry += ","
}
qry += fmt.Sprintf("('%s','%s','%s','%s','%s','%s','%s')",