Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from timschubert/fix/subgroups
Browse files Browse the repository at this point in the history
Fix/subgroups
  • Loading branch information
timschubert committed Oct 17, 2018
2 parents aa15bb3 + fc53427 commit c7ba178
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Next, since there is currently no API available to export a list of participants
This list may of course change from time to time, so make sure to re-run the script regularly.

```
$ abgabesystem users -s <students.csv> -b <LDAP base domain> -p main
$ abgabesystem users -c <course> -s <students.csv> -b <LDAP base domain> -p main
```

Now create a fork of this repository inside the namespace of the course.
Expand Down
4 changes: 2 additions & 2 deletions src/abgabesystem/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from gitlab import DEVELOPER_ACCESS
from gitlab.exceptions import GitlabError, GitlabCreateError
from .students import enrolled_students
from .course import InvalidCourse
from .course import InvalidCourse, create_solutions_group


def create_tag(project, tag, ref):
Expand Down Expand Up @@ -144,7 +144,7 @@ def setup_projects(gl, course, deploy_key):
solutions = gl.groups.get(group.id)

if solutions is None:
raise InvalidCourse("No solutions subgroup")
solutions = create_solutions_group(gl, course)

reference_project = None
reference_projects = solutions.projects.list(search='solutions')
Expand Down
2 changes: 1 addition & 1 deletion src/abgabesystem/students.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def get_student_group(gl, course_name):
students_group = gl.groups.get(g.id)

if students_group is None:
raise MissingStudentsGroup()
students_group = create_students_group(gl, course)

return students_group

Expand Down

0 comments on commit c7ba178

Please sign in to comment.