From 1346c522fde70219ffb588b80b68148a0aa7f273 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Sun, 8 Dec 2024 23:16:19 +0100 Subject: [PATCH] chore(event): adjust default config value --- cmd/backend/backend.go | 12 ++++++------ config/development.yaml | 2 +- internal/pkg/event/api.go | 2 -- internal/pkg/event/event.go | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/cmd/backend/backend.go b/cmd/backend/backend.go index 58a611b..6c464bc 100644 --- a/cmd/backend/backend.go +++ b/cmd/backend/backend.go @@ -31,17 +31,17 @@ func main() { zap.S().Fatal("DB: Fatal error\n", err) } - // // Tap - // _, _ = cmd.Tap(db) + // Tap + _, _ = cmd.Tap(db) // Zess _, _, _ = cmd.Zess(db) - // // Gamification - // _, _ = cmd.Gamification(db) + // Gamification + _, _ = cmd.Gamification(db) - // // Event - // _, _ = cmd.Event(db) + // Event + _, _ = cmd.Event(db) // Spotify spotify, err := cmd.Song(db) diff --git a/config/development.yaml b/config/development.yaml index 157510d..b4999e3 100644 --- a/config/development.yaml +++ b/config/development.yaml @@ -49,7 +49,7 @@ backend: - "-d0" event: - website: "https://zeus.gent/events" + website: "https://zeus.gent/events/" website_poster: "https://git.zeus.gent/ZeusWPI/visueel/raw/branch/master" interval_s: 3600 diff --git a/internal/pkg/event/api.go b/internal/pkg/event/api.go index 64ab0bb..7be8e1d 100644 --- a/internal/pkg/event/api.go +++ b/internal/pkg/event/api.go @@ -13,8 +13,6 @@ import ( "go.uber.org/zap" ) -// TODO: Look at https://github.com/PuerkitoBio/goquery - var layout = "Monday 02 January, 15:04 2006" func (e *Event) getEvents() ([]dto.Event, error) { diff --git a/internal/pkg/event/event.go b/internal/pkg/event/event.go index ca4ef5d..3b92975 100644 --- a/internal/pkg/event/event.go +++ b/internal/pkg/event/event.go @@ -23,7 +23,7 @@ type Event struct { func New(db *db.DB) *Event { return &Event{ db: db, - website: config.GetDefaultString("backend.event.website", "https://zeus.gent/events"), + website: config.GetDefaultString("backend.event.website", "https://zeus.gent/events/"), websitePoster: config.GetDefaultString("backend.event.website_poster", "https://git.zeus.gent/ZeusWPI/visueel/raw/branch/master"), } }