From 5bfbdbd75b6ae57b3f293d871fd10cfdad27549f Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:31:52 -0400 Subject: [PATCH] Remove dupes --- PhotoScraper/RPI_SIS_PhotoScraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhotoScraper/RPI_SIS_PhotoScraper.py b/PhotoScraper/RPI_SIS_PhotoScraper.py index 8dc1e39..9524b72 100644 --- a/PhotoScraper/RPI_SIS_PhotoScraper.py +++ b/PhotoScraper/RPI_SIS_PhotoScraper.py @@ -609,8 +609,8 @@ def loopOverCourses(driver, term): break else: print("Invalid answer! Try again!") - class_list = [student for course in courses for student in course] - saveImagesToFolder(class_list) + class_list = set([student for course in courses for student in course]) + saveImagesToFolder(list(class_list)) # Assumes SIS main page is open