result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219317 , 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=22219271 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219318 , 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=22219271 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 (22219318) result : ((1351115135,), (1351115137,), (1351116225,), (1351116431,), (1351116432,), (1351116433,), (1351116435,), (1351116436,), (1351116659,), (1351116663,), (1351116664,), (1351116665,), (1351116666,), (1351116983,), (1351116984,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219319 , 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=22219271 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 (22219319) result : ((1351114304,), (1351114305,), (1351114306,), (1351116442,), (1351116446,), (1351116675,), (1351116676,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219320 , 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=22219271 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219321 , 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=22219271 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219322 , 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=22219271 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 (22219322) result : ((1351115092,), (1351115095,), (1351116979,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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 22219323 , 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=22219271 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219323) result : ((1351114303,), (1351115120,), (1351115692,), (1351115694,), (1351115695,), (1351116220,), (1351116411,), (1351116412,), (1351116654,), (1351116655,), (1351116656,), (1351116980,), (1351116981,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22219271) result : ((1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) 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`=22219271 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','plastique','mal_croppe','papier','Carton_brun','kraft','environnement','autre_refus','metal')) 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`=22219271 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','Carton_gris','plastique','mal_croppe','papier','Carton_brun','kraft','environnement','autre_refus','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22219271, 'sub_port_id': 22219324, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691090, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'kraft': {'main_port_id': 22219271, 'sub_port_id': 22219325, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691091, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'papier': {'main_port_id': 22219271, 'sub_port_id': 22219326, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691092, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'autre_refus': {'main_port_id': 22219271, 'sub_port_id': 22219327, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691093, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'environnement': {'main_port_id': 22219271, 'sub_port_id': 22219328, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691094, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'mal_croppe': {'main_port_id': 22219271, 'sub_port_id': 22219329, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691095, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'cartonnette': {'main_port_id': 22219271, 'sub_port_id': 22219330, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691096, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'Carton_brun': {'main_port_id': 22219271, 'sub_port_id': 22219331, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691097, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'flou': {'main_port_id': 22219271, 'sub_port_id': 22219332, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691098, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'metal': {'main_port_id': 22219271, 'sub_port_id': 22219333, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691099, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22219271, 'sub_port_id': 22219334, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691100, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}, 'Carton_gris': {'main_port_id': 22219271, 'sub_port_id': 22219335, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14691101, 'last_updated_at': datetime.datetime(2025, 4, 10, 11, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 11, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 11, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22219335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22219323 lien utilise dans velours : https://www.fotonower.com/velours/22219324,22219325,22219326,22219327,22219328,22219329,22219330,22219331,22219332,22219333,22219334,22219335?tags=plastique,kraft,papier,autre_refus,environnement,mal_croppe,cartonnette,Carton_brun,flou,metal,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22219271]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] map_info['map_portfolio_photo'] : {22219271: [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660, 1351116562, 1351116553, 1351116551, 1351116538, 1351116476, 1351116464, 1351116441, 1351116397, 1351116373, 1351116348, 1351116227, 1351116145, 1351116101, 1351116061, 1351115997, 1351115986, 1351115597, 1351115581, 1351115455, 1351115399, 1351114410, 1351114375, 1351114333, 1351113994, 1351113889, 1351113846, 1351113814, 1351113729, 1351113374, 1351113242, 1351113160, 1351113088, 1351113036, 1351112565, 1351112483, 1351112436, 1351112077, 1351112061]} final : False mtd_id 4302 list_pids : [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] Looping around the photos to save general results len do output : 1 /22219271. 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, '2739174') ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22219271', "{'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323}", None, None, None, None, '2739174'), ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174')] time used for this insertion : 0.017366647720336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.823038101196289 time spend to save output : 0.01765894889831543 total time spend for step 1 : 1.8406970500946045 step2:final Thu Apr 10 11:12:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22219271) 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 22219271 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351112077,1351112061,1351112565,1351112483,1351112436,1351113374,1351113242,1351113160,1351113088,1351113036,1351113994,1351113889,1351113846,1351113814,1351113729,1351114410,1351114375,1351114333,1351115597,1351115581,1351115455,1351115399,1351116227,1351116145,1351116101,1351116061,1351115997,1351115986,1351116476,1351116464,1351116441,1351116397,1351116373,1351116348,1351116562,1351116553,1351116551,1351116538,1351116712,1351116708,1351116705,1351116701,1351116670,1351116660); 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([22219271]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} new output for save of step final : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] map_info['map_portfolio_photo'] : {22219271: [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660, 1351116562, 1351116553, 1351116551, 1351116538, 1351116476, 1351116464, 1351116441, 1351116397, 1351116373, 1351116348, 1351116227, 1351116145, 1351116101, 1351116061, 1351115997, 1351115986, 1351115597, 1351115581, 1351115455, 1351115399, 1351114410, 1351114375, 1351114333, 1351113994, 1351113889, 1351113846, 1351113814, 1351113729, 1351113374, 1351113242, 1351113160, 1351113088, 1351113036, 1351112565, 1351112483, 1351112436, 1351112077, 1351112061]} final : False mtd_id 4302 list_pids : [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] Looping around the photos to save general results len do output : 6 /1351116712.Didn't retrieve data . /1351116708.Didn't retrieve data . /1351116705.Didn't retrieve data . /1351116701.Didn't retrieve data . /1351116670.Didn't retrieve data . /1351116660.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, '2739174') ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '22219271', '1351116712', '0.04019671794006156', None, None, None, None, '2739174'), ('4302', '22219271', '1351116708', '0.04019671794006156', None, None, None, None, '2739174'), ('4302', '22219271', '1351116705', '0.04019671794006156', None, None, None, None, '2739174'), ('4302', '22219271', '1351116701', '0.04019671794006156', None, None, None, None, '2739174'), ('4302', '22219271', '1351116670', '0.04019671794006156', None, None, None, None, '2739174'), ('4302', '22219271', '1351116660', '0.04019671794006156', None, None, None, None, '2739174')] time used for this insertion : 0.015355348587036133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0926659107208252 time spend to save output : 0.015961170196533203 total time spend for step 2 : 0.1086270809173584 step3:velours_tree Thu Apr 10 11:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22219271: [{'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323}]} input_args_next_step : {22219271: ()} output_args : {22219271: [{'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323}]} args : 22219271 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 : ({'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22219271) 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([22219271]) 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.32305264472961426 time spend to save output : 7.224082946777344e-05 total time spend for step 3 : 0.32312488555908203 step4:send_mail_cod Thu Apr 10 11:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} input_args_next_step : {1351116712: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116712 depend.output_id : 0 input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116708 depend.output_id : 0 input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116705 depend.output_id : 0 input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116701 depend.output_id : 0 input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116670 depend.output_id : 0 input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ()} output_args : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',)} args : 1351116660 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 : {22219271: [{'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323}]} input_args_next_step : {1351116712: ('0.04019671794006156',), 1351116708: ('0.04019671794006156',), 1351116705: ('0.04019671794006156',), 1351116701: ('0.04019671794006156',), 1351116670: ('0.04019671794006156',), 1351116660: ('0.04019671794006156',), 22219271: ()} output_args : {22219271: [{'plastique': 22219312, 'kraft': 22219313, 'papier': 22219314, 'autre_refus': 22219315, 'environnement': 22219316, 'mal_croppe': 22219317, 'cartonnette': 22219318, 'Carton_brun': 22219319, 'flou': 22219320, 'metal': 22219321, 'Teint_Dans_La_Masse': 22219322, 'Carton_gris': 22219323}]} args : 22219271 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 :7, first value : ('0.04019671794006156',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22219271) 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 (1351116712,1351116708,1351116705,1351116701,1351116670,1351116660) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351116660 begin to download photo : 1351116701 begin to download photo : 1351116708 download finish for photo 1351116701 begin to download photo : 1351116705 download finish for photo 1351116708 begin to download photo : 1351116712 download finish for photo 1351116660 begin to download photo : 1351116670 download finish for photo 1351116670 download finish for photo 1351116705 download finish for photo 1351116712 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P22219271_10-04-2025_11_12_59.pdf 22219312 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=22219312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351115162: '1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719160_0.png', 1351116467: '1744276073_4182828_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723750_0.png', 1351116682: '1744276193_4185169_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723750_0.png', 1351116911: '1744276285_4133402_1351116553_e417a5ca13f81b7d5f9a57078d99fd23_rle_crop_3753727313_0.png', 1351116913: '1744276285_4133402_1351116538_838ca5e33adc80f8c2a89f7f4d358510_rle_crop_3753727398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ec32bec14379a57916677d41bb5cf16b_24808981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a5f4bf2b243b4d199e9f076eff2d9e05_14890148.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a5f4bf2b243b4d199e9f076eff2d9e05_91876194.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/262f94828da611a4ca63981e40f03e5b_55367676.png change filename to text .imagette222193121744276379/ imagette222193121744276379/1744276285_4133402_1351116553_e417a5ca13f81b7d5f9a57078d99fd23_rle_crop_3753727313_0.png.png imagette222193121744276379/1744276073_4182828_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723750_0.png.png imagette222193121744276379/1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719160_0.png.png imagette222193121744276379/1744276193_4185169_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723750_0.png.png imagette222193121744276379/1744276285_4133402_1351116538_838ca5e33adc80f8c2a89f7f4d358510_rle_crop_3753727398_0.png.png imagette222193131744276379/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/80b85bf7e1c1284ff077378354d531f7_55215591.png imagette222193121744276379 22219313 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=22219313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222193131744276379 22219315 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=22219315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351115111: '1744275926_4130137_1351113160_2f67d7cf128ec5fad84ecb2656337d39_rle_crop_3753719257_0.png', 1351115671: '1744276014_4181988_1351113374_afd65311a5c9a488cc897607091bebd1_rle_crop_3753720703_0.png', 1351116185: '1744276053_4182454_1351114375_72bee998432a9bcf09363a83f255c309_rle_crop_3753723108_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/c98021218a0afd56062076b4a1365b17_57375403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/7431d2048e8b4fa45a7e2ce6c3bd0bbd_2753109.png change filename to text .imagette222193151744276379/ imagette222193151744276379/1744276053_4182454_1351114375_72bee998432a9bcf09363a83f255c309_rle_crop_3753723108_0.png.png imagette222193151744276379/1744276014_4181988_1351113374_afd65311a5c9a488cc897607091bebd1_rle_crop_3753720703_0.png.png imagette222193151744276379/1744275926_4130137_1351113160_2f67d7cf128ec5fad84ecb2656337d39_rle_crop_3753719257_0.png.png imagette222193171744276380/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9afa7b275efb4175555f449fcc71c002_95866984.png imagette222193151744276379 22219317 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=22219317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222193171744276380 22219318 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=22219318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351115135: '1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719158_0.png', 1351115137: '1744275926_4130137_1351113160_2f67d7cf128ec5fad84ecb2656337d39_rle_crop_3753719260_0.png', 1351116225: '1744276053_4182454_1351114333_2ed740b3b4769fee4c83f666a668432d_rle_crop_3753723120_0.png', 1351116431: '1744276073_4182828_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723341_0.png', 1351116432: '1744276073_4182828_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723342_0.png', 1351116433: '1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723776_0.png', 1351116435: '1744276073_4182828_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723806_0.png', 1351116436: '1744276073_4182828_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723802_0.png', 1351116659: '1744276193_4185169_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723341_0.png', 1351116663: '1744276193_4185169_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723342_0.png', 1351116664: '1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723776_0.png', 1351116665: '1744276193_4185169_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723806_0.png', 1351116666: '1744276193_4185169_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723802_0.png', 1351116983: '1744276296_4186244_1351116464_57dedb7970eed0cd128665db95fbaac3_rle_crop_3753727574_0.png', 1351116984: '1744276296_4186244_1351116373_424b7ed85014cbf92f9b0fb0badef83b_rle_crop_3753729419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ff76ee0486befecc15824d14a1643c26_63759074.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6baec8a970b74d3bf67ba9488960382c_10786810.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8ad83031de44712876ca1bff4ffb76f6_64650942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/99da2940bddde2ce70ff29e73cda6081_22735812.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/72ccdc450403a983b97b8aff82a25254_76442626.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/209131b59017c22de3461f445b0845f4_92674183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a7d75ad9577574fcfcce05d709258673_28749619.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/502feea1e80aa4ea55b162b938ff549d_80589687.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/99da2940bddde2ce70ff29e73cda6081_77673631.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/72ccdc450403a983b97b8aff82a25254_91723190.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/209131b59017c22de3461f445b0845f4_94209948.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a7d75ad9577574fcfcce05d709258673_46353167.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/502feea1e80aa4ea55b162b938ff549d_42069255.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e887a1fee26a2443a6251da0e106f24e_94212211.png change filename to text .imagette222193181744276380/ imagette222193181744276380/1744276296_4186244_1351116373_424b7ed85014cbf92f9b0fb0badef83b_rle_crop_3753729419_0.png.png imagette222193181744276380/1744276193_4185169_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723341_0.png.png imagette222193181744276380/1744276073_4182828_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723341_0.png.png imagette222193181744276380/1744275926_4130137_1351113160_2f67d7cf128ec5fad84ecb2656337d39_rle_crop_3753719260_0.png.png imagette222193181744276380/1744276193_4185169_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723806_0.png.png imagette222193181744276380/1744276053_4182454_1351114333_2ed740b3b4769fee4c83f666a668432d_rle_crop_3753723120_0.png.png imagette222193181744276380/1744276193_4185169_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723802_0.png.png imagette222193181744276380/1744276296_4186244_1351116464_57dedb7970eed0cd128665db95fbaac3_rle_crop_3753727574_0.png.png imagette222193181744276380/1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719158_0.png.png imagette222193181744276380/1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723776_0.png.png imagette222193181744276380/1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723776_0.png.png imagette222193181744276380/1744276193_4185169_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723342_0.png.png imagette222193181744276380/1744276073_4182828_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723802_0.png.png imagette222193181744276380/1744276073_4182828_1351113814_83123433615684ef52381f36c9fcc7fe_rle_crop_3753723806_0.png.png imagette222193181744276380/1744276073_4182828_1351114410_d60aa5d5a3bccb4fb7e163dd68d4ed28_rle_crop_3753723342_0.png.png imagette222193201744276381/ imagette222193211744276381/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/264413934252b3f76f34cc12c06fd457_34100828.png imagette222193181744276380 22219320 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=22219320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222193201744276381 22219321 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=22219321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222193211744276381 22219319 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=22219319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351114304: '1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718617_0.png', 1351114305: '1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718619_0.png', 1351114306: '1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718613_0.png', 1351116442: '1744276073_4182828_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723754_0.png', 1351116446: '1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723784_0.png', 1351116675: '1744276193_4185169_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723754_0.png', 1351116676: '1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723784_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/eaf0bb4187e17876f9e3a07050cba71c_32241814.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/022535fbaf13326b5988d2f2977f5063_78267595.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/178b9640228b35bd6159ad91be764a99_18195973.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ffb2c3f60d7a075fe4368037615a9142_65434522.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b6324711ab08afe3a7d92724226f011d_72281976.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/ffb2c3f60d7a075fe4368037615a9142_78460024.png change filename to text .imagette222193191744276381/ imagette222193191744276381/1744276073_4182828_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723754_0.png.png imagette222193191744276381/1744276193_4185169_1351113889_5336dadaefe30cdce19e700cd188aed9_rle_crop_3753723754_0.png.png imagette222193191744276381/1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718617_0.png.png imagette222193191744276381/1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718613_0.png.png imagette222193191744276381/1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723784_0.png.png imagette222193191744276381/1744275853_4177264_1351112077_218435b00d3741dca04cf2a19c5eb4da_rle_crop_3753718619_0.png.png imagette222193191744276381/1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723784_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/b6324711ab08afe3a7d92724226f011d_66659452.png imagette222193191744276381 22219322 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=22219322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351115092: '1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719157_0.png', 1351115095: '1744275926_4130137_1351113088_07e270ff7d3ccc1eb2cd3a34ace98104_rle_crop_3753719430_0.png', 1351116979: '1744276296_4186244_1351116348_42a5b14c2116524235148b5bee65043c_rle_crop_3753729449_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/bf86d4b8e443b55ee5be86e1d260acfd_21534060.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d74fa290bcc7dde8325329a7b1f61b11_32596503.png change filename to text .imagette222193221744276381/ imagette222193221744276381/1744275926_4130137_1351113242_9a05ca06d8afc053863155cc06c8f6bc_rle_crop_3753719157_0.png.png imagette222193221744276381/1744275926_4130137_1351113088_07e270ff7d3ccc1eb2cd3a34ace98104_rle_crop_3753719430_0.png.png imagette222193221744276381/1744276296_4186244_1351116348_42a5b14c2116524235148b5bee65043c_rle_crop_3753729449_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2361314107705001ad3551bd127fdbdd_99225347.png imagette222193221744276381 22219323 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=22219323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351114303: '1744275833_4176978_1351112436_866365c5ba6720f94cdcc065f3cccdcb_rle_crop_3753718564_0.png', 1351115120: '1744275926_4130137_1351113036_67da5314a5cb4115c75ceda92d5fb0c8_rle_crop_3753719518_0.png', 1351115692: '1744276014_4181988_1351113374_afd65311a5c9a488cc897607091bebd1_rle_crop_3753720700_0.png', 1351115694: '1744276014_4181988_1351112436_866365c5ba6720f94cdcc065f3cccdcb_rle_crop_3753720710_0.png', 1351115695: '1744276014_4181988_1351112436_866365c5ba6720f94cdcc065f3cccdcb_bib_crop_3753718564_0.jpg', 1351116220: '1744276053_4182454_1351114375_72bee998432a9bcf09363a83f255c309_rle_crop_3753723110_0.png', 1351116411: '1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723783_0.png', 1351116412: '1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723782_0.png', 1351116654: '1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723783_0.png', 1351116655: '1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_bib_crop_3753723782_0.jpg', 1351116656: '1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753726601_0.png', 1351116980: '1744276296_4186244_1351116441_f566447a2bdc2613e69e06289e3999f0_rle_crop_3753727617_0.png', 1351116981: '1744276296_4186244_1351116348_42a5b14c2116524235148b5bee65043c_rle_crop_3753729443_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f7c0a7068e5553573ab315f1ec4a8920_70905217.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/25ef227927b181a2deb33c4255334bd5_61472099.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/9c964130a50456d4d6916cac5931ba44_31775556.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/2ffe88ad412bc4629413bb46e3b2d419_20422001.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8bc9d71d83c1802360644084ec3f87c1_6099248.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f947e006494cce2d45379af7dc48acfc_3810226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e1a751fff3fd9fff0a759b08b4cb99aa_41145755.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6163091045f00ca8f6fffc562fd246c7_78203048.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/e1a751fff3fd9fff0a759b08b4cb99aa_36109163.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5fe6635751f6e0f951fe534988afc716_34795126.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/18d95dbe1fbf151ca0b7d621f8b0a24a_62415677.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/6f45f5189e8abe84a6a9e85c261475a0_87766641.png change filename to text .imagette222193231744276381/ imagette222193231744276381/1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723783_0.png.png imagette222193231744276381/1744276014_4181988_1351112436_866365c5ba6720f94cdcc065f3cccdcb_bib_crop_3753718564_0.jpg.jpg imagette222193231744276381/1744276014_4181988_1351112436_866365c5ba6720f94cdcc065f3cccdcb_rle_crop_3753720710_0.png.png imagette222193231744276381/1744275833_4176978_1351112436_866365c5ba6720f94cdcc065f3cccdcb_rle_crop_3753718564_0.png.png imagette222193231744276381/1744276296_4186244_1351116348_42a5b14c2116524235148b5bee65043c_rle_crop_3753729443_0.png.png imagette222193231744276381/1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_bib_crop_3753723782_0.jpg.jpg imagette222193231744276381/1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723783_0.png.png imagette222193231744276381/1744276073_4182828_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753723782_0.png.png imagette222193231744276381/1744276014_4181988_1351113374_afd65311a5c9a488cc897607091bebd1_rle_crop_3753720700_0.png.png imagette222193231744276381/1744276193_4185169_1351113846_85b4679787525b74b98269ae162a2b0d_rle_crop_3753726601_0.png.png imagette222193231744276381/1744276296_4186244_1351116441_f566447a2bdc2613e69e06289e3999f0_rle_crop_3753727617_0.png.png imagette222193231744276381/1744275926_4130137_1351113036_67da5314a5cb4115c75ceda92d5fb0c8_rle_crop_3753719518_0.png.png imagette222193231744276381/1744276053_4182454_1351114375_72bee998432a9bcf09363a83f255c309_rle_crop_3753723110_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/0915272d9aaea6be52685d958019b07e_97690462.png imagette222193231744276381 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22219271 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22219324,22219325,22219326,22219327,22219328,22219329,22219330,22219331,22219332,22219333,22219334,22219335?tags=plastique,kraft,papier,autre_refus,environnement,mal_croppe,cartonnette,Carton_brun,flou,metal,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1351116712] : ('0.04019671794006156',) no score found for photo 1351116712 We are sending mail with results at report@fotonower.com args[1351116708] : ('0.04019671794006156',) no score found for photo 1351116708 We are sending mail with results at report@fotonower.com args[1351116705] : ('0.04019671794006156',) no score found for photo 1351116705 We are sending mail with results at report@fotonower.com args[1351116701] : ('0.04019671794006156',) no score found for photo 1351116701 We are sending mail with results at report@fotonower.com args[1351116670] : ('0.04019671794006156',) no score found for photo 1351116670 We are sending mail with results at report@fotonower.com args[1351116660] : ('0.04019671794006156',) no score found for photo 1351116660 We are sending mail with results at report@fotonower.com refus_total : 0.04019671794006156 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=22219271 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_P22219271_10-04-2025_11_12_59.pdf results_Auto_P22219271_10-04-2025_11_12_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219271_10-04-2025_11_12_59.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','22219271','results_Auto_P22219271_10-04-2025_11_12_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219271_10-04-2025_11_12_59.pdf','pdf','','0.16','0.04019671794006156') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22219271]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] map_info['map_portfolio_photo'] : {22219271: [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660, 1351116562, 1351116553, 1351116551, 1351116538, 1351116476, 1351116464, 1351116441, 1351116397, 1351116373, 1351116348, 1351116227, 1351116145, 1351116101, 1351116061, 1351115997, 1351115986, 1351115597, 1351115581, 1351115455, 1351115399, 1351114410, 1351114375, 1351114333, 1351113994, 1351113889, 1351113846, 1351113814, 1351113729, 1351113374, 1351113242, 1351113160, 1351113088, 1351113036, 1351112565, 1351112483, 1351112436, 1351112077, 1351112061]} final : False mtd_id 4302 list_pids : [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] 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, '2739174') ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '22219271', '1351116712', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174')] time used for this insertion : 0.01321554183959961 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.338820934295654 time spend to save output : 0.013416051864624023 total time spend for step 4 : 4.352236986160278 step5:split_time_score Thu Apr 10 11:13:03 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 : ['22219271'] 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 : [('22219271',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22219271) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351116660: {'path': 'temp/1744276379_2052663_1351116660_c99f67fd5818c58bc7bc9be60ec24c9b.jpg', 'extension': 'jpg'}, 1351116670: {'path': 'temp/1744276379_2052663_1351116670_c2f4fe987ad7c29f2efe72ee1c81a24b.jpg', 'extension': 'jpg'}, 1351116701: {'path': 'temp/1744276379_2052663_1351116701_10ca2c891894ba4584492be717023fbf.jpg', 'extension': 'jpg'}, 1351116705: {'path': 'temp/1744276379_2052663_1351116705_8d035db2e568c4cc0612dc142f884962.jpg', 'extension': 'jpg'}, 1351116708: {'path': 'temp/1744276379_2052663_1351116708_06987b37ec2ad1aa5f8d775b412644b0.jpg', 'extension': 'jpg'}, 1351116712: {'path': 'temp/1744276379_2052663_1351116712_a5ab1bdb16c3f5c56dbcd599e0f05fb5.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 = 22219271; (('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 = 22219271 group by h (('11', 44),) 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=22219271 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 (22219271) 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 (22219271) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22219271 Nombre de photos uploadées : 44 / 23040 (0%) 10042025 22219271 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 10042025 22219271 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1351112077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/218435b00d3741dca04cf2a19c5eb4da.jpg', 'username': None, 'uploaded_at': 1744275667, 'text': 'image_10042025_11_00_14_10203.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351112061, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a2b004e859e5261452d12160420c4753.jpg', 'username': None, 'uploaded_at': 1744275667, 'text': 'image_10042025_11_00_34_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351112565, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/88c93a588d756d1502d1c62e124384da.jpg', 'username': None, 'uploaded_at': 1744275727, 'text': 'image_10042025_11_00_44_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351112483, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/eb7009517bd2a5981f8fd42eb6a57a91.jpg', 'username': None, 'uploaded_at': 1744275727, 'text': 'image_10042025_11_01_24_10138.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002942800521850586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22219271, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0338287353515625 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1738136, 'mtr_portfolio_id': 22217206, 'dashboard_result_id': 9985489, '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_P22217206_10-04-2025_10_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217292, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1738136, 'mtr_portfolio_id': 22217932, 'dashboard_result_id': 9985490, '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_P22217932_10-04-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217947, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1738136, 'mtr_portfolio_id': 22218414, 'dashboard_result_id': 9985491, '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_P22218414_10-04-2025_11_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22218444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218455, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1738136, 'mtr_portfolio_id': 22219271, 'dashboard_result_id': 9985492, '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_P22219271_10-04-2025_11_11_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219323, '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 = 22217206 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': 2739004, 'mtr_portfolio_id': 22217206, 'created_at': datetime.datetime(2025, 4, 10, 10, 33, 1), 'result': '0.04157723904391312', 'result_long': None, 'result_double': None}] Qualite : 0.04157723904391312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22217206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217206_10-04-2025_10_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22217206 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_P22217206_10-04-2025_10_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217292, 'pht': 3726}}" where mtr_portfolio_id = 22217206 and dashboard_run_id = 1738136 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`=22217206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9985489, 0.04157723904391312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217206_10-04-2025_10_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217292, '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 = 22217932 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': 2739062, 'mtr_portfolio_id': 22217932, 'created_at': datetime.datetime(2025, 4, 10, 10, 48, 58), 'result': '0.045336669395957346', 'result_long': None, 'result_double': None}] Qualite : 0.045336669395957346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22217932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217932_10-04-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22217932 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_P22217932_10-04-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217947, 'pht': 3726}}" where mtr_portfolio_id = 22217932 and dashboard_run_id = 1738136 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`=22217932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9985490, 0.045336669395957346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22217932_10-04-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22217936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22217937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22217938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22217939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22217940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22217941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22217942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22217943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22217944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22217945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22217946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22217947, '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 = 22218414 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': 2739101, 'mtr_portfolio_id': 22218414, 'created_at': datetime.datetime(2025, 4, 10, 11, 2, 57), 'result': '0.04335315297950397', 'result_long': None, 'result_double': None}] Qualite : 0.04335315297950397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22218414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218414_10-04-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22218414 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_P22218414_10-04-2025_11_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22218444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218455, 'pht': 3726}}" where mtr_portfolio_id = 22218414 and dashboard_run_id = 1738136 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`=22218414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9985491, 0.04335315297950397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22218414_10-04-2025_11_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22218444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22218445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22218446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22218447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22218448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22218449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22218450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22218451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22218452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22218453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22218454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22218455, '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 = 22219271 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': 2739174, 'mtr_portfolio_id': 22219271, 'created_at': datetime.datetime(2025, 4, 10, 11, 12, 59), 'result': '0.04019671794006156', 'result_long': None, 'result_double': None}] Qualite : 0.04019671794006156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22219271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219271_10-04-2025_11_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22219271 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_P22219271_10-04-2025_11_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219323, 'pht': 3726}}" where mtr_portfolio_id = 22219271 and dashboard_run_id = 1738136 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`=22219271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9985492, 0.04019671794006156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22219271_10-04-2025_11_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22219312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22219313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22219314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22219315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22219316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22219317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22219318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22219319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22219320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22219321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22219322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22219323, '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 (22217206,22217932,22218414,22219271) result : ((1351101876,), (1351101881,), (1351101885,), (1351101892,), (1351102027,), (1351102031,), (1351102034,), (1351102037,), (1351102047,), (1351102160,), (1351102342,), (1351102352,), (1351102356,), (1351102366,), (1351102427,), (1351102616,), (1351102656,), (1351102709,), (1351102844,), (1351102869,), (1351102875,), (1351102880,), (1351102885,), (1351102890,), (1351102947,), (1351102951,), (1351102965,), (1351103015,), (1351103018,), (1351103022,), (1351103026,), (1351103029,), (1351103035,), (1351103122,), (1351103130,), (1351103138,), (1351103154,), (1351103366,), (1351103394,), (1351103414,), (1351103453,), (1351103487,), (1351103539,), (1351103684,), (1351103711,), (1351103735,), (1351103814,), (1351103834,), (1351103910,), (1351103915,), (1351103918,), (1351103957,), (1351104055,), (1351104064,), (1351104090,), (1351104119,), (1351104122,), (1351104167,), (1351104169,), (1351104172,), (1351104175,), (1351104178,), (1351104209,), (1351104276,), (1351104282,), (1351104320,), (1351104753,), (1351104731,), (1351105272,), (1351105276,), (1351105279,), (1351105286,), (1351105392,), (1351105394,), (1351105397,), (1351105429,), (1351105451,), (1351105477,), (1351105563,), (1351105568,), (1351105570,), (1351105572,), (1351105628,), (1351105631,), (1351105651,), (1351105739,), (1351105758,), (1351105772,), (1351105791,), (1351105806,), (1351105980,), (1351105983,), (1351105987,), (1351105991,), (1351106148,), (1351106161,), (1351106171,), (1351106179,), (1351106265,), (1351106273,), (1351106276,), (1351106279,), (1351106309,), (1351106311,), (1351106313,), (1351106316,), (1351106319,), (1351106322,), (1351106379,), (1351106381,), (1351106384,), (1351106386,), (1351106396,), (1351106522,), (1351106554,), (1351106569,), (1351106900,), (1351106926,), (1351106961,), (1351106992,), (1351107040,), (1351107075,), (1351107370,), (1351107305,), (1351107308,), (1351107311,), (1351107312,), (1351107537,), (1351107553,), (1351107587,), (1351107641,), (1351107691,), (1351108033,), (1351108097,), (1351108139,), (1351108470,), (1351108554,), (1351108616,), (1351108677,), (1351108737,), (1351108827,), (1351109223,), (1351109302,), (1351109310,), (1351109331,), (1351109651,), (1351109667,), (1351109690,), (1351109694,), (1351109705,), (1351109925,), (1351109960,), (1351109971,), (1351110222,), (1351110284,), (1351110333,), (1351110357,), (1351110593,), (1351110622,), (1351110632,), (1351110654,), (1351110924,), (1351110926,), (1351110944,), (1351110966,), (1351111004,), (1351111007,), (1351111151,), (1351111154,), (1351111182,), (1351111305,), (1351111307,), (1351111619,), (1351111636,), (1351111702,), (1351111791,), (1351111837,), (1351112103,), (1351112061,), (1351112077,), (1351112436,), (1351112483,), (1351112565,), (1351113036,), (1351113088,), (1351113160,), (1351113242,), (1351113374,), (1351113729,), (1351113814,), (1351113846,), (1351113889,), (1351113994,), (1351114333,), (1351114375,), (1351114410,), (1351115399,), (1351115455,), (1351115581,), (1351115597,), (1351115986,), (1351115997,), (1351116061,), (1351116101,), (1351116145,), (1351116227,), (1351116348,), (1351116373,), (1351116397,), (1351116441,), (1351116464,), (1351116476,), (1351116538,), (1351116551,), (1351116553,), (1351116562,), (1351116660,), (1351116670,), (1351116701,), (1351116705,), (1351116708,), (1351116712,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22219271]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] map_info['map_portfolio_photo'] : {22219271: [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660, 1351116562, 1351116553, 1351116551, 1351116538, 1351116476, 1351116464, 1351116441, 1351116397, 1351116373, 1351116348, 1351116227, 1351116145, 1351116101, 1351116061, 1351115997, 1351115986, 1351115597, 1351115581, 1351115455, 1351115399, 1351114410, 1351114375, 1351114333, 1351113994, 1351113889, 1351113846, 1351113814, 1351113729, 1351113374, 1351113242, 1351113160, 1351113088, 1351113036, 1351112565, 1351112483, 1351112436, 1351112077, 1351112061]} final : True mtd_id 4302 list_pids : [1351116712, 1351116708, 1351116705, 1351116701, 1351116670, 1351116660] Looping around the photos to save general results len do output : 1 /22219271Didn'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, '2739174') ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174') ('4302', None, None, None, None, None, None, None, '2739174') ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22219271', 'None', None, None, None, None, '2739174'), ('4302', '22219271', '1351116712', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116708', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116705', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116701', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116670', None, None, None, None, None, '2739174'), ('4302', '22219271', '1351116660', None, None, None, None, None, '2739174')] time used for this insertion : 0.014965057373046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4850790500640869 time spend to save output : 0.0151824951171875 total time spend for step 5 : 0.5002615451812744 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 (2739174) 2.00user 2.34system 0:09.46elapsed 45%CPU (0avgtext+0avgdata 158744maxresident)k 384inputs+9232outputs (0major+63791minor)pagefaults 0swaps