Optimized code

parent bc096ecb
...@@ -10,7 +10,6 @@ def index(request): ...@@ -10,7 +10,6 @@ def index(request):
for i in range(1, count + 1): for i in range(1, count + 1):
assignments = Assignment.objects.get(id=i) assignments = Assignment.objects.get(id=i)
courses = Course.objects.get(id=i)
output += f"""Assignment Name: {assignments.name}<br> output += f"""Assignment Name: {assignments.name}<br>
Description: {assignments.description}<br> Description: {assignments.description}<br>
Perfect Score: {assignments.perfect_score}<br> Perfect Score: {assignments.perfect_score}<br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment