summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/views.py b/main/views.py
index 144bc8f..f3e0385 100644
--- a/main/views.py
+++ b/main/views.py
@@ -77,8 +77,8 @@ def home_view (request):
"add_ratings_form": add_ratings_form,
"add_marks_form": add_marks_form,
"exams": user_data["exams"],
- "ratings": user_data["ratings"],
- "marks": user_data["marks"],
+ "ratings": sorted (user_data["ratings"].keys ()),
+ "marks": sorted (user_data["marks"].keys ()),
}
return render_page (request, data, "main/home.html")