diff --git a/ClientAdvisor/App/app.py b/ClientAdvisor/App/app.py index a50661b..e822124 100644 --- a/ClientAdvisor/App/app.py +++ b/ClientAdvisor/App/app.py @@ -55,7 +55,6 @@ def create_app(): app.config["TEMPLATES_AUTO_RELOAD"] = True # app.secret_key = secrets.token_hex(16) # app.session_interface = SecureCookieSessionInterface() - # print(app.secret_key) return app @@ -1593,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)" diff --git a/ClientAdvisor/App/requirements.txt b/ClientAdvisor/App/requirements.txt index 1cd1240..bb5d5a8 100644 --- a/ClientAdvisor/App/requirements.txt +++ b/ClientAdvisor/App/requirements.txt @@ -5,7 +5,7 @@ azure-search-documents==11.4.0b6 azure-storage-blob==12.17.0 python-dotenv==1.0.0 azure-cosmos==4.5.0 -quart==0.19.4 +quart==0.19.9 uvicorn==0.24.0 aiohttp==3.9.2 gunicorn==20.1.0 diff --git a/ClientAdvisor/App/test_app.py b/ClientAdvisor/App/test_app.py deleted file mode 100644 index f50d3fc..0000000 --- a/ClientAdvisor/App/test_app.py +++ /dev/null @@ -1,6 +0,0 @@ -from app import format_as_ndjson - - -def test_format_as_ndjson(): - obj = {"message": "I ❤️ 🐍 \n and escaped newlines"} - assert format_as_ndjson(obj) == '{"message": "I ❤️ 🐍 \\n and escaped newlines"}\n'