From 0ac3cc76b4b6c824c4b3f7a357d40b487984abfb Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 9 May 2024 22:33:42 +0200 Subject: Inject examples only with new --example flag The default use case should be to not inject example recipes. --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 90a29e3..6d6467a 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,11 @@ func main() { model.ConnectDatabase(filepath.Join(storage.Path, "ceres.sqlite3")) defer model.DisconnectDatabase() model.MigrateDatabase(version) - model.InjectTestRecipes() + + if injectExamples { + model.InjectExampleRecipes() + log.Println("Added example recipes") + } server := NewServer(config.HttpAddress) go server.Start() -- cgit v1.2.3-70-g09d2