Don't filter URLs

This commit is contained in:
Joakim Hellsén 2024-02-08 20:09:49 +01:00
commit b70b139c42
3 changed files with 1 additions and 104 deletions

View file

@ -25,7 +25,7 @@ func init() {
log.Println("Connected to database")
// Migrate the schema
err = db.AutoMigrate(&BadURLsMeta{}, &BadURLs{}, &Feed{}, &Item{}, &Person{}, &Image{}, &Enclosure{}, &DublinCoreExtension{}, &ITunesFeedExtension{}, &ITunesItemExtension{}, &ITunesCategory{}, &ITunesOwner{}, &Extension{})
err = db.AutoMigrate(&Feed{}, &Item{}, &Person{}, &Image{}, &Enclosure{}, &DublinCoreExtension{}, &ITunesFeedExtension{}, &ITunesItemExtension{}, &ITunesCategory{}, &ITunesOwner{}, &Extension{})
if err != nil {
panic("Failed to migrate the database")
}
@ -36,7 +36,6 @@ func main() {
// Scrape the bad URLs in the background
// TODO: Run this in a goroutine
scrapeBadURLs()
// Create a new router
r := chi.NewRouter()