passing checks with django 2.1.7
This commit is contained in:
@@ -155,8 +155,8 @@ def histo(request,theuser=0,
|
||||
|
||||
promember=0
|
||||
mayedit=0
|
||||
if not request.user.is_anonymous():
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
if not request.user.is_anonymous:
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember = 1
|
||||
|
||||
@@ -239,9 +239,9 @@ def cum_flex_data(
|
||||
if theuser == 0:
|
||||
theuser = request.user.id
|
||||
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = getrower(request.user)
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -337,9 +337,9 @@ def histo_data(
|
||||
if theuser == 0:
|
||||
theuser = request.user.id
|
||||
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = getrower(request.user)
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -543,8 +543,8 @@ def cum_flex(request,theuser=0,
|
||||
|
||||
promember=0
|
||||
mayedit=0
|
||||
if not request.user.is_anonymous():
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
if not request.user.is_anonymous:
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember = 1
|
||||
|
||||
@@ -649,7 +649,7 @@ def rankings_view(request,theuser=0,
|
||||
theuser = request.user.id
|
||||
|
||||
promember=0
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = getrower(request.user)
|
||||
if r.birthdate:
|
||||
age = calculate_age(r.birthdate)
|
||||
@@ -661,7 +661,7 @@ def rankings_view(request,theuser=0,
|
||||
else:
|
||||
worldclasspower = None
|
||||
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -1002,7 +1002,7 @@ def rankings_view2(request,theuser=0,
|
||||
|
||||
|
||||
promember=0
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = getrower(request.user)
|
||||
wcdurations = []
|
||||
wcpower = []
|
||||
@@ -1069,7 +1069,7 @@ def rankings_view2(request,theuser=0,
|
||||
request.session['options'] = options
|
||||
|
||||
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -1421,9 +1421,9 @@ def otwrankings_view(request,theuser=0,
|
||||
theuser = request.user.id
|
||||
|
||||
promember=0
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = Rower.objects.get(user=request.user)
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -1827,9 +1827,9 @@ def oterankings_view(request,theuser=0,
|
||||
|
||||
|
||||
promember=0
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = Rower.objects.get(user=request.user)
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
@@ -3372,9 +3372,9 @@ def cumstats(request,theuser=0,
|
||||
if theuser == 0:
|
||||
theuser = request.user.id
|
||||
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = getrower(request.user)
|
||||
result = request.user.is_authenticated() and ispromember(request.user)
|
||||
result = request.user.is_authenticated and ispromember(request.user)
|
||||
if result:
|
||||
promember=1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user