add fallback apple list
This commit is contained in:
parent
df46e6f4bd
commit
53a2b91f9e
4 changed files with 11 additions and 25 deletions
|
@ -38,3 +38,12 @@ func LoadAppleList() error {
|
|||
log.Printf("DEBUG: loaded apple list of lenght: %v", len(AppleList))
|
||||
return nil
|
||||
}
|
||||
|
||||
func FallbackAppleList() {
|
||||
AppleList = []string{
|
||||
"Braeburn",
|
||||
"Gala",
|
||||
"Golden Delicious",
|
||||
"Honeycrisp",
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ func main() {
|
|||
err := config.LoadAppleList()
|
||||
if err != nil {
|
||||
logger.Error("could not load apple list", slog.Any("error", err))
|
||||
return
|
||||
config.FallbackAppleList()
|
||||
}
|
||||
|
||||
// permissions: Manage Channels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue