# HG changeset patch # User Mads Kiilerich # Date 2014-07-18 19:22:01 # Node ID a2d236bbcd52d99e65490d529e82ce8bddecb8d3 # Parent 1469afcacee532af1a8fc9410e3981dbd26d81d5 pull requests: the default review status should be default = not reviewed diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -1376,8 +1376,7 @@ class Repository(Base, BaseModel): .filter(ChangesetStatus.revision.in_(revisions)) grouped = {} - #maybe we have open new pullrequest without a status ? - stat = ChangesetStatus.STATUS_UNDER_REVIEW + stat = ChangesetStatus.DEFAULT status_lbl = ChangesetStatus.get_status_lbl(stat) for pr in PullRequest.query().filter(PullRequest.org_repo == self).all(): for rev in pr.revisions: