Fix for unsplash pic paths

This commit is contained in:
Hamcha 2021-11-04 14:12:07 +01:00
parent 9cd2a8bf2b
commit 66b7d37028
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -10,6 +10,7 @@ import (
"log"
"math/rand"
"os"
"path/filepath"
"strings"
"git.fromouter.space/crunchy-rocks/draw2d"
@ -42,7 +43,7 @@ func unsplash_init() {
assert(err)
for _, file := range files {
pics = append(pics, file.Name())
pics = append(pics, filepath.Join(*unsplashpath, file.Name()))
}
log.Println("[unsplash] Loaded!")