Skip to content

Commit

Permalink
fix(backend): microsoft session deletion not updates on scrapers
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotAmn committed Jan 21, 2025
1 parent acfdc11 commit 03c1977
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/api/routes/scrapers_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03c1977

Please sign in to comment.