Compare commits

..

2 Commits

2 changed files with 7 additions and 3 deletions

View File

@@ -135,10 +135,10 @@ func basePrice(code string) Price {
return 1 return 1
} }
switch code[:2] { switch code[:2] {
case "60", "30", "68", "00", "92", "43": case "60", "30", "68", "00", "92", "43", "39":
return 1 return 1
default: default:
return 10 return 1
} }
} }

View File

@@ -119,6 +119,10 @@ func (this *Workday) Update() error {
} }
} }
if len(inserts) == 0 {
return nil
}
_, err = this.db.Insert(inserts) _, err = this.db.Insert(inserts)
return err return err