Skip to content

Commit

Permalink
I found a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDue committed Sep 27, 2023
1 parent 566764c commit 95054df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions staffeli_nt/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def main(api_url, api_key, args: argparse.Namespace):

ta = tas[index]
students = []
# Horrible hack to fetch users based on ku-ids
# Horrible OAhack to fetch users based on ku-ids
for i in stud[index]:
students += course.get_users(search_term=i,enrollment_type=['student'],
enrollment_state='active')
section = None
if select_section is not None:
if select_section:
sections = sort_by_name(course.get_sections())

print('\nSections:')
Expand All @@ -114,7 +114,7 @@ def main(api_url, api_key, args: argparse.Namespace):
print(f'\nFetching: {assignment}')
if select_ta is not None:
print(f'for {ta}')
if select_section is not None:
if select_section:
print(f'from {section}')

handins: Dict[str, Any] = {}
Expand Down

0 comments on commit 95054df

Please sign in to comment.