Commit e635e7e0 authored by Kiste's avatar Kiste
Browse files

Fix stuff

parent 7b6f97bb
......@@ -5,7 +5,6 @@ import shutil
import requests
from colorama import Fore
import json
def mkdir(directory):
if not os.path.exists(directory):
......@@ -21,12 +20,12 @@ def logik(path, user, password, blacklist, allsemesters):
if allsemesters:
for semester in jsemester.json()['semesters']:
fetchsemester(s, semester)
fetchsemester(path, s, blacklist, semester)
fetchsemester(s, jsemester.json()['semesters'][-1])
fetchsemester(path, s, blacklist, jsemester.json()['semesters'][-1])
def fetchsemester(s, cursemester):
def fetchsemester(path, s, blacklist, cursemester):
semester_id = cursemester['semester_id']
semester_title = cursemester['title']
print(Fore.YELLOW + semester_title)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment