diff --git a/internal/entity/file.go b/internal/entity/file.go index 0fbea45e5..70afdf07a 100644 --- a/internal/entity/file.go +++ b/internal/entity/file.go @@ -226,5 +226,5 @@ func (m *File) Panorama() bool { return false } - return m.FileProjection != ProjectionDefault || m.FileWidth / m.FileHeight > 2 + return m.FileProjection != ProjectionDefault || m.FileWidth/m.FileHeight > 2 } diff --git a/internal/form/photo.go b/internal/form/photo.go index f4fe5c7ab..ef1155722 100644 --- a/internal/form/photo.go +++ b/internal/form/photo.go @@ -36,7 +36,7 @@ type Photo struct { PhotoPrivate bool `json:"Private"` PhotoReview bool `json:"Review"` PhotoScan bool `json:"Scan"` - PhotoPanorama bool `json:"Panorama"` + PhotoPanorama bool `json:"Panorama"` PhotoAltitude int `json:"Altitude"` PhotoLat float32 `json:"Lat"` PhotoLng float32 `json:"Lng"` diff --git a/internal/maps/location_test.go b/internal/maps/location_test.go index f3d934436..b3eab81cc 100644 --- a/internal/maps/location_test.go +++ b/internal/maps/location_test.go @@ -176,10 +176,10 @@ func TestLocation_Assign(t *testing.T) { lat := -21.976301666666668 lng := 49.148046666666666 id := s2.Token(lat, lng) - log.Printf("ID: %s", id) + // log.Printf("ID: %s", id) o, err := places.FindLocation(id) - log.Printf("Output: %+v", o) + // log.Printf("Output: %+v", o) if err != nil { t.Fatal(err) diff --git a/pkg/txt/convert.go b/pkg/txt/convert.go index 7a30ee63e..2bcd7adbc 100644 --- a/pkg/txt/convert.go +++ b/pkg/txt/convert.go @@ -1,7 +1,6 @@ package txt import ( - "fmt" "regexp" "strconv" "strings" @@ -116,7 +115,6 @@ func Time(s string) (result time.Time) { time.UTC) } else if found := DatePathRegexp.Find(b); len(found) > 0 { // Is it a date path like "2020/01/03"? n := DateIntRegexp.FindAll(found, -1) - fmt.Println(n) if len(n) < 2 || len(n) > 3 { return result