Browse Source

Add an hourly graph

Baptiste Jonglez 10 years ago
parent
commit
2ede7931a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coin/vpn/views.py

+ 1 - 1
coin/vpn/views.py

@@ -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'