diff --git a/backend/courses/management/commands/sync_path_status.py b/backend/courses/management/commands/sync_path_status.py index d74ca12f..8b055278 100644 --- a/backend/courses/management/commands/sync_path_status.py +++ b/backend/courses/management/commands/sync_path_status.py @@ -48,7 +48,7 @@ async def send_webhook_request( ) -> None: async with webhook_semaphore: await async_session.post( - url="https://penncoursealert.com/webhook/", + url="https://penncoursealert.com/webhook", data=json.dumps(format_webhook_request_body(course, course_status, semester)), headers={"Content-Type": "application/json", "Authorization": f"Basic {auth.decode()}"}, ) @@ -156,7 +156,7 @@ def resolve_path_differences(send_data_to_slack=False, verbose=False): print(f"{len(path_course_to_status)} section statuses fetched from Path.") inconsistent_courses = [] - for course, db_status in enumerate(db_course_to_status): + for course, db_status in db_course_to_status.items(): if course in path_course_to_status and db_status != path_course_to_status[course]: inconsistent_courses.append(course) if verbose: