From c75b880d974673e3b25594c26041005e1d0752bb Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 14 Sep 2023 10:44:45 +0200 Subject: [PATCH] regen --- server/backend/cron/movies.go | 7 ++++--- server/backend/migration/2023090410000000.go | 1 + server/backend/movie.go | 1 + server/backend/movie_test.go | 5 +++-- server/go.mod | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/server/backend/cron/movies.go b/server/backend/cron/movies.go index efd2d828..f0f72c19 100644 --- a/server/backend/cron/movies.go +++ b/server/backend/cron/movies.go @@ -5,14 +5,15 @@ import ( "encoding/json" "encoding/xml" "errors" - "github.com/PuerkitoBio/goquery" - "github.com/TUM-Dev/Campus-Backend/server/model" - log "github.com/sirupsen/logrus" "io" "net/http" "os" "strings" "time" + + "github.com/PuerkitoBio/goquery" + "github.com/TUM-Dev/Campus-Backend/server/model" + log "github.com/sirupsen/logrus" ) type MovieItems struct { diff --git a/server/backend/migration/2023090410000000.go b/server/backend/migration/2023090410000000.go index 6c003e7a..bbc6efca 100644 --- a/server/backend/migration/2023090410000000.go +++ b/server/backend/migration/2023090410000000.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/TUM-Dev/Campus-Backend/server/model" "github.com/go-gormigrate/gormigrate/v2" "github.com/guregu/null" diff --git a/server/backend/movie.go b/server/backend/movie.go index 0a02ff88..0d8b6a95 100644 --- a/server/backend/movie.go +++ b/server/backend/movie.go @@ -2,6 +2,7 @@ package backend import ( "context" + pb "github.com/TUM-Dev/Campus-Backend/server/api/tumdev" "github.com/TUM-Dev/Campus-Backend/server/model" log "github.com/sirupsen/logrus" diff --git a/server/backend/movie_test.go b/server/backend/movie_test.go index ecfcd248..c4c2dafc 100644 --- a/server/backend/movie_test.go +++ b/server/backend/movie_test.go @@ -3,6 +3,9 @@ package backend import ( "context" "database/sql" + "testing" + "time" + "github.com/DATA-DOG/go-sqlmock" pb "github.com/TUM-Dev/Campus-Backend/server/api/tumdev" "github.com/stretchr/testify/require" @@ -10,8 +13,6 @@ import ( "google.golang.org/protobuf/types/known/timestamppb" "gorm.io/driver/mysql" "gorm.io/gorm" - "testing" - "time" ) type MovieSuite struct { diff --git a/server/go.mod b/server/go.mod index 0caa3497..d2bc2eba 100644 --- a/server/go.mod +++ b/server/go.mod @@ -4,6 +4,7 @@ go 1.21 require ( github.com/DATA-DOG/go-sqlmock v1.5.0 + github.com/PuerkitoBio/goquery v1.8.0 github.com/disintegration/imaging v1.6.2 github.com/gabriel-vasile/mimetype v1.4.2 github.com/getsentry/sentry-go v0.23.0 @@ -30,7 +31,6 @@ require ( ) require ( - github.com/PuerkitoBio/goquery v1.8.0 // indirect github.com/andybalholm/cascadia v1.3.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect