Skip to content

Commit

Permalink
fixup lng/lat being integers
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 5, 2024
1 parent 9b206a1 commit 5a30bbf
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ type EzpaarseLog struct {
}

type Quicksight struct {
Date string `json:"date"`
Domain string `json:"domain"`
City string `json:"city"`
Country string `json:"country"`
Latitude float64 `json:"lat"`
Longitude float64 `json:"lng"`
Region string `json:"region"`
Platform string `json:"platform"`
PlatformName string `json:"platform_name"`
PublisherName string `json:"publisher_name"`
Department string `json:"department"`
Role string `json:"role"`
Date string `json:"date"`
Domain string `json:"domain"`
City string `json:"city"`
Country string `json:"country"`
Latitude string `json:"lat"`
Longitude string `json:"lng"`
Region string `json:"region"`
Platform string `json:"platform"`
PlatformName string `json:"platform_name"`
PublisherName string `json:"publisher_name"`
Department string `json:"department"`
Role string `json:"role"`
}

// Function to check if a file exists
Expand Down Expand Up @@ -142,8 +142,8 @@ func main() {
continue
}

visitor.Latitude = lat
visitor.Longitude = lng
visitor.Latitude = fmt.Sprintf("%.6f", lat)
visitor.Longitude = fmt.Sprintf("%.6f", lng)

email := fmt.Sprintf("%[email protected]", strings.ToLower(log.Login))
filename := fmt.Sprintf("/tmp/%s.html", log.Login)
Expand Down

0 comments on commit 5a30bbf

Please sign in to comment.