curr_build_project_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id DESC LIMIT 1"
query_data = (curr_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get multi_build_image_status
print 'post_build_project_id(%s)\n' % (post_build_project_id)
# get curr_build_snapshot_id
- query = "SELECT id FROM build_snapshot WHERE build_project_id = %s"
+ query = "SELECT id FROM build_snapshot WHERE build_project_id = %s ORDER BY id DESC LIMIT 1"
query_data = (post_build_project_id,)
curr_build_snapshot_id = buildmonitor_db.get_value_from_query_data(query, query_data)
# get multi_build_image_status