Do not log breaks
This commit is contained in:
@@ -22,6 +22,8 @@ var Api api
|
|||||||
type api struct {}
|
type api struct {}
|
||||||
|
|
||||||
func (api) CallApi(date string, from_time string, to_time string, item_id string, description string) error {
|
func (api) CallApi(date string, from_time string, to_time string, item_id string, description string) error {
|
||||||
|
if item_id == "break" || item_id == "lunch" || item_id == "pauze" { return nil }
|
||||||
|
|
||||||
time1, err := time.Parse("15:04", from_time)
|
time1, err := time.Parse("15:04", from_time)
|
||||||
if err != nil { return fmt.Errorf("error parsing from_time: %s", err) }
|
if err != nil { return fmt.Errorf("error parsing from_time: %s", err) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user