pull/1/head
vilmibm 2022-07-30 13:42:33 +00:00
parent 8138733bd1
commit 9464d393e3
3 changed files with 5 additions and 5 deletions

View File

@ -10,8 +10,6 @@ import (
townUser "git.tilde.town/tildetown/town/user"
)
const requestPath = "/town/requests"
func _main(args []string) error {
currentUser, err := user.Current()
if err != nil {
@ -28,12 +26,12 @@ func _main(args []string) error {
errs := []error{}
err = request.ProcessGitea(requestPath)
err = request.ProcessGitea(request.RequestPath)
if err != nil {
errs = append(errs, err)
}
err = request.ProcessGemini(requestPath)
err = request.ProcessGemini(request.RequestPath)
if err != nil {
errs = append(errs, err)
}

View File

@ -25,7 +25,7 @@ func ProcessGitea(rp string) error {
return errors.New("need GITEA_TOKEN")
}
gtPath := filepath.Join(requestPath, "gitea")
gtPath := filepath.Join(RequestPath, "gitea")
files, err := ioutil.ReadDir(gtPath)
if err != nil {

View File

@ -1 +1,3 @@
package request
const RequestPath = "/town/requests"