Ver código fonte

Require users to agree to license before starting the API

master
Morgan Bazalgette 2 anos atrás
pai
commit
741b1e0b9f
Acessado por: howl <the@howl.moe> ID da chave GPG: 40D328300D245DA5
2 arquivos alterados com 12 adições e 1 exclusões
  1. +6
    -1
      main.go
  2. +6
    -0
      vendor/vendor.json

+ 6
- 1
main.go Ver arquivo

@@ -6,6 +6,7 @@ import (
"strings"
"syscall"

"zxq.co/ripple/agplwarning"
"zxq.co/ripple/rippleapi/app"
"zxq.co/ripple/rippleapi/beatmapget"
"zxq.co/ripple/rippleapi/common"
@@ -30,6 +31,11 @@ func init() {
var db *sqlx.DB

func main() {
err := agplwarning.Warn("ripple", "Ripple API")
if err != nil {
fmt.Println(err)
}

fmt.Print("Ripple API")
if Version != "" {
fmt.Print("; git commit hash: ", Version)
@@ -51,7 +57,6 @@ func main() {
conf.DSN += c + "parseTime=true&charset=utf8mb4,utf8&collation=utf8mb4_general_ci"
}

var err error
db, err = sqlx.Open(conf.DatabaseType, conf.DSN)
if err != nil {
schiavo.Bunker.Send(err.Error())


+ 6
- 0
vendor/vendor.json Ver arquivo

@@ -182,6 +182,12 @@
"revision": "77ef7867f23cd52e80dcf97e62447d3b36b1d26a",
"revisionTime": "2016-10-17T20:25:41Z"
},
{
"checksumSHA1": "vTjp3tQOr8z8CNjZWwPzgR+t2qQ=",
"path": "zxq.co/ripple/agplwarning",
"revision": "d3a3d0ee424fcb0bd09a651354c1735285f59f8c",
"revisionTime": "2018-02-04T10:46:38Z"
},
{
"checksumSHA1": "SI9tgNMlnMhxP7t6cAGuDjvoAHg=",
"path": "zxq.co/ripple/ocl",


Carregando…
Cancelar
Salvar