This commit is contained in:
parent
e8e715aa37
commit
e15992e865
@ -20,6 +20,8 @@ func Check() {
|
|||||||
|
|
||||||
apiUrl := fmt.Sprintf("%s/api/v1/repos/%s/%s/releases/latest", baseUrl, repoOwner, repoName)
|
apiUrl := fmt.Sprintf("%s/api/v1/repos/%s/%s/releases/latest", baseUrl, repoOwner, repoName)
|
||||||
|
|
||||||
|
log.Info("Initiating PIS Check")
|
||||||
|
|
||||||
resp, err := http.Get(apiUrl)
|
resp, err := http.Get(apiUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Error GETting Gitea API", zap.Error(err))
|
log.Error("Error GETting Gitea API", zap.Error(err))
|
||||||
|
@ -9,10 +9,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.fjla.uk/owlboard/timetable-mgr/dbAccess"
|
|
||||||
"git.fjla.uk/owlboard/timetable-mgr/log"
|
|
||||||
"go.uber.org/zap"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -50,7 +46,7 @@ func runUpdate(tarballUrl string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(&pisSlice)
|
fmt.Println(&pisSlice)
|
||||||
|
/*
|
||||||
err = dbAccess.DropCollection(dbAccess.PisCollection)
|
err = dbAccess.DropCollection(dbAccess.PisCollection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -67,7 +63,7 @@ func runUpdate(tarballUrl string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed to create PIS Indeces, poor performance expected", zap.Error(err))
|
log.Error("Failed to create PIS Indeces, poor performance expected", zap.Error(err))
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// Cleanup files
|
// Cleanup files
|
||||||
cleanupFiles(destPath, extractPath)
|
cleanupFiles(destPath, extractPath)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user