Skip to content

Commit

Permalink
bump dependencies and url
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Jan 7, 2024
1 parent 1e51f8a commit 387eb0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ zhconv==1.4.3
jinja2==3.1.2
coloredlogs==15.0.1
meilisearch==0.28.4
pillow==10.1.0
pillow==10.2.0
9 changes: 5 additions & 4 deletions yyetsweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import (
"database/sql"
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
_ "github.com/glebarez/go-sqlite"
log "github.com/sirupsen/logrus"
"io"
"net/http"
"os"
"path"
"strings"

"github.com/gin-gonic/gin"
_ "github.com/glebarez/go-sqlite"
log "github.com/sirupsen/logrus"
)

const dbFile = "yyets_sqlite.db"
Expand Down Expand Up @@ -216,7 +217,7 @@ func downloadDB() {
}

log.Infoln("Downloading database file...")
var downloadUrl = "https://yyets.click/dump/yyets_sqlite.zip"
var downloadUrl = "https://pub-74e4c4d2953c4e9e9f32204e472bafed.r2.dev/yyets_sqlite.zip"
resp, _ := http.Get(downloadUrl)
file, _ := os.Create("yyets_sqlite.zip")
_, _ = io.Copy(file, resp.Body)
Expand Down

0 comments on commit 387eb0e

Please sign in to comment.