Refactor fullbrutalism_p

This commit is contained in:
Jason McBrayer 2018-08-21 22:01:34 -04:00
parent f3d3d7005b
commit 81a705cba9
1 changed files with 1 additions and 5 deletions

View File

@ -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: