Skip to content

Commit

Permalink
minor fix on meeting days
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Feb 3, 2025
1 parent c0f8dad commit 8e9f515
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ClientAdvisor/App/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,9 @@ def get_users():
"""select DATEDIFF(d,CAST(max(StartTime) AS Date),CAST(GETDATE() AS Date)) + 3 as ndays from ClientMeetings"""
)
meeting_rows = cursor.fetchall()
ndays = meeting_rows[0].get("ndays")
ndays = 0
for row in meeting_rows:
ndays = row["ndays"]

client_update_stmt = f"UPDATE ClientMeetings SET StartTime = dateadd(day,{ndays},StartTime), EndTime = dateadd(day,{ndays},EndTime)"
cursor.execute(client_update_stmt)
Expand Down

0 comments on commit 8e9f515

Please sign in to comment.