Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Path Status Small Fix #692

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading