You can now add feeds to the database
This commit is contained in:
parent
1fa8351d11
commit
a5b6352a4c
24 changed files with 1049 additions and 20 deletions
9
html.go
9
html.go
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
|
|
@ -165,7 +166,13 @@ func buildErrorList(parseResults []ParseResult) string {
|
|||
|
||||
func FullHTML(h HTMLData) string {
|
||||
statusMsg := buildErrorList(h.ParseResult)
|
||||
feedCount := 0
|
||||
|
||||
feedCount, err := DB.CountFeeds(context.Background())
|
||||
if err != nil {
|
||||
log.Fatalf("DB.CountFeeds(): %v", err)
|
||||
feedCount = 0
|
||||
}
|
||||
|
||||
databaseSize, err := GetDBSize()
|
||||
if err != nil {
|
||||
databaseSize = "0 KiB"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue