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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032158 , 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=22032110 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032158) result : ((1349903151,), (1349903773,), (1349903775,), (1349903778,), (1349904152,), (1349904390,), (1349904391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032159 , 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=22032110 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032159) result : ((1349903431,), (1349904156,), (1349904157,), (1349904158,), (1349904160,), (1349904393,), (1349904394,), (1349904489,), (1349904491,), (1349904516,), (1349904517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032160 , 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=22032110 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 (22032160) result : ((1349903145,), (1349903146,), (1349903147,), (1349903415,), (1349903416,), (1349903417,), (1349903418,), (1349903419,), (1349903420,), (1349903421,), (1349903422,), (1349903715,), (1349903716,), (1349903718,), (1349903719,), (1349903720,), (1349904140,), (1349904471,), (1349904472,), (1349904473,), (1349904474,), (1349904475,), (1349904476,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032161 , 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=22032110 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 (22032161) result : ((1349903148,), (1349903430,), (1349903637,), (1349903737,), (1349903740,), (1349903742,), (1349903746,), (1349903748,), (1349903750,), (1349903752,), (1349903754,), (1349903756,), (1349903758,), (1349903760,), (1349903762,), (1349904149,), (1349904150,), (1349904384,), (1349904515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032162 , 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=22032110 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032162) result : ((1349903722,), (1349903723,), (1349904477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','Teint_Dans_La_Masse','environnement','cartonnette','papier','mal_croppe','flou','autre_refus','Carton_brun','plastique','kraft')) 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','Teint_Dans_La_Masse','environnement','cartonnette','papier','mal_croppe','flou','autre_refus','Carton_brun','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22032110, 'sub_port_id': 22032163, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524780, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'flou': {'main_port_id': 22032110, 'sub_port_id': 22032164, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524781, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'kraft': {'main_port_id': 22032110, 'sub_port_id': 22032165, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524782, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'mal_croppe': {'main_port_id': 22032110, 'sub_port_id': 22032166, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524783, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'papier': {'main_port_id': 22032110, 'sub_port_id': 22032167, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524784, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'metal': {'main_port_id': 22032110, 'sub_port_id': 22032168, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524785, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'environnement': {'main_port_id': 22032110, 'sub_port_id': 22032169, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524786, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'Carton_brun': {'main_port_id': 22032110, 'sub_port_id': 22032170, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524787, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'plastique': {'main_port_id': 22032110, 'sub_port_id': 22032171, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524788, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22032110, 'sub_port_id': 22032172, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524789, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'cartonnette': {'main_port_id': 22032110, 'sub_port_id': 22032173, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524790, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'autre_refus': {'main_port_id': 22032110, 'sub_port_id': 22032174, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524791, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 56, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 56, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032162 lien utilise dans velours : https://www.fotonower.com/velours/22032163,22032164,22032165,22032166,22032167,22032168,22032169,22032170,22032171,22032172,22032173,22032174?tags=Carton_gris,flou,kraft,mal_croppe,papier,metal,environnement,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] map_info['map_portfolio_photo'] : {22032110: [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187, 1349904121, 1349904043, 1349903960, 1349903955, 1349903725, 1349903714, 1349903710, 1349903706, 1349903702, 1349903699, 1349903625, 1349903620, 1349903606, 1349903602, 1349903471, 1349903446, 1349903441, 1349903435, 1349903391, 1349903390, 1349903388, 1349903385, 1349903380, 1349903378, 1349903365, 1349903363, 1349903350, 1349903349, 1349903339, 1349903337, 1349903180, 1349903177, 1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] Looping around the photos to save general results len do output : 1 /22032110. 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, '2721869') ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22032110', "{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}", None, None, None, None, '2721869'), ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869')] time used for this insertion : 0.017179489135742188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4191582202911377 time spend to save output : 0.017499923706054688 total time spend for step 1 : 1.4366581439971924 step2:final Tue Apr 15 14:59: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 ! 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 (22032110) 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 22032110 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349902588,1349902576,1349902561,1349902532,1349902749,1349902725,1349902701,1349902951,1349902946,1349902944,1349902936,1349902927,1349902895,1349903052,1349903049,1349903047,1349903044,1349903038,1349903040,1349903036,1349903034,1349903030,1349903029,1349903180,1349903177,1349903391,1349903390,1349903388,1349903385,1349903378,1349903380,1349903365,1349903363,1349903350,1349903349,1349903339,1349903337,1349903471,1349903446,1349903441,1349903435,1349903625,1349903620,1349903606,1349903602,1349903725,1349903714,1349903710,1349903706,1349903702,1349903699,1349904121,1349904043,1349903960,1349903955,1349904205,1349904199,1349904195,1349904191,1349904187,1349904376,1349904379,1349904361,1349904371,1349904340,1349904345); 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([22032110]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} new output for save of step final : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] map_info['map_portfolio_photo'] : {22032110: [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187, 1349904121, 1349904043, 1349903960, 1349903955, 1349903725, 1349903714, 1349903710, 1349903706, 1349903702, 1349903699, 1349903625, 1349903620, 1349903606, 1349903602, 1349903471, 1349903446, 1349903441, 1349903435, 1349903391, 1349903390, 1349903388, 1349903385, 1349903380, 1349903378, 1349903365, 1349903363, 1349903350, 1349903349, 1349903339, 1349903337, 1349903180, 1349903177, 1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] Looping around the photos to save general results len do output : 11 /1349904379.Didn't retrieve data . /1349904376.Didn't retrieve data . /1349904371.Didn't retrieve data . /1349904361.Didn't retrieve data . /1349904345.Didn't retrieve data . /1349904340.Didn't retrieve data . /1349904205.Didn't retrieve data . /1349904199.Didn't retrieve data . /1349904195.Didn't retrieve data . /1349904191.Didn't retrieve data . /1349904187.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, '2721869') ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22032110', '1349904379', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904376', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904371', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904361', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904345', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904340', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904205', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904199', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904195', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904191', '0.06731223809312027', None, None, None, None, '2721869'), ('4302', '22032110', '1349904187', '0.06731223809312027', None, None, None, None, '2721869')] time used for this insertion : 0.01648688316345215 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07327127456665039 time spend to save output : 0.017075538635253906 total time spend for step 2 : 0.0903468132019043 step3:velours_tree Tue Apr 15 14:59: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 complete output_args for input 0 : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} input_args_next_step : {22032110: ()} output_args : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} args : 22032110 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 : ({'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) 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([22032110]) 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.3802022933959961 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.3802504539489746 step4:send_mail_cod Tue Apr 15 14:59: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 : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} input_args_next_step : {1349904379: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904379 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904376 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904371 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904361 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904345 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904340 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904205 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904199 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904195 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904191 depend.output_id : 0 input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ()} output_args : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',)} args : 1349904187 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 : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} input_args_next_step : {1349904379: ('0.06731223809312027',), 1349904376: ('0.06731223809312027',), 1349904371: ('0.06731223809312027',), 1349904361: ('0.06731223809312027',), 1349904345: ('0.06731223809312027',), 1349904340: ('0.06731223809312027',), 1349904205: ('0.06731223809312027',), 1349904199: ('0.06731223809312027',), 1349904195: ('0.06731223809312027',), 1349904191: ('0.06731223809312027',), 1349904187: ('0.06731223809312027',), 22032110: ()} output_args : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} args : 22032110 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 :12, first value : ('0.06731223809312027',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) 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 (1349904379,1349904376,1349904371,1349904361,1349904345,1349904340,1349904205,1349904199,1349904195,1349904191,1349904187) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349904187 begin to download photo : 1349904199 begin to download photo : 1349904345 begin to download photo : 1349904376 download finish for photo 1349904199 begin to download photo : 1349904205 download finish for photo 1349904345 begin to download photo : 1349904361 download finish for photo 1349904376 begin to download photo : 1349904379 download finish for photo 1349904187 begin to download photo : 1349904191 download finish for photo 1349904379 download finish for photo 1349904361 begin to download photo : 1349904371 download finish for photo 1349904205 begin to download photo : 1349904340 download finish for photo 1349904191 begin to download photo : 1349904195 download finish for photo 1349904371 download finish for photo 1349904340 download finish for photo 1349904195 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220321521744721941/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22032110_15-04-2025_14_59_01.pdf 22032152 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=22032152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321521744721941 22032153 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=22032153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349904492: '1744721863_897185_1349903699_eb95bf78b582469c1312e5a0e86c5bb9_rle_crop_3746732526_0.png'} change filename to text .imagette220321531744721941/ imagette220321531744721941/1744721863_897185_1349903699_eb95bf78b582469c1312e5a0e86c5bb9_rle_crop_3746732526_0.png.png imagette220321541744721941/ imagette220321561744721941/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c7d2ae166515de73c6db3254a093a392_53733634.png imagette220321531744721941 22032154 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=22032154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321541744721941 22032156 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=22032156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321561744721941 22032159 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=22032159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903431: '1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702302_0.png', 1349904156: '1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703832_0.png', 1349904157: '1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703824_0.png', 1349904158: '1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703625_0.png', 1349904160: '1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703656_0.png', 1349904393: '1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730555_0.png', 1349904394: '1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730557_0.png', 1349904489: '1744721863_897185_1349903706_1558ff5232883a5ee4f342526140a605_rle_crop_3746732498_0.png', 1349904491: '1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732516_0.png', 1349904516: '1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703832_0.png', 1349904517: '1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703824_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9041bbb7bed6dc8aa81acea0eb97b82a_66084400.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f324fdd8fc1cd5e1d3c52acdd287587c_87100405.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c940394ae5fd7df48e25fa3da82068cd_82023121.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6d9f974b8a814607f4722296f3a04aa6_76529577.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d18d45646cfc1659a3bdbee26aa24327_76163122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c2ed02ff66e75352cb6b183152187e60_58360061.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f09628ec9e9a0e0cf094c59b59362d37_78447160.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/db371ff18901df3e2b63b88a2cefd432_29922510.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/111e05783df492e5bd831911ec42d38d_77840462.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f324fdd8fc1cd5e1d3c52acdd287587c_63177226.png change filename to text .imagette220321591744721941/ imagette220321591744721941/1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703832_0.png.png imagette220321591744721941/1744721863_897185_1349903706_1558ff5232883a5ee4f342526140a605_rle_crop_3746732498_0.png.png imagette220321591744721941/1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703824_0.png.png imagette220321591744721941/1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703656_0.png.png imagette220321591744721941/1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702302_0.png.png imagette220321591744721941/1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703832_0.png.png imagette220321591744721941/1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732516_0.png.png imagette220321591744721941/1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703625_0.png.png imagette220321591744721941/1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730557_0.png.png imagette220321591744721941/1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730555_0.png.png imagette220321591744721941/1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703824_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c940394ae5fd7df48e25fa3da82068cd_64743803.png imagette220321591744721941 22032161 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=22032161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903752: '1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703554_0.png', 1349904515: '1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703831_0.png', 1349904384: '1744721832_782328_1349903960_bcd8c50b0b6f94a3350c7f018b208382_rle_crop_3746730543_0.png', 1349904150: '1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703653_0.png', 1349904149: '1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703831_0.png', 1349903762: '1744721622_892342_1349903337_42a766a5c92d884f67bf93e9feabd9b7_rle_crop_3746703609_0.png', 1349903760: '1744721622_892342_1349903339_c1c535b3cc45c51974c16b1437cf11c5_rle_crop_3746703596_0.png', 1349903758: '1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703571_0.png', 1349903756: '1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703572_0.png', 1349903754: '1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703553_0.png', 1349903148: '1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701429_0.png', 1349903750: '1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703430_0.png', 1349903748: '1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703435_0.png', 1349903746: '1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703410_0.png', 1349903742: '1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703415_0.png', 1349903740: '1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703354_0.png', 1349903737: '1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703361_0.png', 1349903637: '1744721592_779848_1349903177_031b439b4622ea41d81038cf647cd167_rle_crop_3746703003_0.png', 1349903430: '1744721473_778633_1349902927_60f71f19465d219f98628189693714be_rle_crop_3746702310_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/206c1f41e7077ef53fdffd7827fdf6b8_37085160.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e8b0ddd2cf475d169810db2d9773efb3_58041539.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4a8338f00802835f9e44088718adbb5b_96038851.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/21035d8d400946a2006417f02ad52894_46193344.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e8b0ddd2cf475d169810db2d9773efb3_19930857.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/beebb53275891c8209883f2546a04cf3_3900909.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/beebb53275891c8209883f2546a04cf3_68585725.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3f7d9d9df02bc1151e74b1b418c117bf_28455395.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/206c1f41e7077ef53fdffd7827fdf6b8_89557383.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3f7d9d9df02bc1151e74b1b418c117bf_21124008.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a11afcb9776eb3450420d693fe3847df_63972499.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f7955993f4046a59023cbca51f9adda8_47632567.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/122c206803f0d88e79f4fb0b8db75c84_66756723.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f7955993f4046a59023cbca51f9adda8_5326484.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/122c206803f0d88e79f4fb0b8db75c84_21574043.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4fd155ee89defe524e93de382ca99dd2_62791348.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5bb6132f4efaaa18181756b7199640a6_51887081.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/57a7e8ebf5df17a6eba9c87f0ad35dfe_52779921.png change filename to text .imagette220321611744721941/ imagette220321611744721941/1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703415_0.png.png imagette220321611744721941/1744721473_778633_1349902927_60f71f19465d219f98628189693714be_rle_crop_3746702310_0.png.png imagette220321611744721941/1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703572_0.png.png imagette220321611744721941/1744721622_892342_1349903337_42a766a5c92d884f67bf93e9feabd9b7_rle_crop_3746703609_0.png.png imagette220321611744721941/1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703354_0.png.png imagette220321611744721941/1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703361_0.png.png imagette220321611744721941/1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703410_0.png.png imagette220321611744721941/1744721592_779848_1349903177_031b439b4622ea41d81038cf647cd167_rle_crop_3746703003_0.png.png imagette220321611744721941/1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703571_0.png.png imagette220321611744721941/1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703553_0.png.png imagette220321611744721941/1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703831_0.png.png imagette220321611744721941/1744721832_782328_1349903960_bcd8c50b0b6f94a3350c7f018b208382_rle_crop_3746730543_0.png.png imagette220321611744721941/1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703435_0.png.png imagette220321611744721941/1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701429_0.png.png imagette220321611744721941/1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703554_0.png.png imagette220321611744721941/1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703831_0.png.png imagette220321611744721941/1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703430_0.png.png imagette220321611744721941/1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703653_0.png.png imagette220321611744721941/1744721622_892342_1349903339_c1c535b3cc45c51974c16b1437cf11c5_rle_crop_3746703596_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/1da6da493853abb2fcf50dca1fae918f_58470682.png imagette220321611744721941 22032162 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=22032162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903722: '1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703418_0.png', 1349903723: '1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703438_0.png', 1349904477: '1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/90a85168bccf752f85d4685b51bf2504_33909157.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/90a85168bccf752f85d4685b51bf2504_5419513.png change filename to text .imagette220321621744721943/ imagette220321621744721943/1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703438_0.png.png imagette220321621744721943/1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732482_0.png.png imagette220321621744721943/1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703418_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/054ff8fdf80db443392dcd361b00283a_78356282.png imagette220321621744721943 22032151 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=22032151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903426: '1744721473_778633_1349903052_e5593a3636d02bf9a39ce7c5c1e8c362_rle_crop_3746702245_0.png', 1349903427: '1744721473_778633_1349903049_71451074bbd6b6f36b488c6fc055f55e_rle_crop_3746702261_0.png', 1349903428: '1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702292_0.png', 1349903726: '1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703355_0.png', 1349904144: '1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703819_0.png', 1349904145: '1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703621_0.png', 1349904146: '1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703622_0.png', 1349904147: '1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703654_0.png', 1349904478: '1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732511_0.png', 1349904514: '1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5b211b1ec8316a030a0673204900ef50_30760614.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5b211b1ec8316a030a0673204900ef50_27884542.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/dd2c9e406a5d698f975b3f19851a25f5_70156060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d2310ed08b9c2110ebca1b3503314551_36738002.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d4c5f1ee4e06b338efe1420678bccafd_96196249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/613c103445192e99f12642e60145061e_569795.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ca436e080627f004454713b289f7ea76_55825061.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/bf6ad62232d196297de0747e3413210d_80070794.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0ae82908ece7e97f34a8373355802fdc_63237252.png change filename to text .imagette220321511744721943/ imagette220321511744721943/1744721473_778633_1349903052_e5593a3636d02bf9a39ce7c5c1e8c362_rle_crop_3746702245_0.png.png imagette220321511744721943/1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703622_0.png.png imagette220321511744721943/1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732511_0.png.png imagette220321511744721943/1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703654_0.png.png imagette220321511744721943/1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703355_0.png.png imagette220321511744721943/1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703621_0.png.png imagette220321511744721943/1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702292_0.png.png imagette220321511744721943/1744721473_778633_1349903049_71451074bbd6b6f36b488c6fc055f55e_rle_crop_3746702261_0.png.png imagette220321511744721943/1744721892_783076_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703819_0.png.png imagette220321511744721943/1744721711_781032_1349903625_9ed24712fabd61fe2c7fcc93cb85814a_rle_crop_3746703819_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d4c5f1ee4e06b338efe1420678bccafd_35053470.png imagette220321511744721943 22032158 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=22032158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903151: '1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701444_0.png', 1349903773: '1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703364_0.png', 1349903775: '1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703559_0.png', 1349903778: '1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703577_0.png', 1349904152: '1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703627_0.png', 1349904390: '1744721832_782328_1349904043_8d76320ed19db01cc9a9d482d7f78af7_rle_crop_3746730530_0.png', 1349904391: '1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7dbb40b8603382fa25543d3fdd5d207d_87239561.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6fa751502e75546abdc959fa866f95cf_44998540.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/65618cedf0cc310f11d42b30655020e4_62792625.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/65618cedf0cc310f11d42b30655020e4_31405286.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/1edfa56285993dd035d11ab41e19e5a2_52566318.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ee091f4a5955ba65051b9ec956e5ad10_75095909.png change filename to text .imagette220321581744721943/ imagette220321581744721943/1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701444_0.png.png imagette220321581744721943/1744721711_781032_1349903446_93b6b0c3db701a4ac2d89a0c9a28239a_rle_crop_3746703627_0.png.png imagette220321581744721943/1744721832_782328_1349904043_8d76320ed19db01cc9a9d482d7f78af7_rle_crop_3746730530_0.png.png imagette220321581744721943/1744721832_782328_1349903955_fd8629ff36ec960d1e89ccf474723a86_rle_crop_3746730553_0.png.png imagette220321581744721943/1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703559_0.png.png imagette220321581744721943/1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703577_0.png.png imagette220321581744721943/1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703364_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/85f9a8382e95e6fbc19963c816026370_97160721.png imagette220321581744721943 22032160 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=22032160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903715: '1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703363_0.png', 1349904476: '1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732512_0.png', 1349904475: '1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732513_0.png', 1349904474: '1744721863_897185_1349903706_1558ff5232883a5ee4f342526140a605_rle_crop_3746732503_0.png', 1349904473: '1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732486_0.png', 1349904472: '1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732485_0.png', 1349904471: '1744721863_897185_1349903714_000d36a88fd1dd4c7c63a985b8e6b335_rle_crop_3746732465_0.png', 1349904140: '1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703663_0.png', 1349903720: '1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703584_0.png', 1349903719: '1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703566_0.png', 1349903718: '1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703443_0.png', 1349903716: '1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703423_0.png', 1349903145: '1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701432_0.png', 1349903422: '1744721473_778633_1349902895_a0870730df27b477277767ca7fbe52f0_rle_crop_3746702326_0.png', 1349903421: '1744721473_778633_1349902927_60f71f19465d219f98628189693714be_rle_crop_3746702314_0.png', 1349903420: '1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702301_0.png', 1349903419: '1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702298_0.png', 1349903418: '1744721473_778633_1349902944_5948b6793117d5b66ed62d87fba7d1e3_rle_crop_3746702278_0.png', 1349903417: '1744721473_778633_1349902946_4c61a72ec6bba3a0ec867768db8f3fad_rle_crop_3746702271_0.png', 1349903416: '1744721473_778633_1349903049_71451074bbd6b6f36b488c6fc055f55e_rle_crop_3746702266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7a671f0bcab2b71141583a2fac3a5696_31533239.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a6457aaf1fa2aed8b5a4cc2f6a399d99_96464956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/006da4f5a1aeef99537e98e23a03f6e4_58049134.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/73a29d014347c94b6173f9b1c5f5a869_78240074.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/64bb23aa82e443dbdedcde2306d5eb1c_60021587.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9f133f403ce233d8fd8b2a6d5f463665_40129364.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/62a37bb5a0853c20699eeeca36ce82dc_76984.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/674fcef30756575419e7f022ff377837_16284676.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d884a8f35719fbe830095f8d94241691_89294130.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d884a8f35719fbe830095f8d94241691_5485252.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/de69fdee1be0a2c49ba5b194bcb2e457_61217918.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/de69fdee1be0a2c49ba5b194bcb2e457_44342669.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3fb816ebbef101b3e96d8412a3e78bd6_4361599.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/84871432328017383c2405f9dd37c16b_42728340.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4913e46af7a3616b2f263a0376ca8942_46090074.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/ff9a4bc17495ef15cfa16b7a20902aef_93276307.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f8f4ebd25d73f074a378c08220bc3b49_59147473.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/918e0e10765c6ce4f075f5abab32e259_85639588.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3707e9e860c88153f27c064875acef78_9783635.png change filename to text .imagette220321601744721944/ imagette220321601744721944/1744721473_778633_1349902944_5948b6793117d5b66ed62d87fba7d1e3_rle_crop_3746702278_0.png.png imagette220321601744721944/1744721473_778633_1349903049_71451074bbd6b6f36b488c6fc055f55e_rle_crop_3746702266_0.png.png imagette220321601744721944/1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732513_0.png.png imagette220321601744721944/1744721622_892342_1349903349_3bb48392f6aeb941e935096386f78ca8_rle_crop_3746703584_0.png.png imagette220321601744721944/1744721622_892342_1349903350_f2a28af75d9c0248a091fd1b38c8a0d3_rle_crop_3746703566_0.png.png imagette220321601744721944/1744721473_778633_1349902895_a0870730df27b477277767ca7fbe52f0_rle_crop_3746702326_0.png.png imagette220321601744721944/1744721863_897185_1349903702_7385857321419ca82d4bcd5fcbed09ee_rle_crop_3746732512_0.png.png imagette220321601744721944/1744721863_897185_1349903714_000d36a88fd1dd4c7c63a985b8e6b335_rle_crop_3746732465_0.png.png imagette220321601744721944/1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701432_0.png.png imagette220321601744721944/1744721622_892342_1349903471_043daadcca55301e47d358d792ae0815_rle_crop_3746703363_0.png.png imagette220321601744721944/1744721473_778633_1349902946_4c61a72ec6bba3a0ec867768db8f3fad_rle_crop_3746702271_0.png.png imagette220321601744721944/1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702298_0.png.png imagette220321601744721944/1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732486_0.png.png imagette220321601744721944/1744721473_778633_1349902927_60f71f19465d219f98628189693714be_rle_crop_3746702314_0.png.png imagette220321601744721944/1744721863_897185_1349903706_1558ff5232883a5ee4f342526140a605_rle_crop_3746732503_0.png.png imagette220321601744721944/1744721711_781032_1349903435_697b764e18a1dd79f9fb072c2eda4008_rle_crop_3746703663_0.png.png imagette220321601744721944/1744721622_892342_1349903363_d47463b6dc9489ede5efb1d5d84348c0_rle_crop_3746703443_0.png.png imagette220321601744721944/1744721622_892342_1349903365_74aa66c53f49777f1007f2c99ecc3466_rle_crop_3746703423_0.png.png imagette220321601744721944/1744721863_897185_1349903710_942f0f3564ea41938007245a1f2ba0f2_rle_crop_3746732485_0.png.png imagette220321601744721944/1744721473_778633_1349902936_2119599a5bfa6f1866fbc5ff2ca29725_rle_crop_3746702301_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4855add4bb1c0ac5bdf9f31b4c34c338_93546415.png imagette220321601744721944 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22032110 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22032163,22032164,22032165,22032166,22032167,22032168,22032169,22032170,22032171,22032172,22032173,22032174?tags=Carton_gris,flou,kraft,mal_croppe,papier,metal,environnement,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349904379] : ('0.06731223809312027',) no score found for photo 1349904379 We are sending mail with results at report@fotonower.com args[1349904376] : ('0.06731223809312027',) no score found for photo 1349904376 We are sending mail with results at report@fotonower.com args[1349904371] : ('0.06731223809312027',) no score found for photo 1349904371 We are sending mail with results at report@fotonower.com args[1349904361] : ('0.06731223809312027',) no score found for photo 1349904361 We are sending mail with results at report@fotonower.com args[1349904345] : ('0.06731223809312027',) no score found for photo 1349904345 We are sending mail with results at report@fotonower.com args[1349904340] : ('0.06731223809312027',) no score found for photo 1349904340 We are sending mail with results at report@fotonower.com args[1349904205] : ('0.06731223809312027',) no score found for photo 1349904205 We are sending mail with results at report@fotonower.com args[1349904199] : ('0.06731223809312027',) no score found for photo 1349904199 We are sending mail with results at report@fotonower.com args[1349904195] : ('0.06731223809312027',) no score found for photo 1349904195 We are sending mail with results at report@fotonower.com args[1349904191] : ('0.06731223809312027',) no score found for photo 1349904191 We are sending mail with results at report@fotonower.com args[1349904187] : ('0.06731223809312027',) no score found for photo 1349904187 We are sending mail with results at report@fotonower.com refus_total : 0.06731223809312027 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=22032110 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_P22032110_15-04-2025_14_59_01.pdf results_Auto_P22032110_15-04-2025_14_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_59_01.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','22032110','results_Auto_P22032110_15-04-2025_14_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_59_01.pdf','pdf','','0.27','0.06731223809312027') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] map_info['map_portfolio_photo'] : {22032110: [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187, 1349904121, 1349904043, 1349903960, 1349903955, 1349903725, 1349903714, 1349903710, 1349903706, 1349903702, 1349903699, 1349903625, 1349903620, 1349903606, 1349903602, 1349903471, 1349903446, 1349903441, 1349903435, 1349903391, 1349903390, 1349903388, 1349903385, 1349903380, 1349903378, 1349903365, 1349903363, 1349903350, 1349903349, 1349903339, 1349903337, 1349903180, 1349903177, 1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] 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, '2721869') ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869') 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', '22032110', '1349904379', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869')] time used for this insertion : 0.01588153839111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.529379606246948 time spend to save output : 0.016181468963623047 total time spend for step 4 : 5.545561075210571 step5:split_time_score Tue Apr 15 14:59:06 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 : ['22032110'] 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 : [('22032110',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349904376: {'path': 'temp/1744721940_3668268_1349904376_c0f9228fe4eb2b4e8b3a9a1c5f0f0f65.jpg', 'extension': 'jpg'}, 1349904379: {'path': 'temp/1744721940_3668268_1349904379_ebe7478fef45ac1cb52e7c90a565aadf.jpg', 'extension': 'jpg'}, 1349904345: {'path': 'temp/1744721940_3668268_1349904345_ae07e114d8425d6c8dbdd11492fc727b.jpg', 'extension': 'jpg'}, 1349904361: {'path': 'temp/1744721940_3668268_1349904361_7062d7c3e44a9551d97e4b883d379783.jpg', 'extension': 'jpg'}, 1349904371: {'path': 'temp/1744721940_3668268_1349904371_7d903231ffaa955cd4e823b944ee3d38.jpg', 'extension': 'jpg'}, 1349904199: {'path': 'temp/1744721940_3668268_1349904199_3c433a28f9517f41d90c1cb897f80265.jpg', 'extension': 'jpg'}, 1349904205: {'path': 'temp/1744721940_3668268_1349904205_8a99a458131e53810d18754e7adcaa6f.jpg', 'extension': 'jpg'}, 1349904340: {'path': 'temp/1744721940_3668268_1349904340_2f3344afa254438a44f10c03a32856d9.jpg', 'extension': 'jpg'}, 1349904187: {'path': 'temp/1744721940_3668268_1349904187_7b7b7e110416c4374e5c36b532fb8006.jpg', 'extension': 'jpg'}, 1349904191: {'path': 'temp/1744721940_3668268_1349904191_3ec28095dadbfe6b3d53d663cb7a024c.jpg', 'extension': 'jpg'}, 1349904195: {'path': 'temp/1744721940_3668268_1349904195_5d309ae6de49a66fcb30b14d00e2fff4.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 = 22032110; (('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 = 22032110 group by h (('14', 66),) 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=22032110 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 (22032110) 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 (22032110) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22032110 Nombre de photos uploadées : 66 / 23040 (0%) 15042025 22032110 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 15042025 22032110 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1349902588, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2ba6a878f27891a2738b4fb10028e517.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_14_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349902576, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/554374420dbe849b1848af685336f755.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349902561, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/46072e9516d5946ca05c6ba64f552bbe.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349902532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2a18f2952d36f007b02d9538257fcc8b.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031638145446777344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22032110, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02564692497253418 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722989, 'mtr_portfolio_id': 22030089, 'dashboard_result_id': 9852019, '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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722989, 'mtr_portfolio_id': 22030731, 'dashboard_result_id': 9852020, '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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722989, 'mtr_portfolio_id': 22031305, 'dashboard_result_id': 9852021, '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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722989, 'mtr_portfolio_id': 22032110, 'dashboard_result_id': 9852022, '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_P22032110_15-04-2025_14_56_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 = 22030089 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': 2721688, 'mtr_portfolio_id': 22030089, 'created_at': datetime.datetime(2025, 4, 15, 14, 18, 59), 'result': '0.037908939042679515', 'result_long': None, 'result_double': None}] Qualite : 0.037908939042679515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030089 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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}" where mtr_portfolio_id = 22030089 and dashboard_run_id = 1722989 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`=22030089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852019, 0.037908939042679515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, '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 = 22030731 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': 2721734, 'mtr_portfolio_id': 22030731, 'created_at': datetime.datetime(2025, 4, 15, 14, 32, 58), 'result': '0.03468246754841509', 'result_long': None, 'result_double': None}] Qualite : 0.03468246754841509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030731 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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}" where mtr_portfolio_id = 22030731 and dashboard_run_id = 1722989 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`=22030731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852020, 0.03468246754841509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, '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 = 22031305 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': 2721809, 'mtr_portfolio_id': 22031305, 'created_at': datetime.datetime(2025, 4, 15, 14, 50, 58), 'result': '0.07490852493073792', 'result_long': None, 'result_double': None}] Qualite : 0.07490852493073792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031305 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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}" where mtr_portfolio_id = 22031305 and dashboard_run_id = 1722989 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`=22031305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852021, 0.07490852493073792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, '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 = 22032110 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': 2721869, 'mtr_portfolio_id': 22032110, 'created_at': datetime.datetime(2025, 4, 15, 14, 59), 'result': '0.06731223809312027', 'result_long': None, 'result_double': None}] Qualite : 0.06731223809312027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032110 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_P22032110_15-04-2025_14_59_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}" where mtr_portfolio_id = 22032110 and dashboard_run_id = 1722989 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`=22032110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852022, 0.06731223809312027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_59_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 (22030089,22030731,22031305,22032110) result : ((1349892466,), (1349892545,), (1349892585,), (1349893318,), (1349893388,), (1349893459,), (1349893549,), (1349893656,), (1349893749,), (1349894500,), (1349894543,), (1349894578,), (1349895031,), (1349895061,), (1349895090,), (1349895118,), (1349895143,), (1349895169,), (1349895587,), (1349895617,), (1349895644,), (1349895680,), (1349895711,), (1349895741,), (1349895860,), (1349895908,), (1349895996,), (1349896512,), (1349896666,), (1349896813,), (1349896920,), (1349896966,), (1349896992,), (1349897135,), (1349897138,), (1349897142,), (1349897146,), (1349897152,), (1349897197,), (1349897202,), (1349897204,), (1349897209,), (1349897261,), (1349897266,), (1349897268,), (1349897271,), (1349897274,), (1349897378,), (1349897380,), (1349897395,), (1349897400,), (1349897404,), (1349897409,), (1349897412,), (1349897415,), (1349897555,), (1349897584,), (1349897612,), (1349897671,), (1349897672,), (1349897679,), (1349897680,), (1349897685,), (1349897686,), (1349897748,), (1349897749,), (1349897753,), (1349897754,), (1349897757,), (1349897758,), (1349897764,), (1349897765,), (1349897822,), (1349897824,), (1349897829,), (1349897831,), (1349897836,), (1349897837,), (1349897842,), (1349897843,), (1349897926,), (1349897929,), (1349897908,), (1349897910,), (1349897911,), (1349897914,), (1349897915,), (1349897917,), (1349897921,), (1349897922,), (1349897969,), (1349897973,), (1349897977,), (1349898125,), (1349898135,), (1349898149,), (1349898155,), (1349898171,), (1349898308,), (1349898312,), (1349898316,), (1349898320,), (1349898365,), (1349898368,), (1349898372,), (1349898377,), (1349898433,), (1349898436,), (1349898439,), (1349898521,), (1349898527,), (1349898532,), (1349898537,), (1349898541,), (1349898667,), (1349898673,), (1349898678,), (1349898682,), (1349898687,), (1349898691,), (1349898774,), (1349898777,), (1349898779,), (1349898782,), (1349898801,), (1349898947,), (1349898951,), (1349898957,), (1349898959,), (1349898963,), (1349898982,), (1349898985,), (1349898996,), (1349899326,), (1349899422,), (1349899520,), (1349899568,), (1349899580,), (1349899601,), (1349899646,), (1349899669,), (1349899712,), (1349899724,), (1349899861,), (1349899865,), (1349899871,), (1349899874,), (1349899878,), (1349899882,), (1349900004,), (1349900048,), (1349900222,), (1349900228,), (1349900236,), (1349900239,), (1349900246,), (1349900251,), (1349900329,), (1349900307,), (1349900313,), (1349900319,), (1349900324,), (1349900426,), (1349900427,), (1349900432,), (1349900434,), (1349900436,), (1349900437,), (1349900451,), (1349900454,), (1349900783,), (1349900796,), (1349900806,), (1349900819,), (1349900866,), (1349900876,), (1349900891,), (1349900898,), (1349900913,), (1349900981,), (1349901012,), (1349901018,), (1349901023,), (1349901068,), (1349901101,), (1349901198,), (1349901224,), (1349901229,), (1349901234,), (1349901279,), (1349901284,), (1349901293,), (1349901347,), (1349901351,), (1349901355,), (1349901377,), (1349901383,), (1349901388,), (1349901399,), (1349901403,), (1349901406,), (1349901485,), (1349901487,), (1349901492,), (1349901884,), (1349902184,), (1349902209,), (1349902235,), (1349902240,), (1349902244,), (1349902383,), (1349902406,), (1349902409,), (1349902599,), (1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] map_info['map_portfolio_photo'] : {22032110: [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187, 1349904121, 1349904043, 1349903960, 1349903955, 1349903725, 1349903714, 1349903710, 1349903706, 1349903702, 1349903699, 1349903625, 1349903620, 1349903606, 1349903602, 1349903471, 1349903446, 1349903441, 1349903435, 1349903391, 1349903390, 1349903388, 1349903385, 1349903380, 1349903378, 1349903365, 1349903363, 1349903350, 1349903349, 1349903339, 1349903337, 1349903180, 1349903177, 1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : True mtd_id 4302 list_pids : [1349904379, 1349904376, 1349904371, 1349904361, 1349904345, 1349904340, 1349904205, 1349904199, 1349904195, 1349904191, 1349904187] Looping around the photos to save general results len do output : 1 /22032110Didn'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, '2721869') ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22032110', 'None', None, None, None, None, '2721869'), ('4302', '22032110', '1349904379', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904376', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904371', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904361', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904345', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904340', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904205', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904199', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904195', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904191', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349904187', None, None, None, None, None, '2721869')] time used for this insertion : 0.0165402889251709 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3380904197692871 time spend to save output : 0.01737666130065918 total time spend for step 5 : 0.3554670810699463 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 (2721869) 2.37user 2.21system 0:11.10elapsed 41%CPU (0avgtext+0avgdata 161704maxresident)k 22072inputs+17264outputs (145major+75019minor)pagefaults 0swaps