Commit 401436d1 authored by Kiste's avatar Kiste
Browse files

Fix

parent 197957d8
......@@ -151,8 +151,8 @@ def main():
else:
date = document['chdate']
database[document['file_id']] = document['chdate']
print(document['filename'] + date)
target = path + '/' + course['title'].replace('/', '_') + '/' + document['filename'] + date
print(document['filename'] + str(date))
target = path + '/' + course['title'].replace('/', '_') + '/' + document['filename'] + str(date)
download = session.get(BASEURL + '/file/' + document['file_id'] + '/content', stream=True)
with open(target, 'wb') as downloadfile:
download.raw.decode_content = True
......
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