Skip to content

Commit

Permalink
Merge pull request #692 from pennlabs/path_status_fix
Browse files Browse the repository at this point in the history
Sync Path Status Small Fix
  • Loading branch information
esinx authored Nov 21, 2024
2 parents 0944c6c + 617efe2 commit e0f1f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/courses/management/commands/sync_path_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}"},
)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e0f1f04

Please sign in to comment.