diff --git a/app/api/routes/scrapers_routes.py b/app/api/routes/scrapers_routes.py index fe3c453..8785eab 100644 --- a/app/api/routes/scrapers_routes.py +++ b/app/api/routes/scrapers_routes.py @@ -31,6 +31,10 @@ def get_publicscraper_config(): res = [] for student in students: + if not student.microsoft_session: + student.public_scraper_id = None + StudentService.update_student(student) + continue res.append({ "microsoft_session": decrypt_token(student.microsoft_session), "tekbetter_token": student.scraper_token,