remove debug print

This commit is contained in:
Jens Langhammer 2019-04-29 21:39:30 +02:00
parent 4004579905
commit 7033ec0ab9
2 changed files with 0 additions and 3 deletions

View File

@ -35,5 +35,4 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView):
kwargs['providers_without_application'] = Provider.objects.filter(application=None)
kwargs['policies_without_attachment'] = len(Policy.objects.filter(policymodel__isnull=True))
kwargs['cached_policies'] = len(cache.keys('policy_*'))
print(cache.keys('*'))
return super().get_context_data(**kwargs)

View File

@ -190,8 +190,6 @@ def cookie_from_string(cookie_string, strict_cookies=False):
cookie_dict['key'], cookie_dict['value'] = \
cookie_parts[0].split('=', 1)
cookie_dict['value'] = cookie_dict['value'].replace('"', '')
# print('aaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# print(cookie_parts[0].split('=', 1))
except ValueError:
logger.warning('Invalid cookie: `%s`', cookie_string)
return None