Skip to content
Snippets Groups Projects
Commit ef1a4d32 authored by Radek Puš's avatar Radek Puš
Browse files

přidána podmínka u program.cs pro reinicializaci konstantní symbolů

parent 44609b24
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment