def run_ids():
cols = [materials.c.run_id,
func.max(materials.c.generation),
func.count(materials.c.id)]
rows = or_(materials.c.retest_passed == None, materials.c.retest_passed == True)
sort = materials.c.run_id
s = select(cols, rows).group_by(sort).order_by(asc(sort))
print('\nrun-id\t\t\t\tgenerations\tmaterial')
result = engine.execute(s)
for row in result:
print('%s\t%s\t\t%s' % (row[0], row[1], row[2]))
result.close()
评论列表
文章目录