Increased the number of days to show in the charts.
This commit is contained in:
parent
8cedfcbe6a
commit
5ee190f9fb
@ -12,7 +12,7 @@ class ServerDetailView(generic.DetailView):
|
|||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(ServerDetailView, self).get_context_data(**kwargs)
|
context = super(ServerDetailView, self).get_context_data(**kwargs)
|
||||||
server = context['server']
|
server = context['server']
|
||||||
# HACK: 24 hours for the last 3 days, might want to change this
|
# HACK: 24 hours for the last 7 days, might want to change this
|
||||||
context['population'] = PopulationHistory.objects.filter(server=server)[:3*24]
|
context['population'] = PopulationHistory.objects.filter(server=server)[:7*24]
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user