From ac83188bc8bff47e457ecd0309a74ae30279a9d8 Mon Sep 17 00:00:00 2001 From: RDeck Date: Fri, 24 Oct 2025 09:48:08 -0400 Subject: [PATCH] ! --- ClassObj/ClsDobbsEmail_T1439.cs | 2 +- Program.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ClassObj/ClsDobbsEmail_T1439.cs b/ClassObj/ClsDobbsEmail_T1439.cs index 5ed77fc..3895992 100644 --- a/ClassObj/ClsDobbsEmail_T1439.cs +++ b/ClassObj/ClsDobbsEmail_T1439.cs @@ -54,7 +54,7 @@ internal class ClsDobbsEmail_T1439 : IDisposable { bool? ReportDueNow = false; - ReportDueNow = cn.ExecuteScalar("Select Top 1 [NeedToSend] From [crpt].[Dobbs_EmailContestCalendar] Where [SendReport]=@Today", new { Today = DateTime.Today }); + ReportDueNow = DebugMode || cn.ExecuteScalar("Select Top 1 [NeedToSend] From [crpt].[Dobbs_EmailContestCalendar] Where [SendReport]=@Today", new { Today = DateTime.Today }); if (ReportDueNow.HasValue && ReportDueNow.Value) { cn.Open(); diff --git a/Program.cs b/Program.cs index 7586909..8eac4a1 100644 --- a/Program.cs +++ b/Program.cs @@ -24,10 +24,9 @@ internal class Program if (Debugger.IsAttached) { - using (var obj = new ClsDobbsEmail_T1439() { DebugMode = false }) + using (var obj = new ClsDobbsEmail_T1439() { DebugMode = true }) { obj.Go(); - obj.Go(); } } else