|
@@ -62,7 +62,7 @@ def get_graph(request, vpn_id, period="daily"):
|
|
|
""" This get the graph for the associated vpn_id and time period
|
|
|
"""
|
|
|
vpn = get_object_or_404(VPNConfiguration, pk=vpn_id,
|
|
|
- offersubscription__member__user=request.user.id)
|
|
|
+ offersubscription__member=request.user)
|
|
|
|
|
|
time_periods = { 'hourly': '-1hour', 'daily': '-24hours', 'weekly': '-8days', 'monthly': '-32days', 'yearly': '-13months', }
|
|
|
if period not in time_periods:
|