Skip to content

Commit

Permalink
Fixes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaTrkgl committed Jan 3, 2025
1 parent 26cac21 commit b5d9f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@

# === OTHER ===
MAX_THREAD_COUNT = 4
MAX_THREAD_COUNT_COURSE_PLANS = 2
3 changes: 1 addition & 2 deletions src/course_plan_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def scrap_faculty_course_plans(self, faculty_name: str, driver, log_prefix: str=
self.faculty_course_plans[faculty_name][program_type_name].update(program_data)

driver.back()
driver.refresh()

Logger.log_info(f"{log_prefix} Finished Scraping The Faculty: [blue]\"{faculty_name}\"[/blue]")

Expand Down Expand Up @@ -345,7 +344,7 @@ def scrap_course_plans(self):

# Create the threads
threads = []
for i in range(min(MAX_THREAD_COUNT, len(self.faculties))):
for i in range(min(MAX_THREAD_COUNT_COURSE_PLANS, len(self.faculties))):
t = threading.Thread(target=self.scrap_course_plan_thread_routine, args=(i,))
threads.append(t)

Expand Down

0 comments on commit b5d9f3d

Please sign in to comment.