result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445503 , 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=22445452 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 (22445503) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445504 , 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=22445452 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 (22445504) result : ((1353852552,), (1353852866,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445505 , 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=22445452 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 (22445505) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445506 , 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=22445452 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 (22445506) result : ((1353852541,), (1353852542,), (1353852543,), (1353852544,), (1353852545,), (1353852760,), (1353852761,), (1353852858,), (1353852859,), (1353852860,), (1353852861,), (1353852862,), (1353852901,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445507 , 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=22445452 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 (22445507) result : ((1353851902,), (1353851903,), (1353851904,), (1353851906,), (1353852548,), (1353852549,), (1353852763,), (1353852764,), (1353852765,), (1353852863,), (1353852864,), (1353852903,), (1353852904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445508 , 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=22445452 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 (22445508) result : ((1353851857,), (1353851858,), (1353851859,), (1353851860,), (1353851863,), (1353852739,), (1353852740,), (1353852741,), (1353852742,), (1353852743,), (1353852744,), (1353852745,), (1353852746,), (1353852747,), (1353852748,), (1353852853,), (1353852854,), (1353852855,), (1353852856,), (1353852896,), (1353852897,), (1353852898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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 22445509 , 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=22445452 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 (22445509) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22445452) result : ((1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) 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 (1353848400) 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`=22445452 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','flou','kraft','plastique','autre_refus','environnement','metal','cartonnette','Carton_brun','mal_croppe','papier')) 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`=22445452 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','flou','kraft','plastique','autre_refus','environnement','metal','cartonnette','Carton_brun','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22445452, 'sub_port_id': 22445510, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890291, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'Carton_brun': {'main_port_id': 22445452, 'sub_port_id': 22445511, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890292, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'environnement': {'main_port_id': 22445452, 'sub_port_id': 22445512, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890293, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'plastique': {'main_port_id': 22445452, 'sub_port_id': 22445513, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890294, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'papier': {'main_port_id': 22445452, 'sub_port_id': 22445514, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890295, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'metal': {'main_port_id': 22445452, 'sub_port_id': 22445515, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890296, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'kraft': {'main_port_id': 22445452, 'sub_port_id': 22445516, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890297, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'mal_croppe': {'main_port_id': 22445452, 'sub_port_id': 22445517, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890298, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'Carton_gris': {'main_port_id': 22445452, 'sub_port_id': 22445518, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890299, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'cartonnette': {'main_port_id': 22445452, 'sub_port_id': 22445519, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890300, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22445452, 'sub_port_id': 22445520, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890301, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}, 'flou': {'main_port_id': 22445452, 'sub_port_id': 22445521, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14890302, 'last_updated_at': datetime.datetime(2025, 4, 25, 18, 24, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 18, 24, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 18, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445500 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445513,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445501 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445514,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445502 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445515,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445516,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22445521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22445509 lien utilise dans velours : https://www.fotonower.com/velours/22445510,22445511,22445512,22445513,22445514,22445515,22445516,22445517,22445518,22445519,22445520,22445521?tags=autre_refus,Carton_brun,environnement,plastique,papier,metal,kraft,mal_croppe,Carton_gris,cartonnette,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22445452]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] map_info['map_portfolio_photo'] : {22445452: [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868, 1353852825, 1353852803, 1353852777, 1353852771, 1353852579, 1353852565, 1353852561, 1353852557, 1353852553, 1353852546, 1353852246, 1353852243, 1353852240, 1353852227, 1353852091, 1353851759, 1353851729, 1353851667, 1353851552, 1353851468, 1353851390, 1353850724, 1353850717, 1353850693, 1353850666, 1353850622, 1353849388, 1353849328, 1353849280, 1353849235, 1353849172, 1353849157, 1353849147, 1353849121, 1353849091, 1353848816, 1353848790, 1353848763, 1353848736, 1353848707, 1353848434, 1353848430, 1353848427, 1353848421, 1353848400]} final : False mtd_id 4302 list_pids : [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] Looping around the photos to save general results len do output : 1 /22445452. 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, '2763658') ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22445452', "{'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509}", None, None, None, None, '2763658'), ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658')] time used for this insertion : 0.013772726058959961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4746065139770508 time spend to save output : 0.014061927795410156 total time spend for step 1 : 0.48866844177246094 step2:final Fri Apr 25 18:26:59 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 (22445452) 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 22445452 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353848434,1353848430,1353848427,1353848421,1353848400,1353848816,1353848790,1353848763,1353848736,1353848707,1353849172,1353849157,1353849147,1353849121,1353849091,1353849388,1353849328,1353849280,1353849235,1353850724,1353850717,1353850693,1353850666,1353850622,1353851759,1353851729,1353851667,1353851552,1353851468,1353851390,1353852246,1353852243,1353852240,1353852227,1353852091,1353852579,1353852565,1353852561,1353852557,1353852553,1353852546,1353852825,1353852803,1353852777,1353852771,1353852884,1353852880,1353852876,1353852873,1353852870,1353852868,1353852928,1353852924,1353852920,1353852917); 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([22445452]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} new output for save of step final : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] map_info['map_portfolio_photo'] : {22445452: [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868, 1353852825, 1353852803, 1353852777, 1353852771, 1353852579, 1353852565, 1353852561, 1353852557, 1353852553, 1353852546, 1353852246, 1353852243, 1353852240, 1353852227, 1353852091, 1353851759, 1353851729, 1353851667, 1353851552, 1353851468, 1353851390, 1353850724, 1353850717, 1353850693, 1353850666, 1353850622, 1353849388, 1353849328, 1353849280, 1353849235, 1353849172, 1353849157, 1353849147, 1353849121, 1353849091, 1353848816, 1353848790, 1353848763, 1353848736, 1353848707, 1353848434, 1353848430, 1353848427, 1353848421, 1353848400]} final : False mtd_id 4302 list_pids : [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] Looping around the photos to save general results len do output : 10 /1353852928.Didn't retrieve data . /1353852924.Didn't retrieve data . /1353852920.Didn't retrieve data . /1353852917.Didn't retrieve data . /1353852884.Didn't retrieve data . /1353852880.Didn't retrieve data . /1353852876.Didn't retrieve data . /1353852873.Didn't retrieve data . /1353852870.Didn't retrieve data . /1353852868.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, '2763658') ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22445452', '1353852928', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852924', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852920', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852917', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852884', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852880', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852876', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852873', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852870', '0.06115809162996481', None, None, None, None, '2763658'), ('4302', '22445452', '1353852868', '0.06115809162996481', None, None, None, None, '2763658')] time used for this insertion : 0.013539314270019531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06695914268493652 time spend to save output : 0.014023065567016602 total time spend for step 2 : 0.08098220825195312 step3:velours_tree Fri Apr 25 18:26:59 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 : {22445452: [{'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509}]} input_args_next_step : {22445452: ()} output_args : {22445452: [{'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509}]} args : 22445452 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 : ({'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22445452) 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([22445452]) 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.26714158058166504 time spend to save output : 3.886222839355469e-05 total time spend for step 3 : 0.2671804428100586 step4:send_mail_cod Fri Apr 25 18:27:00 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 : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} input_args_next_step : {1353852928: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852928 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852924 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852920 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852917 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852884 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852880 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852876 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852873 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852870 depend.output_id : 0 input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ()} output_args : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',)} args : 1353852868 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 : {22445452: [{'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509}]} input_args_next_step : {1353852928: ('0.06115809162996481',), 1353852924: ('0.06115809162996481',), 1353852920: ('0.06115809162996481',), 1353852917: ('0.06115809162996481',), 1353852884: ('0.06115809162996481',), 1353852880: ('0.06115809162996481',), 1353852876: ('0.06115809162996481',), 1353852873: ('0.06115809162996481',), 1353852870: ('0.06115809162996481',), 1353852868: ('0.06115809162996481',), 22445452: ()} output_args : {22445452: [{'autre_refus': 22445498, 'Carton_brun': 22445499, 'environnement': 22445500, 'plastique': 22445501, 'papier': 22445502, 'metal': 22445503, 'kraft': 22445504, 'mal_croppe': 22445505, 'Carton_gris': 22445506, 'cartonnette': 22445507, 'Teint_Dans_La_Masse': 22445508, 'flou': 22445509}]} args : 22445452 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 :11, first value : ('0.06115809162996481',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22445452) 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 (1353852928,1353852924,1353852920,1353852917,1353852884,1353852880,1353852876,1353852873,1353852870,1353852868) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353852868 begin to download photo : 1353852876 begin to download photo : 1353852917 begin to download photo : 1353852928 download finish for photo 1353852917 begin to download photo : 1353852920 download finish for photo 1353852876 begin to download photo : 1353852880 download finish for photo 1353852928 download finish for photo 1353852868 begin to download photo : 1353852870 download finish for photo 1353852880 begin to download photo : 1353852884 download finish for photo 1353852870 begin to download photo : 1353852873 download finish for photo 1353852920 begin to download photo : 1353852924 download finish for photo 1353852884 download finish for photo 1353852873 download finish for photo 1353852924 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22445452_25-04-2025_18_27_00.pdf 22445498 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=22445498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353851885: '1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575034_0.png', 1353851886: '1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575056_0.png', 1353852539: '1745598133_2207687_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576159_0.png', 1353852756: '1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577430_0.png', 1353852757: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577463_0.png', 1353852766: '1745598221_2258521_1353852091_f1c70da2957aa0fb47bb4c52192deb60_rle_crop_3770577544_0.png', 1353852857: '1745598252_2208766_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576159_0.png', 1353852899: '1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577875_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ab8288b2160abff43b38b8a4dcdd8a1e_53137655.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5e2cafadc9e8e5cb9b9b8703b0d62d3f_69829950.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7dd3d3acd907ac86157126e31e41db79_13369250.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/771ef8455d2f8cb40b3232ff0b2c5fe0_34647681.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f66e3b5ca7da78381d9ef4c13793a425_43726537.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8eaf32e74d17174fc48fd087242d7ddd_84021102.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7dd3d3acd907ac86157126e31e41db79_91452848.png change filename to text .imagette224454981745598420/ imagette224454981745598420/1745598133_2207687_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576159_0.png.png imagette224454981745598420/1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577430_0.png.png imagette224454981745598420/1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575056_0.png.png imagette224454981745598420/1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575034_0.png.png imagette224454981745598420/1745598252_2208766_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576159_0.png.png imagette224454981745598420/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577463_0.png.png imagette224454981745598420/1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577875_0.png.png imagette224454981745598420/1745598221_2258521_1353852091_f1c70da2957aa0fb47bb4c52192deb60_rle_crop_3770577544_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8a5bc51ff5e120860bdf36f058d2d850_2517562.png imagette224454981745598420 22445501 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=22445501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353852909: '1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577880_0.png'} change filename to text .imagette224455011745598420/ imagette224455011745598420/1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577880_0.png.png imagette224455031745598420/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/94c8b823bc36a117fa506247d3e6f2c3_73334176.png imagette224455011745598420 22445503 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=22445503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224455031745598420 22445504 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=22445504 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353852552: '1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576146_0.png', 1353852866: '1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576146_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8926d20830e36b28ce0543897daec1ef_79478896.png change filename to text .imagette224455041745598420/ imagette224455041745598420/1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576146_0.png.png imagette224455041745598420/1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576146_0.png.png imagette224455051745598421/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8926d20830e36b28ce0543897daec1ef_35295229.png imagette224455041745598420 22445505 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=22445505 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224455051745598421 22445507 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=22445507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353851902: '1745598073_2207080_1353849328_98b3a1753bbf3d3361b363da6b83a67f_rle_crop_3770575025_0.png', 1353851903: '1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575037_0.png', 1353851904: '1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575035_0.png', 1353851906: '1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575054_0.png', 1353852548: '1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575842_0.png', 1353852549: '1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576144_0.png', 1353852763: '1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577434_0.png', 1353852764: '1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577443_0.png', 1353852765: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577466_0.png', 1353852863: '1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575842_0.png', 1353852864: '1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576144_0.png', 1353852903: '1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577849_0.png', 1353852904: '1745598310_2209454_1353852777_60c60ad24deddb00d3285fbab902d3b7_rle_crop_3770577865_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/00560bc64a67421d03ff3c45dd2e55c7_18355675.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fa19c8ee63b4a8532b4cb3c2b06e3573_36029245.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f9040a93ec5ad4cc4826a7f784fee12e_77471114.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d404d8668ea026b1f6a68fd255fd3947_22319791.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cbb97d8d1704ff3d74115477057a26be_8534981.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0c2093c2dfa326819654e2a1520ee823_18285252.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/19432dfadc7258a09d583d016bf40f51_4408516.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4e4a363477f744da5791678ce011ed8d_78955976.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/48cdc9314d6b5dd00ade1228eef9f4b9_91549703.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cbb97d8d1704ff3d74115477057a26be_34006738.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0c2093c2dfa326819654e2a1520ee823_22537047.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fb9f90afd7a6d70df1e4dd9471838cac_71208955.png change filename to text .imagette224455071745598421/ imagette224455071745598421/1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575842_0.png.png imagette224455071745598421/1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576144_0.png.png imagette224455071745598421/1745598073_2207080_1353849328_98b3a1753bbf3d3361b363da6b83a67f_rle_crop_3770575025_0.png.png imagette224455071745598421/1745598310_2209454_1353852777_60c60ad24deddb00d3285fbab902d3b7_rle_crop_3770577865_0.png.png imagette224455071745598421/1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575054_0.png.png imagette224455071745598421/1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577443_0.png.png imagette224455071745598421/1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577434_0.png.png imagette224455071745598421/1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575037_0.png.png imagette224455071745598421/1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575842_0.png.png imagette224455071745598421/1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577849_0.png.png imagette224455071745598421/1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576144_0.png.png imagette224455071745598421/1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575035_0.png.png imagette224455071745598421/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577466_0.png.png imagette224455091745598421/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1dda3aed1dc7d2fcf0f7ddb08eb99ace_74957317.png imagette224455071745598421 22445509 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=22445509 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224455091745598421 22445499 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=22445499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353851911: '1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575044_0.png', 1353852550: '1745598133_2207687_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575864_0.png', 1353852767: '1745598192_2208182_1353852246_0f54a73e75159c00a70b1254f8308ce9_rle_crop_3770577421_0.png', 1353852768: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577469_0.png', 1353852770: '1745598221_2258521_1353852091_f1c70da2957aa0fb47bb4c52192deb60_rle_crop_3770577548_0.png', 1353852865: '1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575864_0.png', 1353852907: '1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577852_0.png', 1353852908: '1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577854_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c87309dad3cc558e83726c9a5853534c_68449324.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cf34f1d7e42fe86859bb6e4a8c88f67b_25556097.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f3bf945ecc5dc5c872454808f1ba8af7_69871328.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9cdda1ae2032e50a056dcae3af5e5f96_49336966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/09ae2a35f33436c3ead3fa73a3417ce4_53297593.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cf34f1d7e42fe86859bb6e4a8c88f67b_51485010.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b091eae8572b17ce5380ead410f18adc_28751140.png change filename to text .imagette224454991745598421/ imagette224454991745598421/1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575864_0.png.png imagette224454991745598421/1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577854_0.png.png imagette224454991745598421/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577469_0.png.png imagette224454991745598421/1745598073_2207080_1353849280_443573d469c58e3de164d4304c16371d_rle_crop_3770575044_0.png.png imagette224454991745598421/1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577852_0.png.png imagette224454991745598421/1745598221_2258521_1353852091_f1c70da2957aa0fb47bb4c52192deb60_rle_crop_3770577548_0.png.png imagette224454991745598421/1745598133_2207687_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575864_0.png.png imagette224454991745598421/1745598192_2208182_1353852246_0f54a73e75159c00a70b1254f8308ce9_rle_crop_3770577421_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1eca27d57ac042b488ce88562a29f861_27341976.png imagette224454991745598421 22445506 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=22445506 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353852541: '1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575841_0.png', 1353852542: '1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575840_0.png', 1353852543: '1745598133_2207687_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575860_0.png', 1353852544: '1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576147_0.png', 1353852545: '1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576149_0.png', 1353852760: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577470_0.png', 1353852761: '1745598192_2208182_1353851468_6814f8f30ab6e5abcd9effa320319435_rle_crop_3770577487_0.png', 1353852858: '1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_bib_crop_3770575841_0.jpg', 1353852859: '1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575840_0.png', 1353852860: '1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575860_0.png', 1353852861: '1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576147_0.png', 1353852862: '1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576149_0.png', 1353852901: '1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577876_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a953d674e02933346fac5e6c05ac62ca_43730451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/edec826f03b06c3ec5e97a77ccfbb1b3_29850024.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/84300cc2f79e5dd715a84a2efefc0efa_56722925.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fe5581cf53bc962ce12486c7cbd3cfc8_36459679.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8173f10dd57681dc5df8e2cec6cf0267_3859873.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a64e8f76b7190b059e2ed3335b13f1e7_9202633.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6473851fd6f912e5be8c016f903112cf_53453082.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/39578b0375c8cd33596a4c322a644928_12576838.jpg change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/edec826f03b06c3ec5e97a77ccfbb1b3_24458494.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/84300cc2f79e5dd715a84a2efefc0efa_81790904.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fe5581cf53bc962ce12486c7cbd3cfc8_57264688.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8173f10dd57681dc5df8e2cec6cf0267_47185233.png change filename to text .imagette224455061745598422/ imagette224455061745598422/1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_bib_crop_3770575841_0.jpg.jpg imagette224455061745598422/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577470_0.png.png imagette224455061745598422/1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577876_0.png.png imagette224455061745598422/1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576149_0.png.png imagette224455061745598422/1745598252_2208766_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575840_0.png.png imagette224455061745598422/1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575841_0.png.png imagette224455061745598422/1745598192_2208182_1353851468_6814f8f30ab6e5abcd9effa320319435_rle_crop_3770577487_0.png.png imagette224455061745598422/1745598133_2207687_1353849388_8639ca0a896118ae573966239062f95a_rle_crop_3770575840_0.png.png imagette224455061745598422/1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576149_0.png.png imagette224455061745598422/1745598133_2207687_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576147_0.png.png imagette224455061745598422/1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576147_0.png.png imagette224455061745598422/1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575860_0.png.png imagette224455061745598422/1745598133_2207687_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575860_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d6294258e484d427086e25df2343d916_35694594.png imagette224455061745598422 22445508 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=22445508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353852745: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577471_0.png', 1353852898: '1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577882_0.png', 1353852897: '1745598310_2209454_1353852777_60c60ad24deddb00d3285fbab902d3b7_rle_crop_3770577869_0.png', 1353852896: '1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577856_0.png', 1353852856: '1745598252_2208766_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576160_0.png', 1353852855: '1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576154_0.png', 1353852854: '1745598252_2208766_1353849147_6658d1415430ac8a262a25854ef956d4_rle_crop_3770575883_0.png', 1353852853: '1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575862_0.png', 1353852748: '1745598192_2208182_1353851390_e9992f396abbe474d15229dd24e845a6_rle_crop_3770577505_0.png', 1353852747: '1745598192_2208182_1353851468_6814f8f30ab6e5abcd9effa320319435_rle_crop_3770577493_0.png', 1353852746: '1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577476_0.png', 1353851857: '1745598073_2207080_1353849328_98b3a1753bbf3d3361b363da6b83a67f_rle_crop_3770575021_0.png', 1353852744: '1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577456_0.png', 1353852743: '1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577452_0.png', 1353852742: '1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577457_0.png', 1353852741: '1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577439_0.png', 1353852740: '1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577433_0.png', 1353852739: '1745598192_2208182_1353852246_0f54a73e75159c00a70b1254f8308ce9_rle_crop_3770577423_0.png', 1353851863: '1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575060_0.png', 1353851860: '1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575057_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f75cd696a512d0cc94cdd285852bfd42_72851118.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7221b537999b428e215987f615d37263_51099021.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bf61fbb2adca4194908dca5a0228a168_60584996.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/db648ef617fbbcd55cc128a9010ab3cd_17366461.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6c3008ac31fe1801824beff52d2f1639_94442682.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/18b7e870b065be12b2396bee35b43d0d_9599828.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ba9ec1c792b14c9962b9c01d5d436790_34035910.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9ca138e5ebb447a33ebde7cc7ee228d3_21140547.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/88db6c60d441d7ee86407f11d55ebf32_8153944.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/41221ff73e72d75eef722331dbe0e52b_27859032.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f77629760360cb3dcd33bab3f2a41395_40897993.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/47a64cfe26eb6a796ec2214fe0f9442b_17062907.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8a04819220bf262a003146c7433aa448_74088682.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4628b3b8a28096a369ae5cc87f3d933d_48785405.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d5f9563da034f1a8dd6875299991d2ca_37804147.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/846ba371edf5094acce2158358b3f915_48543018.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9d516cd51b6b4cd63af0eac5fae0a46a_62072646.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a8993629d44b3aa98b0f706aeac625f4_56281838.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/604e5213fbf98de40ae37154a2109489_58982326.png change filename to text .imagette224455081745598423/ imagette224455081745598423/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577476_0.png.png imagette224455081745598423/1745598252_2208766_1353849121_ad73250c8a918732c39184d52fb27989_rle_crop_3770576154_0.png.png imagette224455081745598423/1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577456_0.png.png imagette224455081745598423/1745598252_2208766_1353849157_1eb83ebec0b8c261d7d6e048a2f8ef56_rle_crop_3770575862_0.png.png imagette224455081745598423/1745598192_2208182_1353851552_97855ef454ce007d055249e010d88bfc_rle_crop_3770577471_0.png.png imagette224455081745598423/1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575060_0.png.png imagette224455081745598423/1745598252_2208766_1353849147_6658d1415430ac8a262a25854ef956d4_rle_crop_3770575883_0.png.png imagette224455081745598423/1745598192_2208182_1353852246_0f54a73e75159c00a70b1254f8308ce9_rle_crop_3770577423_0.png.png imagette224455081745598423/1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577452_0.png.png imagette224455081745598423/1745598073_2207080_1353849235_641fe281551e8f1d6fd9e5f8b461aa3d_rle_crop_3770575057_0.png.png imagette224455081745598423/1745598192_2208182_1353851468_6814f8f30ab6e5abcd9effa320319435_rle_crop_3770577493_0.png.png imagette224455081745598423/1745598252_2208766_1353849091_9b9cfd553c5e1a717e9b3c6736d7ac97_rle_crop_3770576160_0.png.png imagette224455081745598423/1745598310_2209454_1353852803_56579bcf6ec2f6c76c2f6d40357dd793_rle_crop_3770577856_0.png.png imagette224455081745598423/1745598310_2209454_1353852777_60c60ad24deddb00d3285fbab902d3b7_rle_crop_3770577869_0.png.png imagette224455081745598423/1745598192_2208182_1353851667_601a4e0591c6f9f1d9e7735b991ecf95_rle_crop_3770577457_0.png.png imagette224455081745598423/1745598310_2209454_1353852771_05c2903beabf15e99c5f60661e45afb4_rle_crop_3770577882_0.png.png imagette224455081745598423/1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577439_0.png.png imagette224455081745598423/1745598073_2207080_1353849328_98b3a1753bbf3d3361b363da6b83a67f_rle_crop_3770575021_0.png.png imagette224455081745598423/1745598192_2208182_1353851390_e9992f396abbe474d15229dd24e845a6_rle_crop_3770577505_0.png.png imagette224455081745598423/1745598192_2208182_1353851729_82c5a69c17438d44eb8bc295f9645924_rle_crop_3770577433_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b04e088c9eb517ebf87c8435af311b57_37700739.png imagette224455081745598423 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22445452 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22445510,22445511,22445512,22445513,22445514,22445515,22445516,22445517,22445518,22445519,22445520,22445521?tags=autre_refus,Carton_brun,environnement,plastique,papier,metal,kraft,mal_croppe,Carton_gris,cartonnette,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1353852928] : ('0.06115809162996481',) no score found for photo 1353852928 We are sending mail with results at report@fotonower.com args[1353852924] : ('0.06115809162996481',) no score found for photo 1353852924 We are sending mail with results at report@fotonower.com args[1353852920] : ('0.06115809162996481',) no score found for photo 1353852920 We are sending mail with results at report@fotonower.com args[1353852917] : ('0.06115809162996481',) no score found for photo 1353852917 We are sending mail with results at report@fotonower.com args[1353852884] : ('0.06115809162996481',) no score found for photo 1353852884 We are sending mail with results at report@fotonower.com args[1353852880] : ('0.06115809162996481',) no score found for photo 1353852880 We are sending mail with results at report@fotonower.com args[1353852876] : ('0.06115809162996481',) no score found for photo 1353852876 We are sending mail with results at report@fotonower.com args[1353852873] : ('0.06115809162996481',) no score found for photo 1353852873 We are sending mail with results at report@fotonower.com args[1353852870] : ('0.06115809162996481',) no score found for photo 1353852870 We are sending mail with results at report@fotonower.com args[1353852868] : ('0.06115809162996481',) no score found for photo 1353852868 We are sending mail with results at report@fotonower.com refus_total : 0.06115809162996481 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=22445452 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_P22445452_25-04-2025_18_27_00.pdf results_Auto_P22445452_25-04-2025_18_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22445452_25-04-2025_18_27_00.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','22445452','results_Auto_P22445452_25-04-2025_18_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22445452_25-04-2025_18_27_00.pdf','pdf','','0.26','0.06115809162996481') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22445452]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] map_info['map_portfolio_photo'] : {22445452: [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868, 1353852825, 1353852803, 1353852777, 1353852771, 1353852579, 1353852565, 1353852561, 1353852557, 1353852553, 1353852546, 1353852246, 1353852243, 1353852240, 1353852227, 1353852091, 1353851759, 1353851729, 1353851667, 1353851552, 1353851468, 1353851390, 1353850724, 1353850717, 1353850693, 1353850666, 1353850622, 1353849388, 1353849328, 1353849280, 1353849235, 1353849172, 1353849157, 1353849147, 1353849121, 1353849091, 1353848816, 1353848790, 1353848763, 1353848736, 1353848707, 1353848434, 1353848430, 1353848427, 1353848421, 1353848400]} final : False mtd_id 4302 list_pids : [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] 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, '2763658') ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22445452', '1353852928', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658')] time used for this insertion : 0.016022443771362305 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.331104040145874 time spend to save output : 0.016267061233520508 total time spend for step 4 : 5.3473711013793945 step5:split_time_score Fri Apr 25 18:27:05 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 : ['22445452'] 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 : [('22445452',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22445452) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353852928: {'path': 'temp/1745598420_2445381_1353852928_763e531057caa957d2d136130b984358.jpg', 'extension': 'jpg'}, 1353852876: {'path': 'temp/1745598420_2445381_1353852876_4fab852ed3a6bec8d450515128570d93.jpg', 'extension': 'jpg'}, 1353852880: {'path': 'temp/1745598420_2445381_1353852880_d1784f69b0e3f874043cb8c411511aad.jpg', 'extension': 'jpg'}, 1353852884: {'path': 'temp/1745598420_2445381_1353852884_77c109e7599c5d391bff9afb436cc30d.jpg', 'extension': 'jpg'}, 1353852868: {'path': 'temp/1745598420_2445381_1353852868_cd892ec6de3e6b4ee29f6aadc515959b.jpg', 'extension': 'jpg'}, 1353852870: {'path': 'temp/1745598420_2445381_1353852870_60fb398045fb810cd4ece41287ffb231.jpg', 'extension': 'jpg'}, 1353852873: {'path': 'temp/1745598420_2445381_1353852873_528790cb721defbcf8c70751d6bdf0f6.jpg', 'extension': 'jpg'}, 1353852917: {'path': 'temp/1745598420_2445381_1353852917_dbba46e23c8e814cf99d4982aa481ed3.jpg', 'extension': 'jpg'}, 1353852920: {'path': 'temp/1745598420_2445381_1353852920_bdfab9342cb82b196d59adc871f3577e.jpg', 'extension': 'jpg'}, 1353852924: {'path': 'temp/1745598420_2445381_1353852924_b67a3aa3b9565006a95d39dbe4ada2eb.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 = 22445452; (('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 = 22445452 group by h (('18', 55),) 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=22445452 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 (22445452) 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 (22445452) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22445452 Nombre de photos uploadées : 55 / 23040 (0%) 25042025 22445452 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 25042025 22445452 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1353848434, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8e0fdb0b69ae3c7484c970065f10e7b6.jpg', 'username': None, 'uploaded_at': 1745597767, 'text': 'image_25042025_18_15_04_10152.jpg'}, {'photo_id': 1353848430, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d26eac1408e15292eea126a0d49672b7.jpg', 'username': None, 'uploaded_at': 1745597767, 'text': 'image_25042025_18_15_14_9124.jpg'}, {'photo_id': 1353848427, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fb6b06296b717b62201c3bf229dfaf3e.jpg', 'username': None, 'uploaded_at': 1745597767, 'text': 'image_25042025_18_15_24_10141.jpg'}, {'photo_id': 1353848421, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a0e8195836358a4884df1df1f6d1ea6c.jpg', 'username': None, 'uploaded_at': 1745597767, 'text': 'image_25042025_18_15_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021140575408935547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22445452, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02570796012878418 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757903, 'mtr_portfolio_id': 22444937, 'dashboard_result_id': 10111810, '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_P22444937_25-04-2025_18_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22444962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22444963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22444964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22444965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22444966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22444967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22444968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22444969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22444970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22444971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22444972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22444973, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757903, 'mtr_portfolio_id': 22445452, 'dashboard_result_id': 10111811, '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_P22445452_25-04-2025_18_24_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22445498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22445499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22445500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22445501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22445502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22445503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22445504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22445505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22445506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22445507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22445508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22445509, '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 = 22444937 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': 2763612, 'mtr_portfolio_id': 22444937, 'created_at': datetime.datetime(2025, 4, 25, 18, 18, 58), 'result': '0.061254924995825945', 'result_long': None, 'result_double': None}] Qualite : 0.061254924995825945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22444937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22444937_25-04-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22444937 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_P22444937_25-04-2025_18_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22444962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22444963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22444964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22444965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22444966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22444967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22444968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22444969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22444970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22444971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22444972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22444973, 'pht': 3726}}" where mtr_portfolio_id = 22444937 and dashboard_run_id = 1757903 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`=22444937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10111810, 0.061254924995825945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22444937_25-04-2025_18_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22444962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22444963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22444964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22444965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22444966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22444967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22444968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22444969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22444970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22444971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22444972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22444973, '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 = 22445452 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': 2763658, 'mtr_portfolio_id': 22445452, 'created_at': datetime.datetime(2025, 4, 25, 18, 26, 59), 'result': '0.06115809162996481', 'result_long': None, 'result_double': None}] Qualite : 0.06115809162996481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22445452 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22445452_25-04-2025_18_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22445452 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_P22445452_25-04-2025_18_27_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22445498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22445499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22445500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22445501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22445502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22445503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22445504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22445505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22445506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22445507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22445508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22445509, 'pht': 3726}}" where mtr_portfolio_id = 22445452 and dashboard_run_id = 1757903 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`=22445452 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10111811, 0.06115809162996481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22445452_25-04-2025_18_27_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22445498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22445499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22445500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22445501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22445502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22445503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22445504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22445505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22445506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22445507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22445508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22445509, '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 (22444937,22445452) result : ((1353841609,), (1353841648,), (1353841668,), (1353841678,), (1353841686,), (1353841692,), (1353841696,), (1353841908,), (1353842188,), (1353842346,), (1353842458,), (1353842539,), (1353842621,), (1353842777,), (1353842823,), (1353842986,), (1353843183,), (1353844253,), (1353844306,), (1353844355,), (1353844408,), (1353844458,), (1353844510,), (1353845015,), (1353845044,), (1353845074,), (1353845104,), (1353845132,), (1353845953,), (1353845986,), (1353846534,), (1353846567,), (1353846574,), (1353846578,), (1353846582,), (1353846604,), (1353846982,), (1353846993,), (1353847015,), (1353847462,), (1353847491,), (1353847520,), (1353847540,), (1353847544,), (1353847548,), (1353847709,), (1353847758,), (1353847788,), (1353847832,), (1353848114,), (1353848131,), (1353848139,), (1353848145,), (1353848148,), (1353848157,), (1353848437,), (1353848400,), (1353848421,), (1353848427,), (1353848430,), (1353848434,), (1353848707,), (1353848736,), (1353848763,), (1353848790,), (1353848816,), (1353849091,), (1353849121,), (1353849147,), (1353849157,), (1353849172,), (1353849235,), (1353849280,), (1353849328,), (1353849388,), (1353850622,), (1353850666,), (1353850693,), (1353850717,), (1353850724,), (1353851390,), (1353851468,), (1353851552,), (1353851667,), (1353851729,), (1353851759,), (1353852091,), (1353852227,), (1353852240,), (1353852243,), (1353852246,), (1353852546,), (1353852553,), (1353852557,), (1353852561,), (1353852565,), (1353852579,), (1353852771,), (1353852777,), (1353852803,), (1353852825,), (1353852868,), (1353852870,), (1353852873,), (1353852876,), (1353852880,), (1353852884,), (1353852917,), (1353852920,), (1353852924,), (1353852928,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22445452]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] map_info['map_portfolio_photo'] : {22445452: [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868, 1353852825, 1353852803, 1353852777, 1353852771, 1353852579, 1353852565, 1353852561, 1353852557, 1353852553, 1353852546, 1353852246, 1353852243, 1353852240, 1353852227, 1353852091, 1353851759, 1353851729, 1353851667, 1353851552, 1353851468, 1353851390, 1353850724, 1353850717, 1353850693, 1353850666, 1353850622, 1353849388, 1353849328, 1353849280, 1353849235, 1353849172, 1353849157, 1353849147, 1353849121, 1353849091, 1353848816, 1353848790, 1353848763, 1353848736, 1353848707, 1353848434, 1353848430, 1353848427, 1353848421, 1353848400]} final : True mtd_id 4302 list_pids : [1353852928, 1353852924, 1353852920, 1353852917, 1353852884, 1353852880, 1353852876, 1353852873, 1353852870, 1353852868] Looping around the photos to save general results len do output : 1 /22445452Didn'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, '2763658') ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658') ('4302', None, None, None, None, None, None, None, '2763658') ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22445452', 'None', None, None, None, None, '2763658'), ('4302', '22445452', '1353852928', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852924', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852920', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852917', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852884', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852880', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852876', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852873', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852870', None, None, None, None, None, '2763658'), ('4302', '22445452', '1353852868', None, None, None, None, None, '2763658')] time used for this insertion : 0.013481378555297852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23313236236572266 time spend to save output : 0.013730049133300781 total time spend for step 5 : 0.24686241149902344 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 (2763658) 2.12user 2.59system 0:10.46elapsed 45%CPU (0avgtext+0avgdata 160072maxresident)k 200inputs+14136outputs (8major+64052minor)pagefaults 0swaps