From 6751526f407c6004532554ab3050e49e9a24e297 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Wed, 30 Aug 2017 20:05:19 +0300 Subject: [PATCH] [package_detail] Fix no collection displayed as current --- koschei/frontend/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koschei/frontend/views.py b/koschei/frontend/views.py index 4354c6c3..b946c344 100644 --- a/koschei/frontend/views.py +++ b/koschei/frontend/views.py @@ -459,6 +459,8 @@ def package_detail(name, form=None, collection=None): if not collection: collection = g.current_collections[0] + g.current_collections = [collection] + base = db.query(BasePackage).filter_by(name=name).first_or_404() packages = {p.collection_id: p for p in db.query(Package).filter_by(base_id=base.id)}