Skip to content

Commit

Permalink
chore(event): adjust default config value
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Dec 10, 2024
1 parent 26347ea commit f10bf58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions cmd/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion config/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions internal/pkg/event/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}
Expand Down

0 comments on commit f10bf58

Please sign in to comment.