Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rwth-moodle-sync
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robin Sonnabend
rwth-moodle-sync
Commits
0c36fe63
Commit
0c36fe63
authored
5 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Update for new moodle layout
parent
c630d5c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
moodle_sync.py
+2
-2
2 additions, 2 deletions
moodle_sync.py
with
2 additions
and
2 deletions
moodle_sync.py
+
2
−
2
View file @
0c36fe63
...
@@ -20,7 +20,7 @@ def query_courses(session):
...
@@ -20,7 +20,7 @@ def query_courses(session):
course_list
=
soup
.
find
(
"
div
"
,
id
=
"
coc-courselist
"
)
course_list
=
soup
.
find
(
"
div
"
,
id
=
"
coc-courselist
"
)
courses
=
course_list
.
find_all
(
"
div
"
,
class_
=
"
coc-course
"
)
courses
=
course_list
.
find_all
(
"
div
"
,
class_
=
"
coc-course
"
)
course_anchors
=
[
course_anchors
=
[
course
.
find
(
"
a
"
,
href
=
True
)
course
.
find
(
"
h3
"
).
find
(
"
a
"
,
href
=
True
)
for
course
in
courses
for
course
in
courses
]
]
course_links
=
{
course_links
=
{
...
@@ -115,7 +115,7 @@ def main():
...
@@ -115,7 +115,7 @@ def main():
course_links
=
query_courses
(
session
)
course_links
=
query_courses
(
session
)
for
course_name
,
course_link
in
course_links
.
items
():
for
course_name
,
course_link
in
course_links
.
items
():
print
(
course_name
)
print
(
"
Course:
"
,
course_name
)
for
path
,
link
in
query_documents
(
session
,
course_link
):
for
path
,
link
in
query_documents
(
session
,
course_link
):
print
(
path
,
link
)
print
(
path
,
link
)
sync_file
(
sync_file
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment