Skip to content

Commit 8631361

Browse files
authored
I introduced a bug in download.py because of my last pull request. (#65)
1 parent 424e15b commit 8631361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staffeli_nt/download.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def main(api_url, api_key, args: argparse.Namespace):
9999
students += course.get_users(search_term=i,enrollment_type=['student'],
100100
enrollment_state='active')
101101
section = None
102-
if select_section is not None:
102+
if select_section:
103103
sections = sort_by_name(course.get_sections())
104104

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

120120
handins: Dict[str, Any] = {}

0 commit comments

Comments
 (0)