From 387eb0e7cb3a6335bc3d3729b5b1011f7075f708 Mon Sep 17 00:00:00 2001 From: Benny Date: Sun, 7 Jan 2024 15:10:00 +0100 Subject: [PATCH] bump dependencies and url --- requirements.txt | 2 +- yyetsweb/server.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index e76585f..a9e3a28 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/yyetsweb/server.go b/yyetsweb/server.go index cf1cfc7..69fc8e0 100644 --- a/yyetsweb/server.go +++ b/yyetsweb/server.go @@ -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" @@ -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)