Skip to content

Commit

Permalink
Remove Moodle API
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoest committed Apr 10, 2024
1 parent 828a459 commit 8e774be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/core_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def get_rating(id: int) -> int:
return requests.get(f'https://api.vatsim.net/api/ratings/{id}/').json()['rating']


@cached(cache=TTLCache(maxsize=float('inf'), ttl=60))
#@cached(cache=TTLCache(maxsize=float('inf'), ttl=60))
def check_course_completion(course: dict, cid: int) -> bool:
return False
course_id = course['link'].split('id=')[-1]
headers = {
'Authorization': moodle_auth
}
return False
request = requests.get(
f'{moodle_link}/module_completed?module_id={course_id}&user_id={cid}',
headers=headers).json()
Expand Down

0 comments on commit 8e774be

Please sign in to comment.