Added another day to the history graph, so it only shows full days.

This commit is contained in:
A. Svensson 2015-03-14 16:29:05 +01:00
parent a8f37d7e28
commit bc03f6ef84

View File

@ -13,7 +13,7 @@ class ServerDetailView(generic.DetailView):
def get_context_data(self, **kwargs):
context = super(ServerDetailView, self).get_context_data(**kwargs)
server = context['server']
context['weekly_history'] = server.get_stats_history(days=7)
context['weekly_history'] = server.get_stats_history(days=8)
context['averages_for_weekdays'] = server.get_averages_for_weekdays()
return context