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