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

Commit

Permalink
Fix: Missing return in load_labs
Browse files Browse the repository at this point in the history
  • Loading branch information
cs142ta committed Jul 30, 2020
1 parent 58067b8 commit bc7e380
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zygrader/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def load_students() -> list:

with open(path, 'r') as students_file:
students_json = json.load(students_file)

for student in students_json:
g_students.append(Student(student["first_name"], student["last_name"], student["email"], student["section"], student["id"]))

Expand All @@ -42,10 +42,12 @@ def load_labs() -> list:

with open(path, 'r') as labs_file:
labs_json = json.load(labs_file)

for a in labs_json:
g_labs.append(Lab(a["name"], a["parts"], a["options"]))

return g_labs


# Load labs from JSON file
def get_labs() -> list:
Expand Down

0 comments on commit bc7e380

Please sign in to comment.