diff --git a/Core/DataObjects/PTMagicData.cs b/Core/DataObjects/PTMagicData.cs index 27fe0fd..245199a 100644 --- a/Core/DataObjects/PTMagicData.cs +++ b/Core/DataObjects/PTMagicData.cs @@ -156,7 +156,6 @@ namespace Core.Main.DataObjects.PTMagicData { public string SettingName { get; set; } public string TriggerConnection { get; set; } = "AND"; - public string TriggerLogic { get; set; } = ""; public List Triggers { get; set; } = new List(); public Dictionary PairsProperties { get; set; } = new Dictionary(); public Dictionary DCAProperties { get; set; } = new Dictionary(); diff --git a/Core/Main/PTMagic.cs b/Core/Main/PTMagic.cs index 28b5b56..c9103d4 100644 --- a/Core/Main/PTMagic.cs +++ b/Core/Main/PTMagic.cs @@ -1408,15 +1408,15 @@ namespace Core.Main else { // New logic - string triggerLogic = globalSetting.TriggerConnection; + string triggerConnection = globalSetting.TriggerConnection; foreach (var triggerResult in triggerResults) { - triggerLogic = triggerLogic.Replace(triggerResult.Key, triggerResult.Value.ToString().ToLower()); + triggerConnection = triggerConnection.Replace(triggerResult.Key, triggerResult.Value.ToString().ToLower()); } try { - bool settingTriggered = (bool)System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(System.Linq.Dynamic.Core.ParsingConfig.Default, new ParameterExpression[0], typeof(bool), triggerLogic).Compile().DynamicInvoke(); + bool settingTriggered = (bool)System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(System.Linq.Dynamic.Core.ParsingConfig.Default, new ParameterExpression[0], typeof(bool), triggerConnection).Compile().DynamicInvoke(); // Setting got triggered -> Activate it! if (settingTriggered) diff --git a/Monitor/Pages/ManageSMS.cshtml b/Monitor/Pages/ManageSMS.cshtml index f854257..1cd038e 100644 --- a/Monitor/Pages/ManageSMS.cshtml +++ b/Monitor/Pages/ManageSMS.cshtml @@ -30,7 +30,7 @@ @sms: @smsCount     } @if (Model.PTMagicConfiguration.GeneralSettings.Monitor.IsPasswordProtected) { - Reset ALL Single MarketSettings + Reset ALL Single MarketSettings } else { Delete File } @@ -202,7 +202,7 @@ @@ -236,41 +236,64 @@ @section Scripts { diff --git a/Monitor/Pages/ManageSMS.cshtml.cs b/Monitor/Pages/ManageSMS.cshtml.cs index cf142a7..60d3bb3 100644 --- a/Monitor/Pages/ManageSMS.cshtml.cs +++ b/Monitor/Pages/ManageSMS.cshtml.cs @@ -46,7 +46,6 @@ namespace Monitor.Pages string webRootParent = Directory.GetParent(_hostingEnvironment.WebRootPath).FullName; string ptMagicRoot = Directory.GetParent(webRootParent).FullName; string analyzerStatePath = Path.Combine(ptMagicRoot, "_data", "AnalyzerState"); - Console.WriteLine("analyzerStatePath: " + analyzerStatePath); // Read the AnalyzerState file if (System.IO.File.Exists(analyzerStatePath))