update rules

This commit is contained in:
shoopea 2019-12-26 16:16:19 +08:00
parent f946ab28dd
commit 6ffed331b1
2 changed files with 118 additions and 318 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,17 @@ import (
"strconv"
)
func resetMsgParsingRules2() error {
_, err := db.Exec(`TRUNCATE TABLE msg_rules;`)
failOnError(err, "resetMsgParsingRules2 : truncate table msg_rules")
if err != nil {
return err
}
return nil
}
func resetMsgParsingRules() {
_, err := db.Exec(`TRUNCATE TABLE msg_rules;`)
failOnError(err, "resetMsgParsingRules : truncate table msg_rules")