Code clean-up (make fmt)
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
ca8cfffc24
commit
fe705bb512
|
@ -21,7 +21,6 @@ ORDER BY loc_country, album_name, taken_year;
|
|||
|
||||
*/
|
||||
|
||||
|
||||
// Photo location
|
||||
type Location struct {
|
||||
ID uint64
|
||||
|
|
|
@ -86,6 +86,7 @@ func TestOSM_State(t *testing.T) {
|
|||
assert.Equal(t, "Berlin", l.State())
|
||||
})
|
||||
}
|
||||
|
||||
/*
|
||||
func TestOSM_City(t *testing.T) {
|
||||
t.Run("Berlin", func(t *testing.T) {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/colors"
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/photoprism/photoprism/internal/colors"
|
||||
)
|
||||
|
||||
func TestMediaFile_Colors_Testdata(t *testing.T) {
|
||||
|
|
|
@ -12,8 +12,6 @@ type CategoryLabel struct {
|
|||
func (s *Repo) CategoryLabels(limit, offset int) (results []CategoryLabel) {
|
||||
q := s.db.NewScope(nil).DB()
|
||||
|
||||
// q.LogMode(true)
|
||||
|
||||
q = q.Table("categories").
|
||||
Select("label_name AS name").
|
||||
Joins("JOIN labels l ON categories.category_id = l.id").
|
||||
|
|
Loading…
Reference in a new issue