Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from get_attendance import get_attendance_data
|
|
10 |
from get_exam_schedule import get_examSchedule_data
|
11 |
from get_sem_id import _get_all_sem_ids, _get_sem_id
|
12 |
from fastapi import FastAPI, Request, HTTPException, status, Form
|
13 |
-
|
14 |
app = FastAPI()
|
15 |
|
16 |
|
@@ -28,6 +28,7 @@ async def handle_request(data_func, num_parameters, username, password):
|
|
28 |
basic_creds_check(username, password)
|
29 |
async with ClientSession() as sess:
|
30 |
print("password :" + password)
|
|
|
31 |
session_result = await gen_session(sess, username, password)
|
32 |
if session_result == 0:
|
33 |
raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED)
|
|
|
10 |
from get_exam_schedule import get_examSchedule_data
|
11 |
from get_sem_id import _get_all_sem_ids, _get_sem_id
|
12 |
from fastapi import FastAPI, Request, HTTPException, status, Form
|
13 |
+
import logging
|
14 |
app = FastAPI()
|
15 |
|
16 |
|
|
|
28 |
basic_creds_check(username, password)
|
29 |
async with ClientSession() as sess:
|
30 |
print("password :" + password)
|
31 |
+
logger.info("password :" + password)
|
32 |
session_result = await gen_session(sess, username, password)
|
33 |
if session_result == 0:
|
34 |
raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED)
|