Esempio n. 1
0
 def GET(self, politician_id):
     related = group_politician_similarity(politician_id, qmin=1)
     try:
         pol = schema.Politician.where(id=politician_id)[0]
     except IndexError:
         raise web.notfound()
     return render.politician_groups(pol, related)
Esempio n. 2
0
 def GET(self, politician_id):
     related = group_politician_similarity(politician_id, qmin=1)
     try:
         pol = schema.Politician.where(id=politician_id)[0]
     except IndexError:
         raise web.notfound()
     return render.politician_groups(pol, related)
Esempio n. 3
0
 def GET(self, politician_id):
     related = group_politician_similarity(politician_id, qmin=1)
     return render.politician_groups(politician_id, related)
Esempio n. 4
0
 def GET(self, politician_id):
     related = group_politician_similarity(politician_id, qmin=1)
     pol = schema.Politician.where(id=politician_id)[0]
     return render.politician_groups(pol, related)