result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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 21968625 , 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=21968589 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 (21968625) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968589) result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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 21968626 , 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=21968589 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 (21968626) result : ((1349469320,), (1349469670,), (1349469671,), (1349469908,), (1349469910,), (1349469995,), (1349469996,), (1349469999,), (1349470000,), (1349470199,), (1349470200,), (1349470390,), (1349470391,), (1349470392,), (1349470393,), (1349470555,), (1349470556,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968589) result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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 21968627 , 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=21968589 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 (21968627) result : ((1349469325,), (1349469327,), (1349469328,), (1349469633,), (1349469634,), (1349469676,), (1349469677,), (1349469914,), (1349470008,), (1349470009,), (1349470010,), (1349470011,), (1349470012,), (1349470013,), (1349470173,), (1349470202,), (1349470364,), (1349470405,), (1349470406,), (1349470407,), (1349470408,), (1349470409,), (1349470559,), (1349470560,), (1349470765,), (1349470766,), (1349470767,), (1349470768,), (1349470781,), (1349470782,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968589) result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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 21968628 , 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=21968589 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968628) result : ((1349470416,), (1349470561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968589) result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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 21968629 , 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=21968589 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21968589) result : ((1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) 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`=21968589 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','mal_croppe','environnement','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','kraft','Carton_brun','papier','plastique')) 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`=21968589 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','mal_croppe','environnement','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','kraft','Carton_brun','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21968589, 'sub_port_id': 21968630, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468246, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'autre_refus': {'main_port_id': 21968589, 'sub_port_id': 21968631, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468247, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'plastique': {'main_port_id': 21968589, 'sub_port_id': 21968632, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468248, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'papier': {'main_port_id': 21968589, 'sub_port_id': 21968633, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468249, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 21968589, 'sub_port_id': 21968634, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468250, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'mal_croppe': {'main_port_id': 21968589, 'sub_port_id': 21968635, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468251, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'metal': {'main_port_id': 21968589, 'sub_port_id': 21968636, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468252, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'flou': {'main_port_id': 21968589, 'sub_port_id': 21968637, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468253, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'Carton_gris': {'main_port_id': 21968589, 'sub_port_id': 21968638, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468254, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'Carton_brun': {'main_port_id': 21968589, 'sub_port_id': 21968639, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468255, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'kraft': {'main_port_id': 21968589, 'sub_port_id': 21968640, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468256, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}, 'environnement': {'main_port_id': 21968589, 'sub_port_id': 21968641, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14468257, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 45), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 45), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21968641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21968629 lien utilise dans velours : https://www.fotonower.com/velours/21968630,21968631,21968632,21968633,21968634,21968635,21968636,21968637,21968638,21968639,21968640,21968641?tags=cartonnette,autre_refus,plastique,papier,Teint_Dans_La_Masse,mal_croppe,metal,flou,Carton_gris,Carton_brun,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21968589]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] map_info['map_portfolio_photo'] : {21968589: [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721, 1349470579, 1349470575, 1349470570, 1349470566, 1349470510, 1349470504, 1349470501, 1349470497, 1349470492, 1349470428, 1349470421, 1349470411, 1349470403, 1349470386, 1349470376, 1349470322, 1349470285, 1349470267, 1349470226, 1349470215, 1349470212, 1349470209, 1349470206, 1349470204, 1349470163, 1349470160, 1349470136, 1349470110, 1349470032, 1349470028, 1349470014, 1349470006, 1349469994, 1349469792, 1349469766, 1349469730, 1349469673, 1349469664, 1349469659, 1349469654, 1349469650, 1349469639, 1349469461, 1349469446, 1349469419, 1349469382, 1349469376, 1349469319, 1349469314, 1349469312, 1349469310, 1349469267, 1349469261, 1349469258, 1349469254, 1349469251, 1349469241, 1349469160, 1349469155, 1349469150, 1349469146, 1349469137, 1349468986, 1349468956, 1349468928, 1349468903, 1349468878]} final : False mtd_id 4302 list_pids : [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] Looping around the photos to save general results len do output : 1 /21968589. 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, '2715767') ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21968589', "{'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629}", None, None, None, None, '2715767'), ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767')] time used for this insertion : 0.012473344802856445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4655861854553223 time spend to save output : 0.012844085693359375 total time spend for step 1 : 1.4784302711486816 step2:final Wed Apr 2 07:46:31 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 (21968589) 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 21968589 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349468986,1349468956,1349468928,1349468903,1349468878,1349469160,1349469155,1349469150,1349469146,1349469137,1349469267,1349469261,1349469258,1349469254,1349469251,1349469241,1349469319,1349469314,1349469312,1349469310,1349469461,1349469446,1349469419,1349469382,1349469376,1349469673,1349469664,1349469659,1349469654,1349469650,1349469639,1349469792,1349469766,1349469730,1349470032,1349470028,1349470014,1349470006,1349469994,1349470163,1349470160,1349470136,1349470110,1349470226,1349470215,1349470212,1349470209,1349470206,1349470204,1349470322,1349470285,1349470267,1349470428,1349470421,1349470411,1349470403,1349470386,1349470376,1349470510,1349470504,1349470501,1349470497,1349470492,1349470579,1349470575,1349470570,1349470566,1349470737,1349470732,1349470728,1349470726,1349470724,1349470721,1349470797); 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([21968589]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} new output for save of step final : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] map_info['map_portfolio_photo'] : {21968589: [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721, 1349470579, 1349470575, 1349470570, 1349470566, 1349470510, 1349470504, 1349470501, 1349470497, 1349470492, 1349470428, 1349470421, 1349470411, 1349470403, 1349470386, 1349470376, 1349470322, 1349470285, 1349470267, 1349470226, 1349470215, 1349470212, 1349470209, 1349470206, 1349470204, 1349470163, 1349470160, 1349470136, 1349470110, 1349470032, 1349470028, 1349470014, 1349470006, 1349469994, 1349469792, 1349469766, 1349469730, 1349469673, 1349469664, 1349469659, 1349469654, 1349469650, 1349469639, 1349469461, 1349469446, 1349469419, 1349469382, 1349469376, 1349469319, 1349469314, 1349469312, 1349469310, 1349469267, 1349469261, 1349469258, 1349469254, 1349469251, 1349469241, 1349469160, 1349469155, 1349469150, 1349469146, 1349469137, 1349468986, 1349468956, 1349468928, 1349468903, 1349468878]} final : False mtd_id 4302 list_pids : [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] Looping around the photos to save general results len do output : 7 /1349470797.Didn't retrieve data . /1349470737.Didn't retrieve data . /1349470732.Didn't retrieve data . /1349470728.Didn't retrieve data . /1349470726.Didn't retrieve data . /1349470724.Didn't retrieve data . /1349470721.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, '2715767') ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21968589', '1349470797', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470737', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470732', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470728', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470726', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470724', '0.04523367331598181', None, None, None, None, '2715767'), ('4302', '21968589', '1349470721', '0.04523367331598181', None, None, None, None, '2715767')] time used for this insertion : 0.012624025344848633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07383370399475098 time spend to save output : 0.013138055801391602 total time spend for step 2 : 0.08697175979614258 step3:velours_tree Wed Apr 2 07:46:31 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 : {21968589: [{'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629}]} input_args_next_step : {21968589: ()} output_args : {21968589: [{'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629}]} args : 21968589 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 : ({'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21968589) 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([21968589]) 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.668616533279419 time spend to save output : 9.107589721679688e-05 total time spend for step 3 : 0.6687076091766357 step4:send_mail_cod Wed Apr 2 07:46:31 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 : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} input_args_next_step : {1349470797: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470797 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470737 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470732 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470728 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470726 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470724 depend.output_id : 0 input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ()} output_args : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',)} args : 1349470721 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 : {21968589: [{'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629}]} input_args_next_step : {1349470797: ('0.04523367331598181',), 1349470737: ('0.04523367331598181',), 1349470732: ('0.04523367331598181',), 1349470728: ('0.04523367331598181',), 1349470726: ('0.04523367331598181',), 1349470724: ('0.04523367331598181',), 1349470721: ('0.04523367331598181',), 21968589: ()} output_args : {21968589: [{'cartonnette': 21968618, 'autre_refus': 21968619, 'plastique': 21968620, 'papier': 21968621, 'Teint_Dans_La_Masse': 21968622, 'mal_croppe': 21968623, 'metal': 21968624, 'flou': 21968625, 'Carton_gris': 21968626, 'Carton_brun': 21968627, 'kraft': 21968628, 'environnement': 21968629}]} args : 21968589 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :8, first value : ('0.04523367331598181',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21968589) 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 (1349470797,1349470737,1349470732,1349470728,1349470726,1349470724,1349470721) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349470721 begin to download photo : 1349470726 begin to download photo : 1349470732 begin to download photo : 1349470797 download finish for photo 1349470732 begin to download photo : 1349470737 download finish for photo 1349470797 download finish for photo 1349470721 begin to download photo : 1349470724 download finish for photo 1349470726 begin to download photo : 1349470728 download finish for photo 1349470737 download finish for photo 1349470728 download finish for photo 1349470724 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21968589_02-04-2025_07_46_32.pdf 21968618 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=21968618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470005: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966058_0.png', 1349470780: '1743572726_3184822_1349470501_e0659b5af5e7b38ea41fa77a617ffe30_rle_crop_3743974961_0.png', 1349470779: '1743572726_3184822_1349470504_23fb5096b3a6f38c1cd244129fa9267f_rle_crop_3743974948_0.png', 1349470764: '1743572712_1004024_1349470566_0b39ebec6e73194cd08df4eb30d991f8_rle_crop_3743974921_0.png', 1349470763: '1743572712_1004024_1349470566_0b39ebec6e73194cd08df4eb30d991f8_rle_crop_3743974926_0.png', 1349470762: '1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974909_0.png', 1349470558: '1743572591_1003093_1349470204_e06d16d2334dab0dad410578ca5074be_rle_crop_3743973014_0.png', 1349470398: '1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972401_0.png', 1349470201: '1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970680_0.png', 1349470172: '1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970433_0.png', 1349469322: '1743571995_996018_1349468956_1182dcf2b7149cc51a0f3591803aae93_rle_crop_3743964228_0.png', 1349470004: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966064_0.png', 1349470003: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966069_0.png', 1349470002: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966024_0.png', 1349470001: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966028_0.png', 1349469674: '1743572150_997981_1349469150_11600d6f0e65c097ccd8c447585979ed_rle_crop_3743965750_0.png', 1349469610: '1743572133_997789_1349469310_636af2984e53a728993a282ec51178da_rle_crop_3743965499_0.png', 1349469608: '1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965486_0.png', 1349469323: '1743571995_996018_1349468928_4a500295907bdb55d34fe3bef899dc8f_rle_crop_3743964237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/090c8bbf553547502b120203cec76f40_86206149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f69f7809909d0d46345b89b62ca37fa_29330994.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/80686ca50ff211053cee1d25ec044040_36576257.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e124c185828bebab1ff4a20065e8dd55_51037692.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e2edd339180fa7c209e7ecab17436d95_59031896.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0deaac74cb533ad17e8a6747ebba6325_9841332.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/346ecbac015757a7d56056220ad998c8_84714145.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7dbb49461ce62e535687bce71502f28c_55350908.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e953401c82e06ffed02dc30d45064b4b_75239651.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d77745538e087659a63e85dbecf7f895_29125886.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dfbc46780ae19a08637d3902d86222fd_32960060.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3515a3a1cecf4613fae432907a68fd59_85863373.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/48113a6c254177d74cf5d997782c6183_29466055.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d4afff361f3f2ef4f0b80a0264862690_76660716.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/19d63d5e39e78289f9c3088136d2d475_7345625.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fa83b1c6a50f378e4cfb1d41a18bdeae_61906745.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/65d398bd39ec2cd0cdb27fbb0d45c854_93258643.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/51969d352cca5b63477483be0356e3ea_36199842.png change filename to text .imagette219686181743572792/ imagette219686181743572792/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966064_0.png.png imagette219686181743572792/1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974909_0.png.png imagette219686181743572792/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966058_0.png.png imagette219686181743572792/1743572726_3184822_1349470501_e0659b5af5e7b38ea41fa77a617ffe30_rle_crop_3743974961_0.png.png imagette219686181743572792/1743571995_996018_1349468928_4a500295907bdb55d34fe3bef899dc8f_rle_crop_3743964237_0.png.png imagette219686181743572792/1743572712_1004024_1349470566_0b39ebec6e73194cd08df4eb30d991f8_rle_crop_3743974926_0.png.png imagette219686181743572792/1743572133_997789_1349469310_636af2984e53a728993a282ec51178da_rle_crop_3743965499_0.png.png imagette219686181743572792/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966069_0.png.png imagette219686181743572792/1743572726_3184822_1349470504_23fb5096b3a6f38c1cd244129fa9267f_rle_crop_3743974948_0.png.png imagette219686181743572792/1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965486_0.png.png imagette219686181743572792/1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972401_0.png.png imagette219686181743572792/1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970433_0.png.png imagette219686181743572792/1743572591_1003093_1349470204_e06d16d2334dab0dad410578ca5074be_rle_crop_3743973014_0.png.png imagette219686181743572792/1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970680_0.png.png imagette219686181743572792/1743571995_996018_1349468956_1182dcf2b7149cc51a0f3591803aae93_rle_crop_3743964228_0.png.png imagette219686181743572792/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966028_0.png.png imagette219686181743572792/1743572712_1004024_1349470566_0b39ebec6e73194cd08df4eb30d991f8_rle_crop_3743974921_0.png.png imagette219686181743572792/1743572150_997981_1349469150_11600d6f0e65c097ccd8c447585979ed_rle_crop_3743965750_0.png.png imagette219686181743572792/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966024_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0527d85d502a236c6d361675e0e7682b_16579403.png imagette219686181743572792 21968619 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=21968619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349469318: '1743571995_996018_1349468878_0897dca7839a5090bc3f2d112b018f93_rle_crop_3743964279_0.png', 1349469901: '1743572232_999468_1349469376_48d7e1d28add1e7ad774508463a37463_rle_crop_3743966424_0.png', 1349469989: '1743572247_3173407_1349469254_172b69d87cdf1b97ab83b74e8fe348d0_rle_crop_3743966017_0.png', 1349469991: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966051_0.png', 1349469992: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966034_0.png', 1349469993: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966068_0.png', 1349470193: '1743572371_1000636_1349469766_7b9554f76edf2645da8e6d17912a0f90_rle_crop_3743970648_0.png', 1349470542: '1743572607_3182162_1349470285_ac7b3c0de634e09c9e5a2fcc680399b7_rle_crop_3743972892_0.png', 1349470553: '1743572591_1003093_1349470212_49b209ffaaed034e65acde4746968701_rle_crop_3743972901_0.png', 1349470554: '1743572591_1003093_1349470204_e06d16d2334dab0dad410578ca5074be_rle_crop_3743973016_0.png', 1349470777: '1743572726_3184822_1349470492_40c462c42edf36c7e9bd65c8f9994b06_rle_crop_3743974986_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/db5a5e69bf830cefe53668be7c1eac95_78168798.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2f9b758155c35a128ecd7f8aed7226cd_91055566.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08361eea42b96815a4a726187d4364a0_51565573.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b2740984ff80415588cc756650b8d5d1_19382780.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cdc5cd7120f442437c483ed7ddb56883_92317279.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ec9a3eadeb22831aab77480c69a399ec_751090.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f53e0bd80e8d75c1d1feab90ed2d0214_66171024.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/43fcd4063ce1667f189e77e615f790e6_45301659.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/049fbb24a0586bd6d11a53e422412a46_9106431.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/178c1c24df923234bcb11bb35fd4f24a_64041048.png change filename to text .imagette219686191743572793/ imagette219686191743572793/1743572726_3184822_1349470492_40c462c42edf36c7e9bd65c8f9994b06_rle_crop_3743974986_0.png.png imagette219686191743572793/1743572591_1003093_1349470212_49b209ffaaed034e65acde4746968701_rle_crop_3743972901_0.png.png imagette219686191743572793/1743572607_3182162_1349470285_ac7b3c0de634e09c9e5a2fcc680399b7_rle_crop_3743972892_0.png.png imagette219686191743572793/1743572247_3173407_1349469254_172b69d87cdf1b97ab83b74e8fe348d0_rle_crop_3743966017_0.png.png imagette219686191743572793/1743572232_999468_1349469376_48d7e1d28add1e7ad774508463a37463_rle_crop_3743966424_0.png.png imagette219686191743572793/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966034_0.png.png imagette219686191743572793/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966068_0.png.png imagette219686191743572793/1743572371_1000636_1349469766_7b9554f76edf2645da8e6d17912a0f90_rle_crop_3743970648_0.png.png imagette219686191743572793/1743571995_996018_1349468878_0897dca7839a5090bc3f2d112b018f93_rle_crop_3743964279_0.png.png imagette219686191743572793/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966051_0.png.png imagette219686191743572793/1743572591_1003093_1349470204_e06d16d2334dab0dad410578ca5074be_rle_crop_3743973016_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f596f108d32eeb08abf82623d3224a7_92326912.png imagette219686191743572793 21968620 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=21968620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349469635: '1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965488_0.png', 1349469678: '1743572150_997981_1349469146_aa4f9227732b04d7c1e0ab120c5f2ec4_rle_crop_3743965770_0.png', 1349469916: '1743572232_999468_1349469376_48d7e1d28add1e7ad774508463a37463_rle_crop_3743966434_0.png', 1349470365: '1743572473_1001971_1349470136_d2ecc5ef8def31b867df7b50de70ff9c_rle_crop_3743972315_0.png', 1349470412: '1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972469_0.png', 1349470546: '1743572607_3182162_1349470285_ac7b3c0de634e09c9e5a2fcc680399b7_rle_crop_3743972887_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d9afc4ad638534207050ee7b63b9d3b8_86118059.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b2c9cebf61c9e1b81b95790907291104_59707074.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1d6ab3ac9c43bea599ef8a35b47424c6_61060228.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2e15a16b3041ce4804de5ef6d8d15157_11968889.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/80675ba8e66af4db7eb1d74df1c5fcf6_74030663.png change filename to text .imagette219686201743572793/ imagette219686201743572793/1743572607_3182162_1349470285_ac7b3c0de634e09c9e5a2fcc680399b7_rle_crop_3743972887_0.png.png imagette219686201743572793/1743572473_1001971_1349470136_d2ecc5ef8def31b867df7b50de70ff9c_rle_crop_3743972315_0.png.png imagette219686201743572793/1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972469_0.png.png imagette219686201743572793/1743572232_999468_1349469376_48d7e1d28add1e7ad774508463a37463_rle_crop_3743966434_0.png.png imagette219686201743572793/1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965488_0.png.png imagette219686201743572793/1743572150_997981_1349469146_aa4f9227732b04d7c1e0ab120c5f2ec4_rle_crop_3743965770_0.png.png imagette219686231743572794/ imagette219686241743572794/ imagette219686251743572794/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c48a6cb4f7acb27d62bb600a62f290d7_65011370.png imagette219686201743572793 21968623 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=21968623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219686231743572794 21968624 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=21968624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219686241743572794 21968625 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=21968625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219686251743572794 21968628 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=21968628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470416: '1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972375_0.png', 1349470561: '1743572591_1003093_1349470212_49b209ffaaed034e65acde4746968701_rle_crop_3743972902_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9d4b8d9262a5fe987208857b08beeeaf_80580384.png change filename to text .imagette219686281743572794/ imagette219686281743572794/1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972375_0.png.png imagette219686281743572794/1743572591_1003093_1349470212_49b209ffaaed034e65acde4746968701_rle_crop_3743972902_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2943e1ac04c5e3c28c4a5f1dc4cbf305_35709612.png imagette219686281743572794 21968622 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=21968622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470362: '1743572473_1001971_1349470160_60d5bab7506d956cf294a117a6d1f85a_rle_crop_3743972285_0.png', 1349470776: '1743572726_3184822_1349470492_40c462c42edf36c7e9bd65c8f9994b06_rle_crop_3743974984_0.png', 1349470775: '1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974968_0.png', 1349470774: '1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974971_0.png', 1349470773: '1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974969_0.png', 1349470552: '1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972934_0.png', 1349470551: '1743572591_1003093_1349470209_f4b8cafe0146cb4d0b3cc76076cda617_rle_crop_3743972918_0.png', 1349470385: '1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972372_0.png', 1349470383: '1743572485_3179429_1349470163_987778e809ddb71b7496bfe94a8e6972_rle_crop_3743972338_0.png', 1349470363: '1743572473_1001971_1349470136_d2ecc5ef8def31b867df7b50de70ff9c_rle_crop_3743972325_0.png', 1349469316: '1743571995_996018_1349468878_0897dca7839a5090bc3f2d112b018f93_rle_crop_3743964293_0.png', 1349470197: '1743572366_3176024_1349469650_80147353d5ac3c1b95c8684c648cf768_rle_crop_3743970661_0.png', 1349470195: '1743572366_3176024_1349469664_e506cbdfc5309ae1e79ecd8285f16ba7_rle_crop_3743970617_0.png', 1349470171: '1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970441_0.png', 1349469987: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966046_0.png', 1349469986: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966038_0.png', 1349469669: '1743572150_997981_1349469137_7cbf0bc851e1e8d9459ac96392bbc986_rle_crop_3743965781_0.png', 1349469668: '1743572150_997981_1349469150_11600d6f0e65c097ccd8c447585979ed_rle_crop_3743965752_0.png', 1349469667: '1743572150_997981_1349469155_b9b2e0b6b8825f7c1d6507721f823b63_rle_crop_3743965741_0.png', 1349469605: '1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965492_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c27fe4e5ee770d9e1e6c7769a9bbc402_11864414.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d8fe5ed76d721a6b958935bd648a253b_17925645.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c7171d0cfe9c6ba60cb4e723f0c5d66e_92868359.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dbb9c8e023dd1de696ede33ec410ba78_14805066.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e3d36849daa9d6765ebfedc237cfa683_78308828.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/18270246c283e7d6c42f160c95878a59_64412141.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d5d104a02995c05f0593c60ad509b5f6_10640966.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/58dbc553d4217ef2d6f466360587eb4e_58642959.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/36b633b7c56d24c57ecb0859a440d1fe_47057352.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/96f845b954326d8c7a7aba1fe5621375_37698139.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/28ef8f20946be9f7ff56456a37dc7e70_29070067.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/55cc8e9affb4d13eefd9ed6c9ae9d4ef_10733288.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f9d7cd1bec3ed1619af6fdccb72beff7_38765891.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5fda2509af3db150d13013ca35c6edb1_74911370.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/752ab6eb8b13f3db7fcebd35580c3eef_93871485.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/31da3576c43698881e7e80f9ef61f8eb_31209459.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0af1ef71f005c02d148d5c3ba8b96c4f_7770791.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1b2f6fc71c2881dad33a80798f2d01cd_39913993.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/270f37f861e3d911f75bf7ef97b7dde9_10094926.png change filename to text .imagette219686221743572794/ imagette219686221743572794/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966046_0.png.png imagette219686221743572794/1743572485_3179429_1349470163_987778e809ddb71b7496bfe94a8e6972_rle_crop_3743972338_0.png.png imagette219686221743572794/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966038_0.png.png imagette219686221743572794/1743572150_997981_1349469155_b9b2e0b6b8825f7c1d6507721f823b63_rle_crop_3743965741_0.png.png imagette219686221743572794/1743572150_997981_1349469150_11600d6f0e65c097ccd8c447585979ed_rle_crop_3743965752_0.png.png imagette219686221743572794/1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974971_0.png.png imagette219686221743572794/1743572133_997789_1349469312_eb5543e624f7f96029dfd68d77b47b13_rle_crop_3743965492_0.png.png imagette219686221743572794/1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974969_0.png.png imagette219686221743572794/1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972372_0.png.png imagette219686221743572794/1743572726_3184822_1349470492_40c462c42edf36c7e9bd65c8f9994b06_rle_crop_3743974984_0.png.png imagette219686221743572794/1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970441_0.png.png imagette219686221743572794/1743572366_3176024_1349469664_e506cbdfc5309ae1e79ecd8285f16ba7_rle_crop_3743970617_0.png.png imagette219686221743572794/1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972934_0.png.png imagette219686221743572794/1743572366_3176024_1349469650_80147353d5ac3c1b95c8684c648cf768_rle_crop_3743970661_0.png.png imagette219686221743572794/1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974968_0.png.png imagette219686221743572794/1743572473_1001971_1349470160_60d5bab7506d956cf294a117a6d1f85a_rle_crop_3743972285_0.png.png imagette219686221743572794/1743571995_996018_1349468878_0897dca7839a5090bc3f2d112b018f93_rle_crop_3743964293_0.png.png imagette219686221743572794/1743572473_1001971_1349470136_d2ecc5ef8def31b867df7b50de70ff9c_rle_crop_3743972325_0.png.png imagette219686221743572794/1743572150_997981_1349469137_7cbf0bc851e1e8d9459ac96392bbc986_rle_crop_3743965781_0.png.png imagette219686221743572794/1743572591_1003093_1349470209_f4b8cafe0146cb4d0b3cc76076cda617_rle_crop_3743972918_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8315fe6d19ff383f09b3fee875d81930_82226514.png imagette219686221743572794 21968626 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=21968626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470000: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966074_0.png', 1349470556: '1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972931_0.png', 1349470555: '1743572591_1003093_1349470215_4fcf65b2ba4aabd52b87bd613780774d_rle_crop_3743972874_0.png', 1349470393: '1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972463_0.png', 1349470392: '1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972402_0.png', 1349470391: '1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972403_0.png', 1349470390: '1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972374_0.png', 1349470200: '1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970686_0.png', 1349470199: '1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970679_0.png', 1349469320: '1743571995_996018_1349468956_1182dcf2b7149cc51a0f3591803aae93_rle_crop_3743964226_0.png', 1349469999: '1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966033_0.png', 1349469996: '1743572247_3173407_1349469258_707864c508ba5c6aca78024836d89719_rle_crop_3743966005_0.png', 1349469995: '1743572247_3173407_1349469319_0078ee76f134a5797871990a5cef30c1_rle_crop_3743965986_0.png', 1349469910: '1743572232_999468_1349469419_fe90d0dd128c7c983cd99065bae55b53_rle_crop_3743966400_0.png', 1349469908: '1743572232_999468_1349469446_b7ca26e9ef845f4a48683fba1c3427e0_rle_crop_3743966194_0.png', 1349469671: '1743572150_997981_1349469146_aa4f9227732b04d7c1e0ab120c5f2ec4_rle_crop_3743965764_0.png', 1349469670: '1743572150_997981_1349469155_b9b2e0b6b8825f7c1d6507721f823b63_rle_crop_3743965737_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d5f6fdc0111afc9ad1aeced3b379f187_44435010.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1a4084c8a674a5f5edabfd8ef472d3e2_38966883.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/09d14c6869cc0f20de977a6447a239f0_67303227.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/40978734a1b5f5b1a1daed3e84e7f5a4_24110161.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/36df3c2bb79799ed4e7415c1cc947225_76926726.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8e600668b98c25e7f13f518a4d8ca05d_27274690.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/20e9ed14a93da7381bdf27fce463778e_35475466.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ed8165ddc17e27afa620fe03e172cdc9_71009484.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/eca5f20bd17f367224bab82658e33d54_28352592.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3258cea12f7122ee9ec872f8e0ea6dd6_34966537.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ac9446d2531de43435db0079f31c104d_54161669.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9b7877078c88e074067fc3141c315f31_71166094.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e9f7ed14a4d3325016834297e4a11d69_30648098.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a4907c7ce573cb6779a56d26b1a7ec27_30270775.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e92c486eb80a1bc08010797ade4d3ee7_57124778.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b6ae6c9197087c12d3282d4d2ea4e407_14674452.png change filename to text .imagette219686261743572795/ imagette219686261743572795/1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972403_0.png.png imagette219686261743572795/1743572232_999468_1349469419_fe90d0dd128c7c983cd99065bae55b53_rle_crop_3743966400_0.png.png imagette219686261743572795/1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972931_0.png.png imagette219686261743572795/1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970679_0.png.png imagette219686261743572795/1743572366_3176024_1349469639_31f4532deb3df4083286ce67ac3a4acb_rle_crop_3743970686_0.png.png imagette219686261743572795/1743572247_3173407_1349469251_f0ea6bb2c196ec8aafd6facd2084b2fc_rle_crop_3743966033_0.png.png imagette219686261743572795/1743572247_3173407_1349469258_707864c508ba5c6aca78024836d89719_rle_crop_3743966005_0.png.png imagette219686261743572795/1743572485_3179429_1349470028_b3f889e7ba8f8b460d62660832cf5b25_rle_crop_3743972374_0.png.png imagette219686261743572795/1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972463_0.png.png imagette219686261743572795/1743572150_997981_1349469155_b9b2e0b6b8825f7c1d6507721f823b63_rle_crop_3743965737_0.png.png imagette219686261743572795/1743572247_3173407_1349469319_0078ee76f134a5797871990a5cef30c1_rle_crop_3743965986_0.png.png imagette219686261743572795/1743572232_999468_1349469446_b7ca26e9ef845f4a48683fba1c3427e0_rle_crop_3743966194_0.png.png imagette219686261743572795/1743572150_997981_1349469146_aa4f9227732b04d7c1e0ab120c5f2ec4_rle_crop_3743965764_0.png.png imagette219686261743572795/1743572591_1003093_1349470215_4fcf65b2ba4aabd52b87bd613780774d_rle_crop_3743972874_0.png.png imagette219686261743572795/1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972402_0.png.png imagette219686261743572795/1743571995_996018_1349468956_1182dcf2b7149cc51a0f3591803aae93_rle_crop_3743964226_0.png.png imagette219686261743572795/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966074_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6cf4416f6542f68af7b3a67c633b0ff7_91777147.png imagette219686261743572795 21968627 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=21968627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349470202: '1743572366_3176024_1349469650_80147353d5ac3c1b95c8684c648cf768_rle_crop_3743970663_0.png', 1349470782: '1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974967_0.png', 1349470781: '1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974973_0.png', 1349470768: '1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974906_0.png', 1349470767: '1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974912_0.png', 1349470766: '1743572712_1004024_1349470575_ae2275d32921c93ad262e23fac7fe882_rle_crop_3743974899_0.png', 1349470765: '1743572712_1004024_1349470575_ae2275d32921c93ad262e23fac7fe882_rle_crop_3743974897_0.png', 1349470560: '1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972930_0.png', 1349470559: '1743572591_1003093_1349470209_f4b8cafe0146cb4d0b3cc76076cda617_rle_crop_3743972916_0.png', 1349470409: '1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972466_0.png', 1349470408: '1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972461_0.png', 1349470407: '1743572485_3179429_1349470006_280f7879829072c6515d0a961d736bc9_rle_crop_3743972437_0.png', 1349470406: '1743572485_3179429_1349470006_280f7879829072c6515d0a961d736bc9_rle_crop_3743972432_0.png', 1349470405: '1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972412_0.png', 1349470364: '1743572473_1001971_1349470160_60d5bab7506d956cf294a117a6d1f85a_rle_crop_3743972291_0.png', 1349469325: '1743571995_996018_1349468903_ea5538f2909701fc7b2ade7ae18d13ef_rle_crop_3743964251_0.png', 1349470173: '1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970435_0.png', 1349470013: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966065_0.png', 1349470012: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966071_0.png', 1349470011: '1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966066_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bf840990e4ccc5d8d06f61c56acdcf4f_84296393.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d5afd2d4f060060b9a0ba3c0f284a622_90536758.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ad9fe6f9e3f4dbf552bf9f2a82dc79af_37459863.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cc0dd14a6fae6a5f101d97867985bdf7_54639987.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b4acf3a25498b7b92dcc8857872cf3d2_6819097.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d1087efd03a658410e1792c45ffae393_46826356.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1a46e69e66490453ba07a6842810012a_19791247.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9e6117a24553c78b35802091bd9d2013_75066466.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f122ba4859e30470e39f14e45c698a0e_20930491.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/043194c4f5ce7210a21ed9916a8e2e9e_56449580.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/188175daa929c00b2b1b265533a88a0b_66136171.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/abb5840e5111a5349f0e3ed4d0416511_34215553.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2a3912fd6d48fe89d49cae24c32c5463_72517904.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fcf252b7602dda93edc14554427db888_89171863.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1d95cbb139db70b99fd69e123331b354_53695033.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/827e7fddac0933be43a38cc680eafcf8_42638550.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6f598f4c4bb3ba9a8f24ee70531a94f1_33864260.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/443a842328b573c4ace0ec984ab10f23_49204765.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/add0fc5c6f8baef6ab2b0212ad0ca1df_53117720.png change filename to text .imagette219686271743572796/ imagette219686271743572796/1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974912_0.png.png imagette219686271743572796/1743571995_996018_1349468903_ea5538f2909701fc7b2ade7ae18d13ef_rle_crop_3743964251_0.png.png imagette219686271743572796/1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972466_0.png.png imagette219686271743572796/1743572473_1001971_1349470160_60d5bab7506d956cf294a117a6d1f85a_rle_crop_3743972291_0.png.png imagette219686271743572796/1743572485_3179429_1349469994_1a3d2437ecc6356dc4bc9467657fa420_rle_crop_3743972461_0.png.png imagette219686271743572796/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966065_0.png.png imagette219686271743572796/1743572485_3179429_1349470006_280f7879829072c6515d0a961d736bc9_rle_crop_3743972432_0.png.png imagette219686271743572796/1743572591_1003093_1349470209_f4b8cafe0146cb4d0b3cc76076cda617_rle_crop_3743972916_0.png.png imagette219686271743572796/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966066_0.png.png imagette219686271743572796/1743572485_3179429_1349470006_280f7879829072c6515d0a961d736bc9_rle_crop_3743972437_0.png.png imagette219686271743572796/1743572366_3176024_1349469650_80147353d5ac3c1b95c8684c648cf768_rle_crop_3743970663_0.png.png imagette219686271743572796/1743572712_1004024_1349470575_ae2275d32921c93ad262e23fac7fe882_rle_crop_3743974899_0.png.png imagette219686271743572796/1743572485_3179429_1349470014_3474e50d52c8e047d7d4e0b8d11f1c13_rle_crop_3743972412_0.png.png imagette219686271743572796/1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974967_0.png.png imagette219686271743572796/1743572712_1004024_1349470575_ae2275d32921c93ad262e23fac7fe882_rle_crop_3743974897_0.png.png imagette219686271743572796/1743572712_1004024_1349470570_6682fefec38380d6e155283260fa5532_rle_crop_3743974906_0.png.png imagette219686271743572796/1743572352_1000382_1349469673_1de0bdd4ccfefc6ef3fbff201f55a4ca_rle_crop_3743970435_0.png.png imagette219686271743572796/1743572591_1003093_1349470206_64cd0f673a446099ead7b0caf5c8a071_rle_crop_3743972930_0.png.png imagette219686271743572796/1743572247_3173407_1349469241_88947a421242c24d5db849451c932de7_rle_crop_3743966071_0.png.png imagette219686271743572796/1743572726_3184822_1349470497_a11f5ed777b7baca6f351c10c9c25f44_rle_crop_3743974973_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4b4feaedfe760cc616c5bb14e2cde7fd_44332230.png imagette219686271743572796 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21968589 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21968630,21968631,21968632,21968633,21968634,21968635,21968636,21968637,21968638,21968639,21968640,21968641?tags=cartonnette,autre_refus,plastique,papier,Teint_Dans_La_Masse,mal_croppe,metal,flou,Carton_gris,Carton_brun,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1349470797] : ('0.04523367331598181',) no score found for photo 1349470797 We are sending mail with results at report@fotonower.com args[1349470737] : ('0.04523367331598181',) no score found for photo 1349470737 We are sending mail with results at report@fotonower.com args[1349470732] : ('0.04523367331598181',) no score found for photo 1349470732 We are sending mail with results at report@fotonower.com args[1349470728] : ('0.04523367331598181',) no score found for photo 1349470728 We are sending mail with results at report@fotonower.com args[1349470726] : ('0.04523367331598181',) no score found for photo 1349470726 We are sending mail with results at report@fotonower.com args[1349470724] : ('0.04523367331598181',) no score found for photo 1349470724 We are sending mail with results at report@fotonower.com args[1349470721] : ('0.04523367331598181',) no score found for photo 1349470721 We are sending mail with results at report@fotonower.com refus_total : 0.04523367331598181 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=21968589 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_P21968589_02-04-2025_07_46_32.pdf results_Auto_P21968589_02-04-2025_07_46_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.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','21968589','results_Auto_P21968589_02-04-2025_07_46_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf','pdf','','0.31','0.04523367331598181') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21968589]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] map_info['map_portfolio_photo'] : {21968589: [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721, 1349470579, 1349470575, 1349470570, 1349470566, 1349470510, 1349470504, 1349470501, 1349470497, 1349470492, 1349470428, 1349470421, 1349470411, 1349470403, 1349470386, 1349470376, 1349470322, 1349470285, 1349470267, 1349470226, 1349470215, 1349470212, 1349470209, 1349470206, 1349470204, 1349470163, 1349470160, 1349470136, 1349470110, 1349470032, 1349470028, 1349470014, 1349470006, 1349469994, 1349469792, 1349469766, 1349469730, 1349469673, 1349469664, 1349469659, 1349469654, 1349469650, 1349469639, 1349469461, 1349469446, 1349469419, 1349469382, 1349469376, 1349469319, 1349469314, 1349469312, 1349469310, 1349469267, 1349469261, 1349469258, 1349469254, 1349469251, 1349469241, 1349469160, 1349469155, 1349469150, 1349469146, 1349469137, 1349468986, 1349468956, 1349468928, 1349468903, 1349468878]} final : False mtd_id 4302 list_pids : [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] 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, '2715767') ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767') 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', '21968589', '1349470797', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767')] time used for this insertion : 0.013145923614501953 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.347921371459961 time spend to save output : 0.013425588607788086 total time spend for step 4 : 7.361346960067749 step5:split_time_score Wed Apr 2 07:46:39 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 : ['21968589'] 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 : [('21968589',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21968589) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349470797: {'path': 'temp/1743572791_642056_1349470797_98f1802c6d82e66f580af96d8e2e7cc8.jpg', 'extension': 'jpg'}, 1349470732: {'path': 'temp/1743572791_642056_1349470732_6e1689d150a034a64ee8209077d8c160.jpg', 'extension': 'jpg'}, 1349470737: {'path': 'temp/1743572791_642056_1349470737_012205b3eca5dcaf419a72af6fcfb2ad.jpg', 'extension': 'jpg'}, 1349470726: {'path': 'temp/1743572791_642056_1349470726_8e9b10ee49104f25537f4969fa5f528f.jpg', 'extension': 'jpg'}, 1349470728: {'path': 'temp/1743572791_642056_1349470728_14e0061b80f0dcbcc201bff6611c8243.jpg', 'extension': 'jpg'}, 1349470721: {'path': 'temp/1743572791_642056_1349470721_f819fce3461767c323748d9ce528a9a2.jpg', 'extension': 'jpg'}, 1349470724: {'path': 'temp/1743572791_642056_1349470724_67cd6f928039885443d0d586068b4380.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 = 21968589; (('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 = 21968589 group by h (('07', 74),) 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=21968589 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 (21968589) 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 (21968589) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21968589 Nombre de photos uploadées : 74 / 23040 (0%) 02042025 21968589 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 02042025 21968589 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1349468986, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b3f4e35230c75597cee897be1d437789.jpg', 'username': None, 'uploaded_at': 1743571867, 'text': 'image_02042025_07_30_04_10152.jpg'}, {'photo_id': 1349468956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1182dcf2b7149cc51a0f3591803aae93.jpg', 'username': None, 'uploaded_at': 1743571867, 'text': 'image_02042025_07_30_13_9128.jpg'}, {'photo_id': 1349468928, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4a500295907bdb55d34fe3bef899dc8f.jpg', 'username': None, 'uploaded_at': 1743571867, 'text': 'image_02042025_07_30_24_10135.jpg'}, {'photo_id': 1349468903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ea5538f2909701fc7b2ade7ae18d13ef.jpg', 'username': None, 'uploaded_at': 1743571867, 'text': 'image_02042025_07_30_34_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029900074005126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21968589, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02331852912902832 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717797, 'mtr_portfolio_id': 21967292, 'dashboard_result_id': 9804926, '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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717797, 'mtr_portfolio_id': 21967515, 'dashboard_result_id': 9804927, '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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717797, 'mtr_portfolio_id': 21968589, 'dashboard_result_id': 9804928, '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_P21968589_02-04-2025_07_45_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, '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 = 21967292 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': 2715671, 'mtr_portfolio_id': 21967292, 'created_at': datetime.datetime(2025, 4, 2, 7, 22, 58), 'result': '0.04335168860141576', 'result_long': None, 'result_double': None}] Qualite : 0.04335168860141576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967292 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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}" where mtr_portfolio_id = 21967292 and dashboard_run_id = 1717797 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`=21967292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804926, 0.04335168860141576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, '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 = 21967515 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': 2715698, 'mtr_portfolio_id': 21967515, 'created_at': datetime.datetime(2025, 4, 2, 7, 32, 59), 'result': '0.034342358176222956', 'result_long': None, 'result_double': None}] Qualite : 0.034342358176222956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967515 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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}" where mtr_portfolio_id = 21967515 and dashboard_run_id = 1717797 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`=21967515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804927, 0.034342358176222956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, '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 = 21968589 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': 2715767, 'mtr_portfolio_id': 21968589, 'created_at': datetime.datetime(2025, 4, 2, 7, 46, 31), 'result': '0.04523367331598181', 'result_long': None, 'result_double': None}] Qualite : 0.04523367331598181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21968589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21968589 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_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}" where mtr_portfolio_id = 21968589 and dashboard_run_id = 1717797 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`=21968589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804928, 0.04523367331598181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, '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 (21967292,21967515,21968589) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,), (1349466860,), (1349466902,), (1349466919,), (1349466936,), (1349466941,), (1349466955,), (1349467043,), (1349467053,), (1349467056,), (1349467137,), (1349467140,), (1349467172,), (1349467179,), (1349467185,), (1349467203,), (1349467208,), (1349467212,), (1349467216,), (1349467220,), (1349467226,), (1349467242,), (1349467247,), (1349467254,), (1349467259,), (1349467277,), (1349467283,), (1349467284,), (1349467286,), (1349467288,), (1349467291,), (1349467324,), (1349467340,), (1349467342,), (1349467381,), (1349467410,), (1349467103,), (1349467104,), (1349467110,), (1349467111,), (1349467119,), (1349467120,), (1349467124,), (1349467125,), (1349467130,), (1349467131,), (1349467155,), (1349467156,), (1349467157,), (1349467158,), (1349467159,), (1349467160,), (1349467164,), (1349467165,), (1349467169,), (1349467236,), (1349467238,), (1349467305,), (1349467309,), (1349467314,), (1349467354,), (1349467374,), (1349467457,), (1349467460,), (1349467463,), (1349467467,), (1349467538,), (1349467542,), (1349467545,), (1349467569,), (1349467618,), (1349467794,), (1349467797,), (1349467801,), (1349467808,), (1349467853,), (1349467858,), (1349467862,), (1349467867,), (1349467936,), (1349467948,), (1349467951,), (1349467954,), (1349467967,), (1349467987,), (1349468328,), (1349468356,), (1349468391,), (1349468438,), (1349468454,), (1349468456,), (1349468516,), (1349468520,), (1349468527,), (1349468530,), (1349468714,), (1349468718,), (1349468722,), (1349468726,), (1349468729,), (1349468732,), (1349468791,), (1349468795,), (1349468804,), (1349468810,), (1349469000,), (1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21968589]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] map_info['map_portfolio_photo'] : {21968589: [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721, 1349470579, 1349470575, 1349470570, 1349470566, 1349470510, 1349470504, 1349470501, 1349470497, 1349470492, 1349470428, 1349470421, 1349470411, 1349470403, 1349470386, 1349470376, 1349470322, 1349470285, 1349470267, 1349470226, 1349470215, 1349470212, 1349470209, 1349470206, 1349470204, 1349470163, 1349470160, 1349470136, 1349470110, 1349470032, 1349470028, 1349470014, 1349470006, 1349469994, 1349469792, 1349469766, 1349469730, 1349469673, 1349469664, 1349469659, 1349469654, 1349469650, 1349469639, 1349469461, 1349469446, 1349469419, 1349469382, 1349469376, 1349469319, 1349469314, 1349469312, 1349469310, 1349469267, 1349469261, 1349469258, 1349469254, 1349469251, 1349469241, 1349469160, 1349469155, 1349469150, 1349469146, 1349469137, 1349468986, 1349468956, 1349468928, 1349468903, 1349468878]} final : True mtd_id 4302 list_pids : [1349470797, 1349470737, 1349470732, 1349470728, 1349470726, 1349470724, 1349470721] Looping around the photos to save general results len do output : 1 /21968589Didn'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, '2715767') ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767') ('4302', None, None, None, None, None, None, None, '2715767') ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21968589', 'None', None, None, None, None, '2715767'), ('4302', '21968589', '1349470797', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470737', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470732', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470728', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470726', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470724', None, None, None, None, None, '2715767'), ('4302', '21968589', '1349470721', None, None, None, None, None, '2715767')] time used for this insertion : 0.013311147689819336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3046236038208008 time spend to save output : 0.013536214828491211 total time spend for step 5 : 0.318159818649292 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 (2715767) 2.66user 2.01system 0:14.26elapsed 32%CPU (0avgtext+0avgdata 159356maxresident)k 82728inputs+15776outputs (361major+73774minor)pagefaults 0swaps