From ef1a4d3288296d3f1c25b10b0fa9ad7db2841333 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Pu=C5=A1?= <pusradek@fit.cvut.cz>
Date: Tue, 24 Dec 2019 04:33:18 +0100
Subject: [PATCH] =?UTF-8?q?p=C5=99id=C3=A1na=20podm=C3=ADnka=20u=20program?=
 =?UTF-8?q?.cs=20pro=20reinicializaci=20konstantn=C3=AD=20symbol=C5=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Core/Core/Program.cs | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Core/Core/Program.cs b/Core/Core/Program.cs
index 68ee168..38e24b7 100644
--- a/Core/Core/Program.cs
+++ b/Core/Core/Program.cs
@@ -7,6 +7,7 @@ using Core.AI.Categorization;
 using Core.AI.NetworkLogic;
 using Core.AI.Repetitivness;
 using Core.BusinessLogic.ImportCSVLogic;
+using Core.BusinessLogic.TransactionContextOperations;
 using Core.Data;
 using Microsoft.AspNetCore;
 using Microsoft.AspNetCore.Hosting;
@@ -24,11 +25,12 @@ namespace Core
             const bool initDB = false; //initialization of database
             const bool rebuildDB = false; // drop database; executes only if initDB = true
 
-            const bool runClientApp = false;//run ClientApp
+            const bool runClientApp = true;//run ClientApp
             const bool computeCategories = false; //K-means
             const bool repetitiveTransaction = false;
             const bool trainAI = false;
-            const bool testCSV = true;
+            const bool testCSV = false;
+            const bool fillConstantSymbols = false;
 
             IWebHost host = CreateWebHostBuilder(args).Build();
             IServiceProvider services = host.Services.CreateScope().ServiceProvider;
@@ -57,6 +59,9 @@ namespace Core
             if (initDB)
                 InitDatabase(services, rebuildDB);
 
+            if (fillConstantSymbols)
+                new ConstantSymbolOperations(services.GetRequiredService<Model>()).FillAll();
+
 
             if(runClientApp)
                 host.Run();
-- 
GitLab