Commit 51032c7c authored by Samarth Joshi's avatar Samarth Joshi

Fix timezone issue in instructor.html

parent 3bb21da8
...@@ -208,7 +208,7 @@ def instructor(request): ...@@ -208,7 +208,7 @@ def instructor(request):
ax1.set_ylabel('PDF') ax1.set_ylabel('PDF')
html_graph1 = mpld3.fig_to_html(fig1) html_graph1 = mpld3.fig_to_html(fig1)
quizDone = False quizDone = False
if quizInstance.end_datetime < datetime.now(): if quizInstance.status == "Ended":
quizDone = True quizDone = True
return render(request, 'instructor.html',{"graph": html_graph, "graph1": html_graph, "graph2": html_graph1,'quiz':quizInstance,'cribs':cribs, 'all_quizes': allquizs, 'quizDone':quizDone}) return render(request, 'instructor.html',{"graph": html_graph, "graph1": html_graph, "graph2": html_graph1,'quiz':quizInstance,'cribs':cribs, 'all_quizes': allquizs, 'quizDone':quizDone})
......
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