|
@@ -40,7 +40,7 @@ def get_graph(request, vpn_id, period="daily"):
|
|
|
vpn = get_object_or_404(VPNSubscription, pk=vpn_id,
|
|
|
administrative_subscription__member__user=request.user.id)
|
|
|
|
|
|
- time_periods = { 'daily': '-24hours', 'weekly': '-8days', 'monthly': '-32days', 'yearly': '-13months', }
|
|
|
+ time_periods = { 'hourly': '-1hour', 'daily': '-24hours', 'weekly': '-8days', 'monthly': '-32days', 'yearly': '-13months', }
|
|
|
if period not in time_periods:
|
|
|
period = 'daily'
|
|
|
|