- removed precompiled styles and testing html

- fixed test
- added checks for events that have empty fights
- some renaming
This commit is contained in:
2025-04-22 20:10:00 -05:00
parent 6c7d4610bd
commit 741a4cab05
21 changed files with 86 additions and 50860 deletions
+5 -4
View File
@@ -56,7 +56,8 @@ func main() {
cmd := flag.Args()[0]
client := NewScraperClient()
queries, err := InitDb("db.sqlite")
db, err := InitDb("db.sqlite")
if err != nil {
slog.Error("Failed initializing database", "error", err)
return
@@ -66,14 +67,14 @@ func main() {
case "runserver":
if !*noscraping {
slog.Debug("Starting scraping loop")
go ScrapeEventsLoop(queries, client, !*notapology)
go ScrapeEventsLoop(db, client, !*notapology)
}
err = RunServer(*host, queries)
err = RunServer(*host, db)
if err != nil {
slog.Error("Error starting web server:", "error", err)
}
case "scrape":
ScrapeEvents(queries, client, !*notapology)
ScrapeEvents(db, client, !*notapology)
default:
fmt.Print(POSITIONAL_ARGS_HELP)
os.Exit(1)