From 81a705cba9597467539a03cbd139ef8252b60225 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Tue, 21 Aug 2018 22:01:34 -0400 Subject: [PATCH] Refactor fullbrutalism_p --- brutaldon/views.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index b6efaad..c0b33c8 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -64,11 +64,7 @@ def get_mastodon(request): return mastodon def fullbrutalism_p(request): - if request.session.has_key('fullbrutalism'): - fullbrutalism = request.session['fullbrutalism'] - else: - fullbrutalism = False - return fullbrutalism + return request.session.get('fullbrutalism', False) def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_id=None): try: