Skip to content

Commit 0e7332a

Browse files
committed
fixes pylint reports
1 parent 8f81e48 commit 0e7332a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

saas/templatetags/saas_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ def privacy_settings(request):
269269
do_not_track = bool(request.META.get('HTTP_DNT') == '1')
270270
gpc = bool(request.META.get('HTTP_SEC_GPC') == '1')
271271
if do_not_track or gpc:
272-
privacy_settings = {
272+
result = {
273273
key:False for key in settings.PRIVACY_COOKIES_ENABLED}
274274
else:
275-
privacy_settings = request.session.get('privacy', {}) if request else {}
276-
return privacy_settings
275+
result = request.session.get('privacy', {}) if request else {}
276+
return result

saas/views/legal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from django.forms.widgets import CheckboxInput
3131
from django.contrib.auth import REDIRECT_FIELD_NAME
3232
from django.http import HttpResponseRedirect
33-
from django.shortcuts import get_object_or_404
3433
from django.views.generic import CreateView, DetailView, ListView
3534

3635
from .. import settings

0 commit comments

Comments
 (0)