This commit is contained in:
Rushil Umaretiya 2020-06-16 20:40:45 -04:00
parent 699dd72b24
commit 3aa22a6542
12 changed files with 12 additions and 7 deletions

View File

@ -1 +0,0 @@
{"username": "2022rkhondak", "grade": 10, "is_student": true, "password": "hackgroup1"}

1
.2023rumaretiprofile Normal file
View File

@ -0,0 +1 @@
{"username": "2023rumareti", "grade": 9, "is_student": true, "password": "a"}

View File

@ -1 +0,0 @@
{"username": "eharris1", "is_student": false, "password": "hackgroup1"}

1
.sstern1profile Normal file
View File

@ -0,0 +1 @@
{"username": "sstern1", "is_student": false, "password": "Riya2011"}

1
2023rumareti Submodule

@ -0,0 +1 @@
Subproject commit ca356ef8532873bf52ec67a647fbb91a25ca1cb7

View File

@ -8,6 +8,7 @@ class Student(models.Model):
user = models.OneToOneField(User, blank=True, on_delete=models.CASCADE)
ion_user = models.CharField(max_length=100, primary_key=True)
grade = models.IntegerField(default=0, blank=True)
log = models.TextField(default="", blank=True)
git=models.CharField(default="", max_length=100, blank=True)
repo=models.URLField(default="", blank=True)
classes=models.CharField(max_length=100, default="", blank=True)

View File

@ -152,6 +152,12 @@ def createClassHelper(request):
messages.success(request, cleaned_data['subject'].capitalize() + " has been created!")
print (newClass)
teacher.classes.add(newClass)
for student in newClass.unconfirmed.all():
if student.added_to == "":
student.added_to = newClass.name
else:
student.added_to = student.added_to + "," + newClass.name
student.save()
return redirect('home')
else:
classForm = ClassCreationForm()

View File

@ -1,7 +1,3 @@
.. SkoolOS documentation master file, created by
sphinx-quickstart on Tue Jun 16 11:22:02 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to SkoolOS's documentation!
===================================

View File

@ -456,7 +456,7 @@ def authenticate():
#Linux: chromdriver-linux
#Macos: chromdriver-mac
#Windows: chromdriver.exe
path = os.path.join(os.getcwd(),'chromedriver','chromedriver-mac')
path = os.path.join(os.getcwd(),'chromedriver','chromedriver-linux')
browser = webdriver.Chrome(path)

@ -0,0 +1 @@
Subproject commit ca356ef8532873bf52ec67a647fbb91a25ca1cb7