diff --git a/shop.py b/shop.py index 5b8ef70..92428b7 100644 --- a/shop.py +++ b/shop.py @@ -163,7 +163,7 @@ def show_shop(shopid): return render_template('show_shop.html', entries=entries, shop=shopname, shopid=shopid, content=content,shares=shared_to, date=get_shop_date(shopid),date_bkp=get_shop_backup_date(shopid), - autosort=session['sort_view']) + autosort=session.get('sort_view',False)) @app.route('/') def list_shops():