fucking nigger

pull/152/head
Aevann 2023-05-20 03:11:45 +03:00
parent ea6386cefd
commit e9fbaf5032
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def timestamp(timestamp):
def selected_tab(request):
if request.path == '/':
requested_sort = request.args.get('sort')
if g.v and g.v.defaultsorting == 'new' and requested_sort == 'hot':
if hasattr(g, 'v') and g.v and g.v.defaultsorting == 'new' and requested_sort == 'hot':
return 'hot'
elif requested_sort == 'new':
return 'new'