From d98f6d1a0496f1521c293fa85f4abdfaaddeeef6 Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Fri, 15 Nov 2024 18:49:10 +0530 Subject: [PATCH] unit test issue fix --- ClientAdvisor/App/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ClientAdvisor/App/app.py b/ClientAdvisor/App/app.py index ba1bc949..e8221243 100644 --- a/ClientAdvisor/App/app.py +++ b/ClientAdvisor/App/app.py @@ -1592,6 +1592,7 @@ def get_users(): """select DATEDIFF(d,CAST(max(StartTime) AS Date),CAST(GETDATE() AS Date)) + 3 as ndays from ClientMeetings""" ) rows = cursor.fetchall() + ndays = 0 for row in rows: ndays = row["ndays"] sql_stmt1 = f"UPDATE ClientMeetings SET StartTime = dateadd(day,{ndays},StartTime), EndTime = dateadd(day,{ndays},EndTime)"