Fixup: Do not create project if unable to transfer
This commit is contained in:
parent
3f937b132e
commit
cfe3611218
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@ import datetime
|
|||
import logging as log
|
||||
import csv
|
||||
import secrets
|
||||
import time
|
||||
|
||||
|
||||
class Deadline(yaml.YAMLObject):
|
||||
|
@ -137,6 +138,12 @@ def sync_project(gl, course, student):
|
|||
#for project in student.user.projects.list():
|
||||
# gl.projects.delete(project.id)
|
||||
|
||||
print(student.user.name)
|
||||
projects = course.group.projects.list(search=student.user.name)
|
||||
if len(projects) > 0:
|
||||
print('found')
|
||||
return projects[0]
|
||||
|
||||
base = course.group.projects.list(search=course.base)[0]
|
||||
base = gl.projects.get(base.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue