Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
aal
studsoiger
Commits
511c6b50
Commit
511c6b50
authored
Nov 09, 2017
by
Kiste
Browse files
Fix
parent
22fca2ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
studsauger/studsauger.py
View file @
511c6b50
...
...
@@ -144,8 +144,8 @@ def get_semester(path, session, blacklist, timestamp, cursemester):
if
course
[
'title'
]
in
blacklist
:
continue
mkdir
(
path
+
'/'
+
course
[
'title'
])
json_new
=
session
.
get
(
BASEURL
+
'/documents/'
+
course
[
'course_id'
]
+
'/new'
+
timestamp
).
json
()
try
:
json_new
=
session
.
get
(
BASEURL
+
'/documents/'
+
course
[
'course_id'
]
+
'/new'
+
timestamp
).
json
()
for
document
in
json_new
[
'documents'
]:
get_file
(
path
,
session
,
course
,
document
)
except
json
.
decoder
.
JSONDecodeError
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment