def index(self): builds = Build.filter_by(project=self.project).order_by(desc( Build.id)).limit(BUILD_LIMIT).all() distinct = {"refs": list(set([b.ref for b in builds]))} return dict( project_name=self.project_name, distinct=distinct, builds=builds, section="Builds", )
def index(self): builds = Build.filter_by(project=self.project).order_by(desc(Build.modified)).limit(BUILD_LIMIT).all() distinct = { "refs": list(set([b.ref for b in builds])) } return dict( project_name=self.project_name, distinct=distinct, builds=builds, section="Builds", )
def index(self): builds = Build.filter_by(project=self.project, ref=self.ref_name).order_by(desc( Build.id)).limit(BUILD_LIMIT).all() distinct = {"sha1s": list(set([b.sha1 for b in builds]))} return dict( project_name=self.project.name, distinct=distinct, builds=builds, breadcrumb="> {}".format(self.ref_name), section="Builds", )
def index(self): builds = Build.filter_by( project=self.project, ref=request.context['ref'], sha1=request.context['sha1'], flavor=self.flavor_name ).order_by(desc(Build.modified)).limit(BUILD_LIMIT).all() return dict( project_name=self.project.name, builds=builds, breadcrumb="> {} > {} > {}".format(request.context['ref'], request.context['sha1'], self.flavor_name), section="Builds", )
def index(self): builds = Build.filter_by(project=self.project, ref=request.context['ref'], sha1=request.context['sha1'], flavor=self.flavor_name).order_by( desc(Build.id)).limit(BUILD_LIMIT).all() return dict( project_name=self.project.name, builds=builds, breadcrumb="> {} > {} > {}".format(request.context['ref'], request.context['sha1'], self.flavor_name), section="Builds", )
def index(self): builds = Build.filter_by(project=self.project, ref=request.context['ref'], sha1=self.sha1_name).order_by(desc( Build.id)).limit(BUILD_LIMIT).all() distinct = {"flavors": list(set([b.flavor for b in builds]))} return dict( project_name=self.project.name, distinct=distinct, builds=builds, breadcrumb="> {} > {}".format(request.context['ref'], self.sha1_name), section="Builds", )
def index(self): builds = Build.filter_by( project=self.project, ref=self.ref_name ).order_by(desc(Build.modified)).limit(BUILD_LIMIT).all() distinct = { "sha1s": list(set([b.sha1 for b in builds])) } return dict( project_name=self.project.name, distinct=distinct, builds=builds, breadcrumb="> {}".format(self.ref_name), section="Builds", )
def index(self): builds = Build.filter_by( project=self.project, ref=request.context['ref'], sha1=self.sha1_name ).order_by(desc(Build.modified)).limit(BUILD_LIMIT).all() distinct = { "flavors": list(set([b.flavor for b in builds])) } return dict( project_name=self.project.name, distinct=distinct, builds=builds, breadcrumb="> {} > {}".format(request.context['ref'], self.sha1_name), section="Builds", )