Skip to content

Commit

Permalink
I introduced a bug in download.py because of my last pull request. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDue committed Sep 28, 2023
1 parent 424e15b commit 8631361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staffeli_nt/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def main(api_url, api_key, args: argparse.Namespace):
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 8631361

Please sign in to comment.