SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 22212252 get user id for portfolio 22212252 get sub ptf for main ptf 22212252, type 3726 and hashtags ['environnement', 'Carton_brun', 'Carton_gris', 'flou', 'cartonnette', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'kraft', 'metal', 'plastique', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212252 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','Carton_gris','flou','cartonnette','autre_refus','Teint_Dans_La_Masse','papier','kraft','metal','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212252 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','Carton_gris','flou','cartonnette','autre_refus','Teint_Dans_La_Masse','papier','kraft','metal','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22212252, 'sub_port_id': 22212257, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684834, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'mal_croppe': {'main_port_id': 22212252, 'sub_port_id': 22212258, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684835, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'environnement': {'main_port_id': 22212252, 'sub_port_id': 22212259, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684836, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'Carton_brun': {'main_port_id': 22212252, 'sub_port_id': 22212260, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684837, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'flou': {'main_port_id': 22212252, 'sub_port_id': 22212261, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684838, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'papier': {'main_port_id': 22212252, 'sub_port_id': 22212262, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684839, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'autre_refus': {'main_port_id': 22212252, 'sub_port_id': 22212263, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684840, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'plastique': {'main_port_id': 22212252, 'sub_port_id': 22212264, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684841, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'kraft': {'main_port_id': 22212252, 'sub_port_id': 22212265, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684842, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'metal': {'main_port_id': 22212252, 'sub_port_id': 22212266, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684843, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'cartonnette': {'main_port_id': 22212252, 'sub_port_id': 22212267, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684844, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'Carton_gris': {'main_port_id': 22212252, 'sub_port_id': 22212268, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684845, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212257 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212257) result : ((1351073022,), (1351073023,), (1351073024,), (1351073025,), (1351073180,), (1351073181,), (1351073182,), (1351073215,), (1351073216,), (1351073217,), (1351073218,), (1351073629,), (1351073630,), (1351073631,), (1351073632,), (1351073633,), (1351073786,), (1351073790,), (1351074205,), (1351074239,), (1351074241,), (1351074243,), (1351074740,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212258 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212258) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212259 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212259) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212260 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212260) result : ((1351073026,), (1351073027,), (1351073253,), (1351073254,), (1351073918,), (1351073919,), (1351074300,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212261 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212262 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212263 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212263) result : ((1351073115,), (1351073237,), (1351073238,), (1351073239,), (1351073240,), (1351073852,), (1351073853,), (1351073855,), (1351073856,), (1351074232,), (1351074638,), (1351074640,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212264 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212264) result : ((1351073257,), (1351073934,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212265 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212265) result : ((1351074748,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212266 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212266) result : ((1351074662,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212267 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212267) result : ((1351073117,), (1351073183,), (1351073184,), (1351073248,), (1351073249,), (1351073250,), (1351073251,), (1351073890,), (1351073891,), (1351073894,), (1351073895,), (1351074298,), (1351074299,), (1351074652,), (1351074654,), (1351074656,), (1351074745,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22212268 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22212252 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212268) result : ((1351073243,), (1351073831,), (1351073877,), (1351074267,), (1351074271,), (1351074273,), (1351074744,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22212252) result : ((1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1351072600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212252 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','Carton_gris','flou','cartonnette','autre_refus','Teint_Dans_La_Masse','papier','kraft','metal','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212252 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','Carton_gris','flou','cartonnette','autre_refus','Teint_Dans_La_Masse','papier','kraft','metal','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22212252, 'sub_port_id': 22212281, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684870, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'mal_croppe': {'main_port_id': 22212252, 'sub_port_id': 22212285, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684871, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'environnement': {'main_port_id': 22212252, 'sub_port_id': 22212289, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684872, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'Carton_brun': {'main_port_id': 22212252, 'sub_port_id': 22212293, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684873, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'flou': {'main_port_id': 22212252, 'sub_port_id': 22212296, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684874, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'papier': {'main_port_id': 22212252, 'sub_port_id': 22212298, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684875, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'autre_refus': {'main_port_id': 22212252, 'sub_port_id': 22212299, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684876, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'plastique': {'main_port_id': 22212252, 'sub_port_id': 22212300, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684877, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'kraft': {'main_port_id': 22212252, 'sub_port_id': 22212301, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684878, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'metal': {'main_port_id': 22212252, 'sub_port_id': 22212302, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684879, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'cartonnette': {'main_port_id': 22212252, 'sub_port_id': 22212303, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684880, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}, 'Carton_gris': {'main_port_id': 22212252, 'sub_port_id': 22212304, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14684881, 'last_updated_at': datetime.datetime(2025, 4, 10, 8, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 8, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 8, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212264 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212265 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212302,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212303,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22212304,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22212268 lien utilise dans velours : https://www.fotonower.com/velours/22212281,22212285,22212289,22212293,22212296,22212298,22212299,22212300,22212301,22212302,22212303,22212304?tags=Teint_Dans_La_Masse,mal_croppe,environnement,Carton_brun,flou,papier,autre_refus,plastique,kraft,metal,cartonnette,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22212252]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] map_info['map_portfolio_photo'] : {22212252: [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436, 1351074350, 1351074345, 1351074332, 1351074329, 1351074090, 1351074079, 1351074050, 1351073972, 1351073902, 1351073550, 1351073543, 1351073309, 1351073308, 1351073306, 1351073288, 1351073225, 1351073213, 1351073203, 1351073201, 1351073198, 1351073194, 1351073167, 1351073162, 1351073157, 1351073129, 1351073124, 1351073019, 1351073015, 1351073007, 1351072849, 1351072842, 1351072832, 1351072818, 1351072677, 1351072659, 1351072657, 1351072652, 1351072606, 1351072600, 1351072593, 1351072584, 1351072576, 1351072545, 1351072540, 1351072535, 1351072534, 1351072527]} final : False mtd_id 4302 list_pids : [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] Looping around the photos to save general results len do output : 1 /22212252. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22212252', "{'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268}", None, None, None, None, '2738537'), ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537')] time used for this insertion : 0.01378178596496582 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8453507423400879 time spend to save output : 0.014098882675170898 total time spend for step 1 : 0.8594496250152588 step2:final Thu Apr 10 08:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22212252) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 22212252 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351072540,1351072545,1351072534,1351072535,1351072527,1351072606,1351072600,1351072593,1351072584,1351072576,1351072677,1351072659,1351072657,1351072652,1351072849,1351072842,1351072832,1351072818,1351073019,1351073015,1351073007,1351073167,1351073162,1351073157,1351073129,1351073124,1351073225,1351073213,1351073203,1351073201,1351073198,1351073194,1351073309,1351073308,1351073306,1351073288,1351073550,1351073543,1351074090,1351074079,1351074050,1351073972,1351074350,1351073902,1351074345,1351074332,1351074329,1351074471,1351074453,1351074442,1351074436,1351074591,1351074574,1351074571); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22212252]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} new output for save of step final : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] map_info['map_portfolio_photo'] : {22212252: [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436, 1351074350, 1351074345, 1351074332, 1351074329, 1351074090, 1351074079, 1351074050, 1351073972, 1351073902, 1351073550, 1351073543, 1351073309, 1351073308, 1351073306, 1351073288, 1351073225, 1351073213, 1351073203, 1351073201, 1351073198, 1351073194, 1351073167, 1351073162, 1351073157, 1351073129, 1351073124, 1351073019, 1351073015, 1351073007, 1351072849, 1351072842, 1351072832, 1351072818, 1351072677, 1351072659, 1351072657, 1351072652, 1351072606, 1351072600, 1351072593, 1351072584, 1351072576, 1351072545, 1351072540, 1351072535, 1351072534, 1351072527]} final : False mtd_id 4302 list_pids : [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] Looping around the photos to save general results len do output : 7 /1351074591.Didn't retrieve data . /1351074574.Didn't retrieve data . /1351074571.Didn't retrieve data . /1351074471.Didn't retrieve data . /1351074453.Didn't retrieve data . /1351074442.Didn't retrieve data . /1351074436.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22212252', '1351074591', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074574', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074571', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074471', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074453', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074442', '0.07462580027841696', None, None, None, None, '2738537'), ('4302', '22212252', '1351074436', '0.07462580027841696', None, None, None, None, '2738537')] time used for this insertion : 0.013898134231567383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07076764106750488 time spend to save output : 0.014275550842285156 total time spend for step 2 : 0.08504319190979004 step3:velours_tree Thu Apr 10 08:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22212252: [{'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268}]} input_args_next_step : {22212252: ()} output_args : {22212252: [{'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268}]} args : 22212252 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22212252) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22212252]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.30834484100341797 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.3083977699279785 step4:send_mail_cod Thu Apr 10 08:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} input_args_next_step : {1351074591: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074591 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074574 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074571 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074471 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074453 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074442 depend.output_id : 0 input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ()} output_args : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',)} args : 1351074436 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22212252: [{'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268}]} input_args_next_step : {1351074591: ('0.07462580027841696',), 1351074574: ('0.07462580027841696',), 1351074571: ('0.07462580027841696',), 1351074471: ('0.07462580027841696',), 1351074453: ('0.07462580027841696',), 1351074442: ('0.07462580027841696',), 1351074436: ('0.07462580027841696',), 22212252: ()} output_args : {22212252: [{'Teint_Dans_La_Masse': 22212257, 'mal_croppe': 22212258, 'environnement': 22212259, 'Carton_brun': 22212260, 'flou': 22212261, 'papier': 22212262, 'autre_refus': 22212263, 'plastique': 22212264, 'kraft': 22212265, 'metal': 22212266, 'cartonnette': 22212267, 'Carton_gris': 22212268}]} args : 22212252 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :8, first value : ('0.07462580027841696',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22212252) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1351074591,1351074574,1351074571,1351074471,1351074453,1351074442,1351074436) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351074436 begin to download photo : 1351074453 begin to download photo : 1351074571 begin to download photo : 1351074591 download finish for photo 1351074571 begin to download photo : 1351074574 download finish for photo 1351074453 begin to download photo : 1351074471 download finish for photo 1351074591 download finish for photo 1351074436 begin to download photo : 1351074442 download finish for photo 1351074574 download finish for photo 1351074471 download finish for photo 1351074442 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222122581744267498/ imagette222122611744267498/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22212252_10-04-2025_08_44_58.pdf 22212258 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222122581744267498 22212261 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222122611744267498 22212263 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073115: '1744266927_3937774_1351072842_c2d8bcfc53b2d2099d4860dd977a3a4c_rle_crop_3753476612_0.png', 1351073237: '1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478326_0.png', 1351073238: '1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478322_0.png', 1351073239: '1744266973_4019836_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478342_0.png', 1351073240: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478363_0.png', 1351073852: '1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478326_0.png', 1351073853: '1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478322_0.png', 1351073855: '1744267113_4021802_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478342_0.png', 1351073856: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478363_0.png', 1351074232: '1744267171_4022652_1351073309_ed44a553fab4d34752419914c2bbf51a_rle_crop_3753480227_0.png', 1351074638: '1744267408_3946474_1351074332_fb590373d1a2848c6018bd1f1f652ed3_rle_crop_3753482912_0.png', 1351074640: '1744267408_3946474_1351074329_3724effdbb2ad2df07448887fb86ea48_rle_crop_3753482923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1e590757f8b22d269736ba3fd2eba5e7_363871.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f666934c8a327962e1cf674c87cf792c_25405085.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8d0ab36859c97e9fca50811a1ea89840_47791939.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5b0e39cc82367a9c4a913259e3b870c2_6996732.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bd943befda7f5eab97f7b49e225dcc05_50919840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f666934c8a327962e1cf674c87cf792c_37485413.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8d0ab36859c97e9fca50811a1ea89840_42252616.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5b0e39cc82367a9c4a913259e3b870c2_76723890.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bd943befda7f5eab97f7b49e225dcc05_63186.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d2a5989e05d9c47013849eaa74140a8e_25958127.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/764ca086f886e3ac81bf4b182039f43b_556795.png change filename to text .imagette222122631744267498/ imagette222122631744267498/1744266973_4019836_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478342_0.png.png imagette222122631744267498/1744267408_3946474_1351074329_3724effdbb2ad2df07448887fb86ea48_rle_crop_3753482923_0.png.png imagette222122631744267498/1744267113_4021802_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478342_0.png.png imagette222122631744267498/1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478322_0.png.png imagette222122631744267498/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478363_0.png.png imagette222122631744267498/1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478326_0.png.png imagette222122631744267498/1744267408_3946474_1351074332_fb590373d1a2848c6018bd1f1f652ed3_rle_crop_3753482912_0.png.png imagette222122631744267498/1744266927_3937774_1351072842_c2d8bcfc53b2d2099d4860dd977a3a4c_rle_crop_3753476612_0.png.png imagette222122631744267498/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478363_0.png.png imagette222122631744267498/1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478326_0.png.png imagette222122631744267498/1744267171_4022652_1351073309_ed44a553fab4d34752419914c2bbf51a_rle_crop_3753480227_0.png.png imagette222122631744267498/1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478322_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/15179ba2b4f7930dea591e8b2515f940_78861723.png imagette222122631744267498 22212264 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212264 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073257: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478369_0.png', 1351073934: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/97fc1f6faa17d45889fb05665f9de782_3633577.png change filename to text .imagette222122641744267499/ imagette222122641744267499/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478369_0.png.png imagette222122641744267499/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478369_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/97fc1f6faa17d45889fb05665f9de782_15337273.png imagette222122641744267499 22212265 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212265 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351074748: '1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483103_0.png'} change filename to text .imagette222122651744267500/ imagette222122651744267500/1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483103_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/abdf3af6ca7585a70136643e88cf510a_52729957.png imagette222122651744267500 22212266 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351074662: '1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482889_0.png'} change filename to text .imagette222122661744267500/ imagette222122661744267500/1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482889_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9bcc1484edb665d4d9cc3677eff0abdd_56302375.png imagette222122661744267500 22212267 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073891: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478355_0.png', 1351074745: '1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483102_0.png', 1351074656: '1744267408_3946474_1351074332_fb590373d1a2848c6018bd1f1f652ed3_rle_crop_3753482908_0.png', 1351074654: '1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482893_0.png', 1351074652: '1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482891_0.png', 1351074299: '1744267191_4022890_1351073124_b8881819a0f4d237ce76e31718bfeb0f_rle_crop_3753480688_0.png', 1351074298: '1744267191_4022890_1351073225_c9e996c9d634281e90fb38751fdc3be6_rle_crop_3753480304_0.png', 1351073895: '1744267113_4021802_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478380_0.png', 1351073894: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478371_0.png', 1351073117: '1744266927_3937774_1351072832_2ab871031256cc6fbb0c0e5c8eaa09d3_rle_crop_3753476700_0.png', 1351073890: '1744267113_4021802_1351072677_79bf7ad9b548599fe9433d3c0946a4cf_rle_crop_3753478291_0.png', 1351073251: '1744266973_4019836_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478380_0.png', 1351073250: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478371_0.png', 1351073249: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478355_0.png', 1351073248: '1744266973_4019836_1351072677_79bf7ad9b548599fe9433d3c0946a4cf_rle_crop_3753478291_0.png', 1351073184: '1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477684_0.png', 1351073183: '1744266932_4019137_1351072659_46119ced77c331a3bdb84f89bef096b5_rle_crop_3753477523_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4fa813bcd04b9697323a4809bdc971e1_16705511.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/09ad3e664b9ac5f25b2969de18185210_72939550.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/47bae092e848425801b1cbf618449439_73670468.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b8b750de1b93e3386121b7cb38048583_38579804.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/93d424d7c4adc3106ee3dcdfb5c92345_1506685.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4d6f6cfcb4cfd0bd298d867bdcc461ac_34734826.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2047169825cf13ccb7f17f124e192bee_48275597.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6987246d3e7fd2f0e316eb4a71801b1b_63824727.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9a7f03f994a92ed68398d0ce00cb75f6_70111420.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8692d049623c97e9467baa671ee17d42_85747334.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e56a8dc92c0a1560a5bd7edde2017420_91670154.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6987246d3e7fd2f0e316eb4a71801b1b_29522520.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9a7f03f994a92ed68398d0ce00cb75f6_6685636.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4fa813bcd04b9697323a4809bdc971e1_22117960.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e56a8dc92c0a1560a5bd7edde2017420_70927731.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3bd222deb688d758d2d5b849ba20fd27_15584964.png change filename to text .imagette222122671744267500/ imagette222122671744267500/1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477684_0.png.png imagette222122671744267500/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478355_0.png.png imagette222122671744267500/1744266973_4019836_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478380_0.png.png imagette222122671744267500/1744267408_3946474_1351074332_fb590373d1a2848c6018bd1f1f652ed3_rle_crop_3753482908_0.png.png imagette222122671744267500/1744266927_3937774_1351072832_2ab871031256cc6fbb0c0e5c8eaa09d3_rle_crop_3753476700_0.png.png imagette222122671744267500/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478355_0.png.png imagette222122671744267500/1744267191_4022890_1351073225_c9e996c9d634281e90fb38751fdc3be6_rle_crop_3753480304_0.png.png imagette222122671744267500/1744267113_4021802_1351072677_79bf7ad9b548599fe9433d3c0946a4cf_rle_crop_3753478291_0.png.png imagette222122671744267500/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478371_0.png.png imagette222122671744267500/1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482891_0.png.png imagette222122671744267500/1744267113_4021802_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478380_0.png.png imagette222122671744267500/1744267191_4022890_1351073124_b8881819a0f4d237ce76e31718bfeb0f_rle_crop_3753480688_0.png.png imagette222122671744267500/1744266973_4019836_1351072677_79bf7ad9b548599fe9433d3c0946a4cf_rle_crop_3753478291_0.png.png imagette222122671744267500/1744267408_3946474_1351074345_6622ba36cf53795c897311bf761ba13b_rle_crop_3753482893_0.png.png imagette222122671744267500/1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483102_0.png.png imagette222122671744267500/1744266932_4019137_1351072659_46119ced77c331a3bdb84f89bef096b5_rle_crop_3753477523_0.png.png imagette222122671744267500/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478371_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a3fd34a9da0a6f8830d996aa33e3854f_17008997.png imagette222122671744267500 22212257 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212257 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073629: '1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_bib_crop_3753478325_0.jpg', 1351074740: '1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483108_0.png', 1351074243: '1744267191_4022890_1351073124_b8881819a0f4d237ce76e31718bfeb0f_rle_crop_3753480700_0.png', 1351074241: '1744267191_4022890_1351073157_d8726d7808df7d3c71a8c87427f92263_rle_crop_3753480409_0.png', 1351074239: '1744267191_4022890_1351073225_c9e996c9d634281e90fb38751fdc3be6_rle_crop_3753480309_0.png', 1351074205: '1744267171_4022652_1351073198_c78e18cb8b8c9f62f3d4f15e6c21ebc2_rle_crop_3753480392_0.png', 1351073790: '1744267169_3941512_1351073288_c14828fa6f8605ff7a5fdd32a47f699f_rle_crop_3753479658_0.png', 1351073786: '1744267169_3941512_1351073308_b392ebb7c44f71b5e6f49727a2da7f2d_rle_crop_3753479468_0.png', 1351073633: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478358_0.png', 1351073632: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478372_0.png', 1351073631: '1744267113_4021802_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478346_0.png', 1351073630: '1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753479309_0.png', 1351073022: '1744266830_4017411_1351072545_a02591578c0bba1e55f030e35cedcbd9_rle_crop_3753476189_0.png', 1351073218: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478358_0.png', 1351073217: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478372_0.png', 1351073216: '1744266973_4019836_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478346_0.png', 1351073215: '1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478325_0.png', 1351073182: '1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477685_0.png', 1351073181: '1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477683_0.png', 1351073180: '1744266932_4019137_1351072657_49f5077fe296ce82b351494e7e956e9c_rle_crop_3753477534_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/76495cb8c8e46757a1400a64620811e8_12272155.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f250bbca95acc78db50751fbc5c8bdcf_74544050.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5d8213f6f41d3be4a798b6feed5d23af_67940674.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/234e77d9c0d0e953f1d932ae626371d4_26255305.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7d18c69831787cfdf51c83f1b3d89f65_74663179.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b69bc2574f3fca318c422536d3e2cb96_64881683.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/023e61c4479a32a998eb333599528b56_70211051.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7aa16836ac908fb61bfd0d73accf2ce4_82011865.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/47aaf81d64fbb74e3c87952529d7d7b9_17289630.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0095d225a99a8d04ceea434f75562c41_20757542.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c5f4c6007a912e435054d5e0d0f40377_31423295.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0a17c3b37d17d838778bc6bf8ca89d0d_53244572.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3c66c270f0ec792bdeeea9b53c5040d1_84282913.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/47aaf81d64fbb74e3c87952529d7d7b9_67097037.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0095d225a99a8d04ceea434f75562c41_3255884.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c5f4c6007a912e435054d5e0d0f40377_84015661.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b0fda4a3d5757d92a14fedf4c4c18df9_44514777.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/dc74ca574fe6b318d732975ca0005492_31286260.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4a5a32490f3bc45e8312705a164d27c3_15606738.png change filename to text .imagette222122571744267501/ imagette222122571744267501/1744267191_4022890_1351073225_c9e996c9d634281e90fb38751fdc3be6_rle_crop_3753480309_0.png.png imagette222122571744267501/1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753479309_0.png.png imagette222122571744267501/1744266932_4019137_1351072657_49f5077fe296ce82b351494e7e956e9c_rle_crop_3753477534_0.png.png imagette222122571744267501/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478372_0.png.png imagette222122571744267501/1744267169_3941512_1351073288_c14828fa6f8605ff7a5fdd32a47f699f_rle_crop_3753479658_0.png.png imagette222122571744267501/1744266973_4019836_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478346_0.png.png imagette222122571744267501/1744267191_4022890_1351073124_b8881819a0f4d237ce76e31718bfeb0f_rle_crop_3753480700_0.png.png imagette222122571744267501/1744267191_4022890_1351073157_d8726d7808df7d3c71a8c87427f92263_rle_crop_3753480409_0.png.png imagette222122571744267501/1744266973_4019836_1351072600_70abd73341a6eb935b6d2120e5de04f2_rle_crop_3753478325_0.png.png imagette222122571744267501/1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483108_0.png.png imagette222122571744267501/1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477685_0.png.png imagette222122571744267501/1744267113_4021802_1351072593_1b00fc265a9cfa6f7d45fa8a75365b43_rle_crop_3753478346_0.png.png imagette222122571744267501/1744267113_4021802_1351072600_70abd73341a6eb935b6d2120e5de04f2_bib_crop_3753478325_0.jpg.jpg imagette222122571744267501/1744266830_4017411_1351072545_a02591578c0bba1e55f030e35cedcbd9_rle_crop_3753476189_0.png.png imagette222122571744267501/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478358_0.png.png imagette222122571744267501/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478358_0.png.png imagette222122571744267501/1744267169_3941512_1351073308_b392ebb7c44f71b5e6f49727a2da7f2d_rle_crop_3753479468_0.png.png imagette222122571744267501/1744266932_4019137_1351072652_98de522e9574a340bc3c19c7890e1186_rle_crop_3753477683_0.png.png imagette222122571744267501/1744267171_4022652_1351073198_c78e18cb8b8c9f62f3d4f15e6c21ebc2_rle_crop_3753480392_0.png.png imagette222122571744267501/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478372_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/00b2d0ba47ed6fce8716ba84f6045ac4_37502526.png imagette222122571744267501 22212260 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073026: '1744266830_4017411_1351072545_a02591578c0bba1e55f030e35cedcbd9_rle_crop_3753476185_0.png', 1351073027: '1744266830_4017411_1351072540_3b039afc986836fe46923c7f51a05888_rle_crop_3753476272_0.png', 1351073253: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478364_0.png', 1351073254: '1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478365_0.png', 1351073918: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478364_0.png', 1351073919: '1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478365_0.png', 1351074300: '1744267191_4022890_1351073162_f6205373226bdd862b8ab6b3429780eb_rle_crop_3753480371_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cbca8e417611a1b64c7654091bc529d6_5850893.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/cbca8e417611a1b64c7654091bc529d6_73052920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6a309acda2458664de6c47f5ab0a589e_51751924.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6723e437e84c87539ccc49df51d6e7ef_36240331.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6a309acda2458664de6c47f5ab0a589e_91320549.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6723e437e84c87539ccc49df51d6e7ef_24572498.png change filename to text .imagette222122601744267502/ imagette222122601744267502/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478364_0.png.png imagette222122601744267502/1744267113_4021802_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478365_0.png.png imagette222122601744267502/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478365_0.png.png imagette222122601744267502/1744266830_4017411_1351072540_3b039afc986836fe46923c7f51a05888_rle_crop_3753476272_0.png.png imagette222122601744267502/1744266830_4017411_1351072545_a02591578c0bba1e55f030e35cedcbd9_rle_crop_3753476185_0.png.png imagette222122601744267502/1744266973_4019836_1351072584_d0d8952469ee09b97dd0c5d930e4b829_rle_crop_3753478364_0.png.png imagette222122601744267502/1744267191_4022890_1351073162_f6205373226bdd862b8ab6b3429780eb_rle_crop_3753480371_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/1110a0d3b93ee70823898f40669b1e5e_74798351.png imagette222122601744267502 22212268 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351073243: '1744266973_4019836_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478375_0.png', 1351073831: '1744267169_3941512_1351073308_b392ebb7c44f71b5e6f49727a2da7f2d_rle_crop_3753479466_0.png', 1351073877: '1744267113_4021802_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478375_0.png', 1351074267: '1744267191_4022890_1351073129_f638a533f5a7eded106ab1c138195799_rle_crop_3753480430_0.png', 1351074271: '1744267171_4022652_1351073309_ed44a553fab4d34752419914c2bbf51a_rle_crop_3753480226_0.png', 1351074273: '1744267171_4022652_1351073213_271e8463e436e17bec60a70b7d56cef7_rle_crop_3753480248_0.png', 1351074744: '1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483109_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b19fa7f12b285d459943020ebe4c85d8_64368579.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/52ab5fc960641175564f49d2f730f9fc_79055260.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b19fa7f12b285d459943020ebe4c85d8_41259847.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d5688db4d086063fe49a3298d55c74d6_50502984.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/db2bb950989e1f4e98e51288e9d21adc_78745596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6dbff22a86f77798d0f8f1e25a35d41c_12639871.png change filename to text .imagette222122681744267502/ imagette222122681744267502/1744267169_3941512_1351073308_b392ebb7c44f71b5e6f49727a2da7f2d_rle_crop_3753479466_0.png.png imagette222122681744267502/1744267171_4022652_1351073213_271e8463e436e17bec60a70b7d56cef7_rle_crop_3753480248_0.png.png imagette222122681744267502/1744267113_4021802_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478375_0.png.png imagette222122681744267502/1744267433_4026359_1351073543_ae2777a2241a986e6e9aae67a9519ffb_rle_crop_3753483109_0.png.png imagette222122681744267502/1744266973_4019836_1351072576_93257de3b784b77e26f5159117064fed_rle_crop_3753478375_0.png.png imagette222122681744267502/1744267171_4022652_1351073309_ed44a553fab4d34752419914c2bbf51a_rle_crop_3753480226_0.png.png imagette222122681744267502/1744267191_4022890_1351073129_f638a533f5a7eded106ab1c138195799_rle_crop_3753480430_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2df3984d3220e0b321a4f39b98799e6b_65145694.png imagette222122681744267502 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22212252 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22212281,22212285,22212289,22212293,22212296,22212298,22212299,22212300,22212301,22212302,22212303,22212304?tags=Teint_Dans_La_Masse,mal_croppe,environnement,Carton_brun,flou,papier,autre_refus,plastique,kraft,metal,cartonnette,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1351074591] : ('0.07462580027841696',) no score found for photo 1351074591 We are sending mail with results at report@fotonower.com args[1351074574] : ('0.07462580027841696',) no score found for photo 1351074574 We are sending mail with results at report@fotonower.com args[1351074571] : ('0.07462580027841696',) no score found for photo 1351074571 We are sending mail with results at report@fotonower.com args[1351074471] : ('0.07462580027841696',) no score found for photo 1351074471 We are sending mail with results at report@fotonower.com args[1351074453] : ('0.07462580027841696',) no score found for photo 1351074453 We are sending mail with results at report@fotonower.com args[1351074442] : ('0.07462580027841696',) no score found for photo 1351074442 We are sending mail with results at report@fotonower.com args[1351074436] : ('0.07462580027841696',) no score found for photo 1351074436 We are sending mail with results at report@fotonower.com refus_total : 0.07462580027841696 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf results_Auto_P22212252_10-04-2025_08_44_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22212252','results_Auto_P22212252_10-04-2025_08_44_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf','pdf','','0.24','0.07462580027841696') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22212252]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] map_info['map_portfolio_photo'] : {22212252: [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436, 1351074350, 1351074345, 1351074332, 1351074329, 1351074090, 1351074079, 1351074050, 1351073972, 1351073902, 1351073550, 1351073543, 1351073309, 1351073308, 1351073306, 1351073288, 1351073225, 1351073213, 1351073203, 1351073201, 1351073198, 1351073194, 1351073167, 1351073162, 1351073157, 1351073129, 1351073124, 1351073019, 1351073015, 1351073007, 1351072849, 1351072842, 1351072832, 1351072818, 1351072677, 1351072659, 1351072657, 1351072652, 1351072606, 1351072600, 1351072593, 1351072584, 1351072576, 1351072545, 1351072540, 1351072535, 1351072534, 1351072527]} final : False mtd_id 4302 list_pids : [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22212252', '1351074591', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537')] time used for this insertion : 0.012786149978637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.860124349594116 time spend to save output : 0.012981176376342773 total time spend for step 4 : 5.873105525970459 step5:split_time_score Thu Apr 10 08:45:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22212252'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('22212252',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22212252) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351074591: {'path': 'temp/1744267498_1503708_1351074591_851aadba1cd2fba4e64f48f22eee24ee.jpg', 'extension': 'jpg'}, 1351074571: {'path': 'temp/1744267498_1503708_1351074571_823979f7873a234bcea830f2e1224e3e.jpg', 'extension': 'jpg'}, 1351074574: {'path': 'temp/1744267498_1503708_1351074574_6fc22f61a5ec6f977248c36f75512931.jpg', 'extension': 'jpg'}, 1351074453: {'path': 'temp/1744267498_1503708_1351074453_b31257959a920825ec29ec79a0ffb143.jpg', 'extension': 'jpg'}, 1351074471: {'path': 'temp/1744267498_1503708_1351074471_e84dae3d5a8bc9888b3f5bf9c67a7e91.jpg', 'extension': 'jpg'}, 1351074436: {'path': 'temp/1744267498_1503708_1351074436_1efc529a1161b232549cfa822589843e.jpg', 'extension': 'jpg'}, 1351074442: {'path': 'temp/1744267498_1503708_1351074442_d262cd1552e909f5299c29885e9dfa0c.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 22212252; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22212252 group by h (('08', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22212252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22212252) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22212252) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22212252 Nombre de photos uploadées : 54 / 23040 (0%) 10042025 22212252 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 10042025 22212252 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1351072540, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/3b039afc986836fe46923c7f51a05888.jpg', 'username': None, 'uploaded_at': 1744266692, 'text': 'image_10042025_08_30_03_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351072545, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a02591578c0bba1e55f030e35cedcbd9.jpg', 'username': None, 'uploaded_at': 1744266692, 'text': 'image_10042025_08_30_03_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351072534, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e042a5252e701e4ff14a9d0d76919472.jpg', 'username': None, 'uploaded_at': 1744266692, 'text': 'image_10042025_08_30_13_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351072535, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5e4820a0594e264e2973eac800802ffb.jpg', 'username': None, 'uploaded_at': 1744266692, 'text': 'image_10042025_08_30_13_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025191307067871094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22212252, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.09551048278808594 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737580, 'mtr_portfolio_id': 22210096, 'dashboard_result_id': 9980184, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737580, 'mtr_portfolio_id': 22210910, 'dashboard_result_id': 9980185, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737580, 'mtr_portfolio_id': 22211699, 'dashboard_result_id': 9980186, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211699_10-04-2025_08_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211768, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737580, 'mtr_portfolio_id': 22212252, 'dashboard_result_id': 9980187, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_43_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22212262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212268, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22210096 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738358, 'mtr_portfolio_id': 22210096, 'created_at': datetime.datetime(2025, 4, 10, 8, 6, 57), 'result': '0.06542313303095922', 'result_long': None, 'result_double': None}] Qualite : 0.06542313303095922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22210096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22210096 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, 'pht': 3726}}" where mtr_portfolio_id = 22210096 and dashboard_run_id = 1737580 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22210096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980184, 0.06542313303095922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210096_10-04-2025_08_06_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210171, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22210910 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738437, 'mtr_portfolio_id': 22210910, 'created_at': datetime.datetime(2025, 4, 10, 8, 17), 'result': '0.034224277757149035', 'result_long': None, 'result_double': None}] Qualite : 0.034224277757149035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22210910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22210910 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, 'pht': 3726}}" where mtr_portfolio_id = 22210910 and dashboard_run_id = 1737580 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22210910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980185, 0.034224277757149035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22210910_10-04-2025_08_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22210956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22210957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22210958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22210959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22210960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22210961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22210962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22210963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22210964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22210965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22210966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22210967, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22211699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738485, 'mtr_portfolio_id': 22211699, 'created_at': datetime.datetime(2025, 4, 10, 8, 32, 57), 'result': '0.042048389593596885', 'result_long': None, 'result_double': None}] Qualite : 0.042048389593596885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22211699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211699_10-04-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22211699 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211699_10-04-2025_08_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211768, 'pht': 3726}}" where mtr_portfolio_id = 22211699 and dashboard_run_id = 1737580 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22211699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980186, 0.042048389593596885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22211699_10-04-2025_08_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22211745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22211746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22211747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22211748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22211749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22211750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22211751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22211754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22211759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22211763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22211767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22211768, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22212252 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2738537, 'mtr_portfolio_id': 22212252, 'created_at': datetime.datetime(2025, 4, 10, 8, 44, 58), 'result': '0.07462580027841696', 'result_long': None, 'result_double': None}] Qualite : 0.07462580027841696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22212252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22212252 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22212262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212268, 'pht': 3726}}" where mtr_portfolio_id = 22212252 and dashboard_run_id = 1737580 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22212252 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9980187, 0.07462580027841696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22212252_10-04-2025_08_44_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22212257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22212258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22212259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22212260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22212261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22212262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22212263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22212264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22212265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22212266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22212267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22212268, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22210096,22210910,22211699,22212252) result : ((1351061247,), (1351061256,), (1351061259,), (1351061263,), (1351061266,), (1351061301,), (1351061304,), (1351061339,), (1351061345,), (1351061557,), (1351061576,), (1351061586,), (1351061594,), (1351061634,), (1351061685,), (1351061911,), (1351061950,), (1351061991,), (1351062276,), (1351062295,), (1351062322,), (1351062337,), (1351062377,), (1351062392,), (1351062581,), (1351062645,), (1351062670,), (1351062704,), (1351062731,), (1351062752,), (1351062755,), (1351062758,), (1351062762,), (1351062767,), (1351062773,), (1351062843,), (1351062853,), (1351062858,), (1351062861,), (1351062938,), (1351062950,), (1351062971,), (1351062982,), (1351062986,), (1351063106,), (1351063114,), (1351063115,), (1351063117,), (1351063122,), (1351063171,), (1351063177,), (1351063203,), (1351063234,), (1351063253,), (1351063259,), (1351063407,), (1351063411,), (1351063436,), (1351063448,), (1351063450,), (1351063526,), (1351063529,), (1351063530,), (1351063533,), (1351063614,), (1351063618,), (1351063632,), (1351063711,), (1351063795,), (1351063842,), (1351064048,), (1351064112,), (1351064164,), (1351066309,), (1351065809,), (1351066064,), (1351066152,), (1351066241,), (1351066644,), (1351066676,), (1351066714,), (1351066783,), (1351066910,), (1351066949,), (1351067076,), (1351067113,), (1351067118,), (1351067316,), (1351067339,), (1351067357,), (1351067362,), (1351067534,), (1351067584,), (1351067623,), (1351067909,), (1351067940,), (1351067952,), (1351067956,), (1351068255,), (1351068261,), (1351068271,), (1351068281,), (1351068472,), (1351068483,), (1351068551,), (1351068855,), (1351068869,), (1351068873,), (1351068883,), (1351068886,), (1351069290,), (1351069296,), (1351069313,), (1351069330,), (1351069343,), (1351069347,), (1351069574,), (1351069585,), (1351069594,), (1351069600,), (1351069764,), (1351069768,), (1351069773,), (1351069849,), (1351069834,), (1351069840,), (1351069843,), (1351069846,), (1351069909,), (1351069912,), (1351070111,), (1351070157,), (1351070227,), (1351070491,), (1351070527,), (1351070594,), (1351070923,), (1351070928,), (1351070946,), (1351070963,), (1351070976,), (1351070982,), (1351071080,), (1351071099,), (1351071130,), (1351071152,), (1351071164,), (1351071170,), (1351071240,), (1351071243,), (1351071247,), (1351071378,), (1351071385,), (1351071395,), (1351071417,), (1351071526,), (1351071642,), (1351071669,), (1351071695,), (1351071717,), (1351071727,), (1351071834,), (1351071835,), (1351071838,), (1351071841,), (1351071880,), (1351071886,), (1351071909,), (1351072048,), (1351072118,), (1351072180,), (1351072183,), (1351072198,), (1351072245,), (1351072266,), (1351072367,), (1351072411,), (1351072437,), (1351072441,), (1351072446,), (1351072547,), (1351072557,), (1351072527,), (1351072534,), (1351072535,), (1351072540,), (1351072545,), (1351072576,), (1351072584,), (1351072593,), (1351072600,), (1351072606,), (1351072652,), (1351072657,), (1351072659,), (1351072677,), (1351072818,), (1351072832,), (1351072842,), (1351072849,), (1351073007,), (1351073015,), (1351073019,), (1351073124,), (1351073129,), (1351073157,), (1351073162,), (1351073167,), (1351073194,), (1351073198,), (1351073201,), (1351073203,), (1351073213,), (1351073225,), (1351073288,), (1351073306,), (1351073308,), (1351073309,), (1351073543,), (1351073550,), (1351073902,), (1351073972,), (1351074050,), (1351074079,), (1351074090,), (1351074329,), (1351074332,), (1351074345,), (1351074350,), (1351074436,), (1351074442,), (1351074453,), (1351074471,), (1351074571,), (1351074574,), (1351074591,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22212252]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] map_info['map_portfolio_photo'] : {22212252: [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436, 1351074350, 1351074345, 1351074332, 1351074329, 1351074090, 1351074079, 1351074050, 1351073972, 1351073902, 1351073550, 1351073543, 1351073309, 1351073308, 1351073306, 1351073288, 1351073225, 1351073213, 1351073203, 1351073201, 1351073198, 1351073194, 1351073167, 1351073162, 1351073157, 1351073129, 1351073124, 1351073019, 1351073015, 1351073007, 1351072849, 1351072842, 1351072832, 1351072818, 1351072677, 1351072659, 1351072657, 1351072652, 1351072606, 1351072600, 1351072593, 1351072584, 1351072576, 1351072545, 1351072540, 1351072535, 1351072534, 1351072527]} final : True mtd_id 4302 list_pids : [1351074591, 1351074574, 1351074571, 1351074471, 1351074453, 1351074442, 1351074436] Looping around the photos to save general results len do output : 1 /22212252Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537') ('4302', None, None, None, None, None, None, None, '2738537') ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22212252', 'None', None, None, None, None, '2738537'), ('4302', '22212252', '1351074591', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074574', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074571', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074471', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074453', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074442', None, None, None, None, None, '2738537'), ('4302', '22212252', '1351074436', None, None, None, None, None, '2738537')] time used for this insertion : 0.012069940567016602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.40280771255493164 time spend to save output : 0.012255430221557617 total time spend for step 5 : 0.41506314277648926 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2738537) 2.14user 2.51system 0:10.11elapsed 46%CPU (0avgtext+0avgdata 159048maxresident)k 168inputs+16272outputs (16major+64081minor)pagefaults 0swaps