Beispiel #1
0
def index():
  results = db.query('select num, count(1) as count from listicles group by num order by count desc ')
  return json.dumps(list(results))
Beispiel #2
0
def num(num):
  results = db.query('select * from listicles where num = {} order by created_at desc'.format(num))
  return json.dumps(list(results))