Commit b6e9666c authored by Kiste's avatar Kiste
Browse files

Fix slash in course title

parent 8c886f89
......@@ -62,11 +62,11 @@ def holsemester(path, session, blacklist, timestamp, cursemester):
def holdatei(path, session, course, document):
target = path + '/' + course['title'] + '/' + document['filename']
target = path + '/' + course['title'].replace('/', '') + '/' + document['filename']
download = session.get(BASEURL + '/documents/' + document['document_id'] + '/download', stream=True)
if download.status_code == 200:
print(path + '/' + course['title'] + '/' + document['filename'])
print(path + '/' + course['title'].replace('/', '') + '/' + document['filename'])
with open(target, 'wb') as file:
download.raw.decode_content = True
shutil.copyfileobj(download.raw, file)
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