def GET(self): extras = { "title": "Streaming", } rating = define.get_rating(self.user_id) return define.webpage(self.user_id, 'etc/streaming.html', [profile.select_streaming(self.user_id, rating, 300, order_by="start_time desc")], **extras)
def streaming_(request): rating = define.get_rating(request.userid) return Response( define.webpage( request.userid, 'etc/streaming.html', (profile.select_streaming( request.userid, rating, 300, order_by="start_time desc"), ), title="Streaming"))
def streaming_(request): extras = { "title": "Streaming", } rating = define.get_rating(request.userid) return Response(define.webpage(request.userid, 'etc/streaming.html', [profile.select_streaming(request.userid, rating, 300, order_by="start_time desc")], **extras))
def GET(self): extras = { "title": "Streaming", } rating = define.get_rating(self.user_id) return define.webpage(self.user_id, template.etc_streaming, [ profile.select_streaming( self.user_id, rating, 300, order_by="start_time desc") ], **extras)
def template_fields(userid): config = d.get_config(userid) rating = d.get_rating(userid) submissions = list(filter_submissions(userid, recent_submissions())) ret = partition_submissions(submissions) return ret + [ # Recent site news update siteupdate.select(), # Recent critique submissions submission.select_list(userid, rating, 4, options=["critique"], config=config), # Currently streaming users profile.select_streaming(userid, rating, 4), # Recently popular submissions list(itertools.islice(filter_submissions(userid, submission.select_recently_popular(), incidence_limit=1), 11)), ]
def template_fields(userid): config = d.get_config(userid) rating = d.get_rating(userid) submissions = list(filter_submissions(userid, recent_submissions())) ret = partition_submissions(submissions) return ret + [ # Recent site news update siteupdate.select_last(), # Recent critique submissions submission.select_list(userid, rating, 4, options=["critique"], config=config), # Currently streaming users profile.select_streaming(userid, rating, 4), # Recently popular submissions list(itertools.islice(filter_submissions(userid, submission.select_recently_popular(), incidence_limit=1), 11)), ]
def streaming_(request): rating = define.get_rating(request.userid) return Response(define.webpage(request.userid, 'etc/streaming.html', (profile.select_streaming(request.userid, rating, 300, order_by="start_time desc"),), title="Streaming"))