def get(self): order = self.request.GET.get('order', 'value') if order == 'receivers': badges = list(Badge.all()) badges.sort(key=lambda i: i.awards.count()) else: badges = Badge.gql('ORDER BY ' + order) self.render_template('badges', {'badges': badges})
def get(self): order = self.request.GET.get('order', 'value') if order == 'receivers': b = list(Badge.all()) b.sort(key=lambda i:i.awards.count()) else: b = Badge.gql('ORDER BY ' + order) self.render_template('badges', {'badges': b})
def get(self): self.render_template('admin', { 'badges': Badge.all(), 'members': Member.all(), })
def get(self): self.render_template('admin', { 'badges': Badge.all(), 'hackers': Hacker.all() })
def get(self): self.render_template('admin', {'badges': Badge.all(), 'hackers': Hacker.all()})