Skip to content

Commit

Permalink
[package_detail] Fix no collection displayed as current
Browse files Browse the repository at this point in the history
  • Loading branch information
msimacek committed Aug 30, 2017
1 parent 5e834a1 commit 6751526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions koschei/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}

Expand Down

0 comments on commit 6751526

Please sign in to comment.