Skip to content

Commit

Permalink
Fix data type for AvailableCapacity (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
  • Loading branch information
PrasadG193 committed May 3, 2021
1 parent 8dcab71 commit eda8782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Appointments struct {
Sessions []struct {
SessionID string `json:"session_id"`
Date string `json:"date"`
AvailableCapacity int `json:"available_capacity"`
AvailableCapacity float64 `json:"available_capacity"`
MinAgeLimit int `json:"min_age_limit"`
Vaccine string `json:"vaccine"`
Slots []string `json:"slots"`
Expand Down Expand Up @@ -200,7 +200,7 @@ func getAvailableSessions(response []byte, age int) error {
return err
}
if buf.Len() == 0 {
log.Print("No slots available, rechecking")
log.Print("No slots available, rechecking after 3 mins")
return nil
}
log.Print("Found available slots, sending email")
Expand Down

0 comments on commit eda8782

Please sign in to comment.