Skip to content

Commit 8feeab2

Browse files
committed
Small fix for next module computation
1 parent 01f651f commit 8feeab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learn/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def module(request, module_name):
1717

1818
current = module
1919

20-
while current:
20+
while current and next is None:
2121
if current.next:
2222
next = current.next
2323
break

0 commit comments

Comments
 (0)