SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070963 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070963) result : ((1350046744,), (1350047443,), (1350047763,), (1350047918,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070964 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070964) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070965 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070965) result : ((1350047429,), (1350047430,), (1350047513,), (1350047700,), (1350047701,), (1350047905,), (1350047906,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070966 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070966) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070967 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070967) result : ((1350046728,), (1350047294,), (1350047432,), (1350047433,), (1350047434,), (1350047497,), (1350047498,), (1350047514,), (1350047717,), (1350047718,), (1350047719,), (1350047920,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070968 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070968) result : ((1350046712,), (1350047403,), (1350047404,), (1350047422,), (1350047425,), (1350047426,), (1350047427,), (1350047482,), (1350047487,), (1350047488,), (1350047690,), (1350047691,), (1350047692,), (1350047693,), (1350047907,), (1350047908,), (1350047910,), (1350047912,), (1350047913,), (1350047914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070969 , 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=22070932 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 (22070969) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070970 , 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=22070932 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070970) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070971 , 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=22070932 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 (22070971) result : ((1350046734,), (1350047438,), (1350047439,), (1350047440,), (1350047504,), (1350047507,), (1350047733,), (1350047734,), (1350047735,), (1350047915,), (1350047916,), (1350047923,), (1350047928,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070972 , 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=22070932 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 (22070972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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 22070973 , 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=22070932 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 (22070973) result : ((1350046713,), (1350046715,), (1350047406,), (1350047407,), (1350047431,), (1350047708,), (1350047909,), (1350047919,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22070932) result : ((1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) 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`=22070932 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','Carton_gris','cartonnette','metal','Carton_brun','Teint_Dans_La_Masse','kraft','flou','environnement','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`=22070932 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','Carton_gris','cartonnette','metal','Carton_brun','Teint_Dans_La_Masse','kraft','flou','environnement','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22070932, 'sub_port_id': 22070991, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558500, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'plastique': {'main_port_id': 22070932, 'sub_port_id': 22070992, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558501, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'mal_croppe': {'main_port_id': 22070932, 'sub_port_id': 22070993, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558502, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'autre_refus': {'main_port_id': 22070932, 'sub_port_id': 22070994, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558503, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'metal': {'main_port_id': 22070932, 'sub_port_id': 22070995, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558504, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'cartonnette': {'main_port_id': 22070932, 'sub_port_id': 22070996, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558505, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22070932, 'sub_port_id': 22070997, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558506, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'environnement': {'main_port_id': 22070932, 'sub_port_id': 22070998, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558507, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'papier': {'main_port_id': 22070932, 'sub_port_id': 22070999, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558508, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'Carton_brun': {'main_port_id': 22070932, 'sub_port_id': 22071000, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558509, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'kraft': {'main_port_id': 22070932, 'sub_port_id': 22071001, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558510, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}, 'Carton_gris': {'main_port_id': 22070932, 'sub_port_id': 22071002, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14558511, 'last_updated_at': datetime.datetime(2025, 4, 4, 11, 39, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 11, 39, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 11, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22070999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22071000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22071001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22071002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22070973 lien utilise dans velours : https://www.fotonower.com/velours/22070991,22070992,22070993,22070994,22070995,22070996,22070997,22070998,22070999,22071000,22071001,22071002?tags=flou,plastique,mal_croppe,autre_refus,metal,cartonnette,Teint_Dans_La_Masse,environnement,papier,Carton_brun,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070932]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350047755, 1350047727] map_info['map_portfolio_photo'] : {22070932: [1350047755, 1350047727, 1350047568, 1350047561, 1350047551, 1350047534, 1350047414, 1350047410, 1350047402, 1350047341, 1350047339, 1350047335, 1350047308, 1350047101, 1350047088, 1350046788, 1350046780, 1350046771, 1350046737, 1350046507, 1350046502, 1350046494, 1350046488, 1350046417, 1350046402, 1350046369, 1350046314, 1350046271, 1350046249, 1350046126, 1350046112, 1350046104, 1350045991]} final : False mtd_id 4302 list_pids : [1350047755, 1350047727] Looping around the photos to save general results len do output : 1 /22070932. 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, '2725853') ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853') ('4302', None, None, None, None, None, None, None, '2725853') ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '22070932', "{'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973}", None, None, None, None, '2725853'), ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853'), ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853')] time used for this insertion : 0.01475071907043457 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5114741325378418 time spend to save output : 0.015051841735839844 total time spend for step 1 : 1.5265259742736816 step2:final Fri Apr 4 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070932) 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 22070932 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350046126,1350046112,1350046104,1350045991,1350046417,1350046402,1350046369,1350046314,1350046271,1350046249,1350046507,1350046502,1350046494,1350046488,1350046788,1350046780,1350046771,1350046737,1350047101,1350047088,1350047341,1350047339,1350047335,1350047308,1350047414,1350047410,1350047402,1350047568,1350047561,1350047551,1350047534,1350047755,1350047727); 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([22070932]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',)} new output for save of step final : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',)} [1350047755, 1350047727] map_info['map_portfolio_photo'] : {22070932: [1350047755, 1350047727, 1350047568, 1350047561, 1350047551, 1350047534, 1350047414, 1350047410, 1350047402, 1350047341, 1350047339, 1350047335, 1350047308, 1350047101, 1350047088, 1350046788, 1350046780, 1350046771, 1350046737, 1350046507, 1350046502, 1350046494, 1350046488, 1350046417, 1350046402, 1350046369, 1350046314, 1350046271, 1350046249, 1350046126, 1350046112, 1350046104, 1350045991]} final : False mtd_id 4302 list_pids : [1350047755, 1350047727] Looping around the photos to save general results len do output : 2 /1350047755.Didn't retrieve data . /1350047727.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, '2725853') ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853') ('4302', None, None, None, None, None, None, None, '2725853') ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22070932', '1350047755', '0.08252180453839837', None, None, None, None, '2725853'), ('4302', '22070932', '1350047727', '0.08252180453839837', None, None, None, None, '2725853')] time used for this insertion : 0.014852046966552734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06868410110473633 time spend to save output : 0.015103816986083984 total time spend for step 2 : 0.08378791809082031 step3:velours_tree Fri Apr 4 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22070932: [{'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973}]} input_args_next_step : {22070932: ()} output_args : {22070932: [{'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973}]} args : 22070932 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 : ({'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070932) 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([22070932]) 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.31870055198669434 time spend to save output : 4.4345855712890625e-05 total time spend for step 3 : 0.3187448978424072 step4:send_mail_cod Fri Apr 4 11:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',)} input_args_next_step : {1350047755: ()} output_args : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',)} args : 1350047755 depend.output_id : 0 input_args_next_step : {1350047755: ('0.08252180453839837',), 1350047727: ()} output_args : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',)} args : 1350047727 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 : {22070932: [{'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973}]} input_args_next_step : {1350047755: ('0.08252180453839837',), 1350047727: ('0.08252180453839837',), 22070932: ()} output_args : {22070932: [{'flou': 22070962, 'plastique': 22070963, 'mal_croppe': 22070964, 'autre_refus': 22070965, 'metal': 22070966, 'cartonnette': 22070967, 'Teint_Dans_La_Masse': 22070968, 'environnement': 22070969, 'papier': 22070970, 'Carton_brun': 22070971, 'kraft': 22070972, 'Carton_gris': 22070973}]} args : 22070932 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 :3, first value : ('0.08252180453839837',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070932) 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 (1350047755,1350047727) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350047727 begin to download photo : 1350047755 download finish for photo 1350047727 download finish for photo 1350047755 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220709621743759660/ length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P22070932_04-04-2025_11_41_00.pdf 22070962 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=22070962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220709621743759660 22070963 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=22070963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350046744: '1743759208_2033534_1350046112_7d289b4cc154b78325fbf96736a896dd_rle_crop_3747788939_0.png', 1350047443: '1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793074_0.png', 1350047763: '1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793074_0.png', 1350047918: '1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797341_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1974f8bead6e3ff0a61a6c72d8bbbbd2_5634325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/724f1aa456a2b8579c9f2c029be28ab7_66034840.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/724f1aa456a2b8579c9f2c029be28ab7_43282208.png change filename to text .imagette220709631743759660/ imagette220709631743759660/1743759208_2033534_1350046112_7d289b4cc154b78325fbf96736a896dd_rle_crop_3747788939_0.png.png imagette220709631743759660/1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793074_0.png.png imagette220709631743759660/1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793074_0.png.png imagette220709631743759660/1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797341_0.png.png imagette220709641743759660/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8d12c956573f493efe2fd86bffa9aa14_54173457.png imagette220709631743759660 22070964 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=22070964 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220709641743759660 22070965 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=22070965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350047429: '1743759374_3381117_1350046314_25df283985019fbf30c3bb2eb3ca06e2_rle_crop_3747793116_0.png', 1350047430: '1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793280_0.png', 1350047513: '1743759453_3382266_1350047101_a76c3be956c77314b42a1f4c3a145e5e_rle_crop_3747794415_0.png', 1350047700: '1743759472_3382530_1350046314_25df283985019fbf30c3bb2eb3ca06e2_rle_crop_3747793116_0.png', 1350047701: '1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793280_0.png', 1350047905: '1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797340_0.png', 1350047906: '1743759552_3383863_1350047402_a96fe7e4621b6f8fa199ad435e257912_rle_crop_3747798622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/75dcb870b64d07cc37f5f84b29155bc8_35267241.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6f26d1d1d4a2addc7feecc88985a0369_28135558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ed7bcf9dbc322f826c7f3aedd6465c68_41180368.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/75dcb870b64d07cc37f5f84b29155bc8_835915.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6f26d1d1d4a2addc7feecc88985a0369_99594949.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/974d6c57b6204476d91c394617b9af7d_67590882.png change filename to text .imagette220709651743759660/ imagette220709651743759660/1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793280_0.png.png imagette220709651743759660/1743759453_3382266_1350047101_a76c3be956c77314b42a1f4c3a145e5e_rle_crop_3747794415_0.png.png imagette220709651743759660/1743759472_3382530_1350046314_25df283985019fbf30c3bb2eb3ca06e2_rle_crop_3747793116_0.png.png imagette220709651743759660/1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797340_0.png.png imagette220709651743759660/1743759552_3383863_1350047402_a96fe7e4621b6f8fa199ad435e257912_rle_crop_3747798622_0.png.png imagette220709651743759660/1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793280_0.png.png imagette220709651743759660/1743759374_3381117_1350046314_25df283985019fbf30c3bb2eb3ca06e2_rle_crop_3747793116_0.png.png imagette220709661743759660/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e64d8c776a9d672cb1c1aeda7bd504ce_10182547.png imagette220709651743759660 22070966 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=22070966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220709661743759660 22070967 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=22070967 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350046728: '1743759208_2033534_1350046104_39e96b87570a8c689f94ffcacff8de27_rle_crop_3747789151_0.png', 1350047294: '1743759325_2037039_1350046737_8c545ed79a86371e2e33809d81e16b37_rle_crop_3747791615_0.png', 1350047432: '1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793081_0.png', 1350047433: '1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793088_0.png', 1350047434: '1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793294_0.png', 1350047497: '1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794357_0.png', 1350047498: '1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794358_0.png', 1350047514: '1743759453_3382266_1350047101_a76c3be956c77314b42a1f4c3a145e5e_rle_crop_3747794419_0.png', 1350047717: '1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793081_0.png', 1350047718: '1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793088_0.png', 1350047719: '1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793294_0.png', 1350047920: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5145f2eec1f43dc0c7eb694e843491aa_90934466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/75c4b4fe2db321afb5190885c5b0c3b7_23257480.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/85a5098b339ebab558cc1d8acdcbf56b_83048907.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a70d852b8282d99f416c4354841fc8f3_30464216.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/749e5a9150b31fb074eb78aa926faa4e_32209905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9f990aa7c33effe4b885dfbe854a80f3_24267404.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c0e613d0b6f3abf3ab1f29d7edb9ae29_17552230.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/02d7891db413778f7b588013b3c610d9_59671545.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/85a5098b339ebab558cc1d8acdcbf56b_40615528.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a70d852b8282d99f416c4354841fc8f3_87619116.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/749e5a9150b31fb074eb78aa926faa4e_29751389.png change filename to text .imagette220709671743759660/ imagette220709671743759660/1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793088_0.png.png imagette220709671743759660/1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793294_0.png.png imagette220709671743759660/1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794357_0.png.png imagette220709671743759660/1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793081_0.png.png imagette220709671743759660/1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793088_0.png.png imagette220709671743759660/1743759453_3382266_1350047101_a76c3be956c77314b42a1f4c3a145e5e_rle_crop_3747794419_0.png.png imagette220709671743759660/1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793081_0.png.png imagette220709671743759660/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796819_0.png.png imagette220709671743759660/1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794358_0.png.png imagette220709671743759660/1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793294_0.png.png imagette220709671743759660/1743759325_2037039_1350046737_8c545ed79a86371e2e33809d81e16b37_rle_crop_3747791615_0.png.png imagette220709671743759660/1743759208_2033534_1350046104_39e96b87570a8c689f94ffcacff8de27_rle_crop_3747789151_0.png.png imagette220709721743759661/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0fc6ca61b24cfbe7722fcd639c2dc699_32852470.png imagette220709671743759660 22070972 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=22070972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220709721743759661 22070968 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=22070968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350047690: '1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793076_0.png', 1350047914: '1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798524_0.png', 1350047913: '1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798529_0.png', 1350047912: '1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798526_0.png', 1350047910: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796827_0.png', 1350047908: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796829_0.png', 1350047907: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796822_0.png', 1350047693: '1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793297_0.png', 1350047692: '1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793090_0.png', 1350047691: '1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793093_0.png', 1350046712: '1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788920_0.png', 1350047488: '1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794364_0.png', 1350047487: '1743759447_2040508_1350047335_946e7130b39983a96b165d129c21a214_rle_crop_3747794319_0.png', 1350047482: '1743759447_2040508_1350047335_946e7130b39983a96b165d129c21a214_rle_crop_3747794326_0.png', 1350047427: '1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793297_0.png', 1350047426: '1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793090_0.png', 1350047425: '1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793093_0.png', 1350047422: '1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793076_0.png', 1350047404: '1743759354_3380832_1350046488_0c652e3a1b47cbacf1846212dfe1b529_rle_crop_3747792175_0.png', 1350047403: '1743759354_3380832_1350046788_d83ec1561c2f318507b0ccc58d0457f0_rle_crop_3747792109_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ff0722b2399669d495ae5be38ff1794f_16312159.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1d53e99abeff31e70025545b7a4621b0_93806794.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cc2b04d4bb2104185463ffdf5e90480b_72062342.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cc21e58ce986e962ffbcb914b6d432de_2724511.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d982335b017e3574a03a9486fd7d0642_26425394.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/320070a93e7aacf224aee8c3fbdd56c3_75225653.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9d43136b4f2fb72f26fadf8df5fdcb4d_23529756.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/059cd4b50d3452dc7f69e2ca293d36b2_7562352.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/88b583baf2456bd16aa63f941c403640_21138522.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c445694706e6a2c9c9fbd8bfd6e6a34c_59644748.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1c491a66158ce04daa615f55c8422eba_83031223.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c95dbbbe3f9f1f9cefa5ab53c551b135_57246431.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3cc7778b5996dd2687f178b2424ee019_74489941.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/de29cc6b24c7480c8b27104d7faf324e_87279035.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/059cd4b50d3452dc7f69e2ca293d36b2_49574383.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/88b583baf2456bd16aa63f941c403640_27165011.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c445694706e6a2c9c9fbd8bfd6e6a34c_53216561.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ff0722b2399669d495ae5be38ff1794f_19219864.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/722787998db4508d2996fd2ec21f3dcb_4257765.png change filename to text .imagette220709681743759661/ imagette220709681743759661/1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798524_0.png.png imagette220709681743759661/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796822_0.png.png imagette220709681743759661/1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793076_0.png.png imagette220709681743759661/1743759472_3382530_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793297_0.png.png imagette220709681743759661/1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793093_0.png.png imagette220709681743759661/1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793093_0.png.png imagette220709681743759661/1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798529_0.png.png imagette220709681743759661/1743759447_2040508_1350047335_946e7130b39983a96b165d129c21a214_rle_crop_3747794319_0.png.png imagette220709681743759661/1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798526_0.png.png imagette220709681743759661/1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793090_0.png.png imagette220709681743759661/1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788920_0.png.png imagette220709681743759661/1743759354_3380832_1350046788_d83ec1561c2f318507b0ccc58d0457f0_rle_crop_3747792109_0.png.png imagette220709681743759661/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796829_0.png.png imagette220709681743759661/1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794364_0.png.png imagette220709681743759661/1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793090_0.png.png imagette220709681743759661/1743759374_3381117_1350046249_0f0c999b42412854fbe5caaf14ccaf2c_rle_crop_3747793297_0.png.png imagette220709681743759661/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796827_0.png.png imagette220709681743759661/1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793076_0.png.png imagette220709681743759661/1743759447_2040508_1350047335_946e7130b39983a96b165d129c21a214_rle_crop_3747794326_0.png.png imagette220709681743759661/1743759354_3380832_1350046488_0c652e3a1b47cbacf1846212dfe1b529_rle_crop_3747792175_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/46e0c26f96609a551429ffbcb9391e2c_27614361.png imagette220709681743759661 22070971 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=22070971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350046734: '1743759208_2033534_1350046112_7d289b4cc154b78325fbf96736a896dd_rle_crop_3747788930_0.png', 1350047438: '1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793073_0.png', 1350047439: '1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793091_0.png', 1350047440: '1743759374_3381117_1350046271_5fd37fe6c82b8633c11003017b8be9e2_rle_crop_3747793203_0.png', 1350047504: '1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794361_0.png', 1350047507: '1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794363_0.png', 1350047733: '1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793073_0.png', 1350047734: '1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793091_0.png', 1350047735: '1743759472_3382530_1350046271_5fd37fe6c82b8633c11003017b8be9e2_rle_crop_3747793203_0.png', 1350047915: '1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797346_0.png', 1350047916: '1743759552_3383863_1350047410_53e54be8d9470a19a6b983f2c7135cd6_rle_crop_3747798541_0.png', 1350047923: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796823_0.png', 1350047928: '1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796824_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f04e8bdb74050bf624596693f6587d2c_45310510.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/67be7af56efcde5e9704934db21d93cc_3054817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/42a3d140cd0bf5661513b7829a0aac0a_14488320.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c61c31f176d12bb2a3825ffb6ed08247_60506773.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/41064623dd3ad1f918d382ed7b0a7e78_72337535.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cf7336f6bd23f2ac01f9354bf0a0eb37_10292908.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/67be7af56efcde5e9704934db21d93cc_83092201.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/42a3d140cd0bf5661513b7829a0aac0a_92724987.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c61c31f176d12bb2a3825ffb6ed08247_74239420.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/827376df81ebdb8ffc3ab0155bfc9f19_2602340.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/43cd8ac2ed05297934639dfc272e3b87_26906069.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e86ae1d2eb163e421744f4be4a66ddac_64122700.png change filename to text .imagette220709711743759662/ imagette220709711743759662/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796824_0.png.png imagette220709711743759662/1743759566_2043331_1350047561_9125ff1c09e406dac167a594595f233a_rle_crop_3747796823_0.png.png imagette220709711743759662/1743759374_3381117_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793091_0.png.png imagette220709711743759662/1743759374_3381117_1350046271_5fd37fe6c82b8633c11003017b8be9e2_rle_crop_3747793203_0.png.png imagette220709711743759662/1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794363_0.png.png imagette220709711743759662/1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793073_0.png.png imagette220709711743759662/1743759552_3383863_1350047410_53e54be8d9470a19a6b983f2c7135cd6_rle_crop_3747798541_0.png.png imagette220709711743759662/1743759447_2040508_1350047308_33d8231073405442cf3eceec03d41bf9_rle_crop_3747794361_0.png.png imagette220709711743759662/1743759208_2033534_1350046112_7d289b4cc154b78325fbf96736a896dd_rle_crop_3747788930_0.png.png imagette220709711743759662/1743759552_3383863_1350047568_ab19e6d3e87caa032f34b7e8c42a0eb0_rle_crop_3747797346_0.png.png imagette220709711743759662/1743759472_3382530_1350046271_5fd37fe6c82b8633c11003017b8be9e2_rle_crop_3747793203_0.png.png imagette220709711743759662/1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793073_0.png.png imagette220709711743759662/1743759472_3382530_1350046369_bf46ce23491119baf93cbc051e579122_rle_crop_3747793091_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/67787d241756e6dd9b45d11e2a71def5_47983721.png imagette220709711743759662 22070973 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=22070973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350046713: '1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788917_0.png', 1350046715: '1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788911_0.png', 1350047406: '1743759354_3380832_1350046788_d83ec1561c2f318507b0ccc58d0457f0_rle_crop_3747792112_0.png', 1350047407: '1743759354_3380832_1350046488_0c652e3a1b47cbacf1846212dfe1b529_rle_crop_3747792176_0.png', 1350047431: '1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793075_0.png', 1350047708: '1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793075_0.png', 1350047909: '1743759552_3383863_1350047402_a96fe7e4621b6f8fa199ad435e257912_rle_crop_3747798613_0.png', 1350047919: '1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798532_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/8027dbdffede5446a5225de006a9fb07_11498081.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/2d8057a12507536147147d5a6f111a1a_2125391.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7966070ecac593b0a67c55ce148edcf5_64775654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3b4cd839e8f632fb9a5486d6c4a9f8d7_76848518.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/06f66e0ba41783c2d09d16b2a319b3f5_63869493.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/06f66e0ba41783c2d09d16b2a319b3f5_42392232.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/703188627bf9f74922686d855d14fd94_55128242.png change filename to text .imagette220709731743759663/ imagette220709731743759663/1743759374_3381117_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793075_0.png.png imagette220709731743759663/1743759354_3380832_1350046788_d83ec1561c2f318507b0ccc58d0457f0_rle_crop_3747792112_0.png.png imagette220709731743759663/1743759566_2043331_1350047551_dbcc5734b5390ed31ef2de3c8ea3e953_rle_crop_3747798532_0.png.png imagette220709731743759663/1743759552_3383863_1350047402_a96fe7e4621b6f8fa199ad435e257912_rle_crop_3747798613_0.png.png imagette220709731743759663/1743759472_3382530_1350046402_4cfe59d68fd04aa43d48c95ab55c3e28_rle_crop_3747793075_0.png.png imagette220709731743759663/1743759354_3380832_1350046488_0c652e3a1b47cbacf1846212dfe1b529_rle_crop_3747792176_0.png.png imagette220709731743759663/1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788911_0.png.png imagette220709731743759663/1743759208_2033534_1350046126_b3ac0e6b2fb69c2e320ac583f54fd751_rle_crop_3747788917_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/54e02524ce6118748f40540fad15beea_67179023.png imagette220709731743759663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22070932 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22070991,22070992,22070993,22070994,22070995,22070996,22070997,22070998,22070999,22071000,22071001,22071002?tags=flou,plastique,mal_croppe,autre_refus,metal,cartonnette,Teint_Dans_La_Masse,environnement,papier,Carton_brun,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1350047755] : ('0.08252180453839837',) no score found for photo 1350047755 We are sending mail with results at report@fotonower.com args[1350047727] : ('0.08252180453839837',) no score found for photo 1350047727 We are sending mail with results at report@fotonower.com refus_total : 0.08252180453839837 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=22070932 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_P22070932_04-04-2025_11_41_00.pdf results_Auto_P22070932_04-04-2025_11_41_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070932_04-04-2025_11_41_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22070932','results_Auto_P22070932_04-04-2025_11_41_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070932_04-04-2025_11_41_00.pdf','pdf','','0.23','0.08252180453839837') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070932]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350047755, 1350047727] map_info['map_portfolio_photo'] : {22070932: [1350047755, 1350047727, 1350047568, 1350047561, 1350047551, 1350047534, 1350047414, 1350047410, 1350047402, 1350047341, 1350047339, 1350047335, 1350047308, 1350047101, 1350047088, 1350046788, 1350046780, 1350046771, 1350046737, 1350046507, 1350046502, 1350046494, 1350046488, 1350046417, 1350046402, 1350046369, 1350046314, 1350046271, 1350046249, 1350046126, 1350046112, 1350046104, 1350045991]} final : False mtd_id 4302 list_pids : [1350047755, 1350047727] 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, '2725853') ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853') ('4302', None, None, None, None, None, None, None, '2725853') ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '22070932', '1350047755', None, None, None, None, None, '2725853'), ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853')] time used for this insertion : 0.014443159103393555 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.040933847427368 time spend to save output : 0.014599323272705078 total time spend for step 4 : 5.055533170700073 step5:split_time_score Fri Apr 4 11:41:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22070932'] 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 : [('22070932',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22070932) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350047727: {'path': 'temp/1743759659_73957_1350047727_68e703d41287680e27b6fb1d1c4b0358.jpg', 'extension': 'jpg'}, 1350047755: {'path': 'temp/1743759659_73957_1350047755_e590b46b225156670d6b20cf57e6b58c.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 = 22070932; (('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 = 22070932 group by h (('11', 33),) 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=22070932 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 (22070932) 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 (22070932) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22070932 Nombre de photos uploadées : 33 / 23040 (0%) 04042025 22070932 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 04042025 22070932 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1350046126, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b3ac0e6b2fb69c2e320ac583f54fd751.jpg', 'username': None, 'uploaded_at': 1743759078, 'text': 'image_04042025_11_30_03_10141.jpg'}, {'photo_id': 1350046112, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7d289b4cc154b78325fbf96736a896dd.jpg', 'username': None, 'uploaded_at': 1743759078, 'text': 'image_04042025_11_30_13_10137.jpg'}, {'photo_id': 1350046104, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/39e96b87570a8c689f94ffcacff8de27.jpg', 'username': None, 'uploaded_at': 1743759078, 'text': 'image_04042025_11_30_24_10133.jpg'}, {'photo_id': 1350045991, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/436f7729d8fee63515aeaf9fc848fe80.jpg', 'username': None, 'uploaded_at': 1743759063, 'text': 'image_04042025_11_30_44_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018227100372314453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22070932, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02799844741821289 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725002, 'mtr_portfolio_id': 22066308, 'dashboard_result_id': 9886393, '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_P22066308_04-04-2025_11_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066323, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725002, 'mtr_portfolio_id': 22067773, 'dashboard_result_id': 9886394, '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_P22067773_04-04-2025_11_19_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067945, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725002, 'mtr_portfolio_id': 22069574, 'dashboard_result_id': 9886395, '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_P22069574_04-04-2025_11_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22069721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069732, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725002, 'mtr_portfolio_id': 22070932, 'dashboard_result_id': 9886396, '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_P22070932_04-04-2025_11_39_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22070962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070973, '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 = 22066308 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': 2724395, 'mtr_portfolio_id': 22066308, 'created_at': datetime.datetime(2025, 4, 4, 11, 11), 'result': '0.03291777905993163', 'result_long': None, 'result_double': None}] Qualite : 0.03291777905993163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066308_04-04-2025_11_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066308 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_P22066308_04-04-2025_11_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066323, 'pht': 3726}}" where mtr_portfolio_id = 22066308 and dashboard_run_id = 1725002 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`=22066308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9886393, 0.03291777905993163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066308_04-04-2025_11_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066318, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066323, '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 = 22067773 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': 2724949, 'mtr_portfolio_id': 22067773, 'created_at': datetime.datetime(2025, 4, 4, 11, 19, 2), 'result': '0.05060867835657265', 'result_long': None, 'result_double': None}] Qualite : 0.05060867835657265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22067773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067773_04-04-2025_11_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22067773 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_P22067773_04-04-2025_11_19_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067945, 'pht': 3726}}" where mtr_portfolio_id = 22067773 and dashboard_run_id = 1725002 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`=22067773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9886394, 0.05060867835657265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067773_04-04-2025_11_19_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067945, '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 = 22069574 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': 2725741, 'mtr_portfolio_id': 22069574, 'created_at': datetime.datetime(2025, 4, 4, 11, 33, 6), 'result': '0.05253678349027027', 'result_long': None, 'result_double': None}] Qualite : 0.05253678349027027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069574_04-04-2025_11_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069574 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_P22069574_04-04-2025_11_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22069721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069732, 'pht': 3726}}" where mtr_portfolio_id = 22069574 and dashboard_run_id = 1725002 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`=22069574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9886395, 0.05253678349027027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069574_04-04-2025_11_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22069721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069732, '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 = 22070932 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': 2725853, 'mtr_portfolio_id': 22070932, 'created_at': datetime.datetime(2025, 4, 4, 11, 40, 59), 'result': '0.08252180453839837', 'result_long': None, 'result_double': None}] Qualite : 0.08252180453839837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22070932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070932_04-04-2025_11_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22070932 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_P22070932_04-04-2025_11_41_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22070962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070973, 'pht': 3726}}" where mtr_portfolio_id = 22070932 and dashboard_run_id = 1725002 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`=22070932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9886396, 0.08252180453839837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070932_04-04-2025_11_41_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22070962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070973, '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 (22066308,22067773,22069574,22070932) result : ((1350029019,), (1350029026,), (1350029033,), (1350029076,), (1350029078,), (1350029082,), (1350029094,), (1350029110,), (1350029120,), (1350029231,), (1350029232,), (1350029246,), (1350029248,), (1350029259,), (1350029312,), (1350029335,), (1350029347,), (1350029355,), (1350029364,), (1350029406,), (1350029496,), (1350029502,), (1350029506,), (1350029510,), (1350029538,), (1350029540,), (1350029545,), (1350029550,), (1350029557,), (1350029561,), (1350029639,), (1350029640,), (1350029644,), (1350029675,), (1350029693,), (1350029711,), (1350029785,), (1350029794,), (1350029826,), (1350029856,), (1350029886,), (1350029891,), (1350029940,), (1350029998,), (1350030016,), (1350030039,), (1350030094,), (1350030145,), (1350030202,), (1350030232,), (1350030243,), (1350030273,), (1350030289,), (1350030309,), (1350030343,), (1350030349,), (1350030380,), (1350030483,), (1350030523,), (1350030547,), (1350030599,), (1350030632,), (1350030657,), (1350030689,), (1350030697,), (1350030740,), (1350030762,), (1350030774,), (1350030776,), (1350030823,), (1350030828,), (1350030830,), (1350030834,), (1350031349,), (1350031405,), (1350031456,), (1350031499,), (1350031521,), (1350031533,), (1350031641,), (1350031660,), (1350031736,), (1350032096,), (1350033627,), (1350031823,), (1350031829,), (1350031843,), (1350031904,), (1350032027,), (1350032136,), (1350032187,), (1350032269,), (1350032282,), (1350032350,), (1350032424,), (1350032624,), (1350032673,), (1350032721,), (1350032765,), (1350032815,), (1350032857,), (1350033059,), (1350033111,), (1350033167,), (1350033193,), (1350033251,), (1350033336,), (1350033590,), (1350033768,), (1350033830,), (1350034057,), (1350034207,), (1350034311,), (1350034426,), (1350034554,), (1350034613,), (1350034653,), (1350034667,), (1350034824,), (1350034919,), (1350035002,), (1350035065,), (1350035122,), (1350035342,), (1350035376,), (1350035399,), (1350035485,), (1350035526,), (1350035556,), (1350035751,), (1350035824,), (1350035895,), (1350036011,), (1350036537,), (1350036650,), (1350036742,), (1350036782,), (1350036945,), (1350037033,), (1350037367,), (1350037448,), (1350037481,), (1350037534,), (1350037553,), (1350037723,), (1350037776,), (1350037817,), (1350037893,), (1350037942,), (1350038014,), (1350038180,), (1350038192,), (1350038336,), (1350038356,), (1350038440,), (1350038579,), (1350038841,), (1350038961,), (1350039048,), (1350039116,), (1350039226,), (1350039293,), (1350039541,), (1350039641,), (1350039793,), (1350039814,), (1350039924,), (1350040244,), (1350040293,), (1350040302,), (1350040354,), (1350040640,), (1350040440,), (1350040467,), (1350040505,), (1350040591,), (1350040760,), (1350040811,), (1350040871,), (1350040880,), (1350040931,), (1350041144,), (1350041219,), (1350041267,), (1350041423,), (1350041432,), (1350041450,), (1350041561,), (1350042031,), (1350042083,), (1350042149,), (1350042204,), (1350042266,), (1350042348,), (1350042498,), (1350042534,), (1350042627,), (1350042730,), (1350042731,), (1350042733,), (1350042736,), (1350042749,), (1350042835,), (1350042849,), (1350042874,), (1350043072,), (1350043109,), (1350043141,), (1350043180,), (1350043204,), (1350043326,), (1350043367,), (1350043373,), (1350043392,), (1350043420,), (1350043542,), (1350043554,), (1350043589,), (1350043615,), (1350043998,), (1350044067,), (1350044156,), (1350044182,), (1350044595,), (1350044710,), (1350044792,), (1350044849,), (1350044909,), (1350044954,), (1350045220,), (1350045304,), (1350045353,), (1350045380,), (1350045668,), (1350045703,), (1350045747,), (1350045814,), (1350045884,), (1350045911,), (1350046136,), (1350045991,), (1350046104,), (1350046112,), (1350046126,), (1350046249,), (1350046271,), (1350046314,), (1350046369,), (1350046402,), (1350046417,), (1350046488,), (1350046494,), (1350046502,), (1350046507,), (1350046737,), (1350046771,), (1350046780,), (1350046788,), (1350047088,), (1350047101,), (1350047308,), (1350047335,), (1350047339,), (1350047341,), (1350047402,), (1350047410,), (1350047414,), (1350047534,), (1350047551,), (1350047561,), (1350047568,), (1350047727,), (1350047755,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22070932]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350047755, 1350047727] map_info['map_portfolio_photo'] : {22070932: [1350047755, 1350047727, 1350047568, 1350047561, 1350047551, 1350047534, 1350047414, 1350047410, 1350047402, 1350047341, 1350047339, 1350047335, 1350047308, 1350047101, 1350047088, 1350046788, 1350046780, 1350046771, 1350046737, 1350046507, 1350046502, 1350046494, 1350046488, 1350046417, 1350046402, 1350046369, 1350046314, 1350046271, 1350046249, 1350046126, 1350046112, 1350046104, 1350045991]} final : True mtd_id 4302 list_pids : [1350047755, 1350047727] Looping around the photos to save general results len do output : 1 /22070932Didn'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, '2725853') ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853') ('4302', None, None, None, None, None, None, None, '2725853') ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '22070932', 'None', None, None, None, None, '2725853'), ('4302', '22070932', '1350047755', None, None, None, None, None, '2725853'), ('4302', '22070932', '1350047727', None, None, None, None, None, '2725853')] time used for this insertion : 0.011943817138671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36212897300720215 time spend to save output : 0.012134790420532227 total time spend for step 5 : 0.3742637634277344 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 (2725853) 2.24user 2.34system 0:10.46elapsed 43%CPU (0avgtext+0avgdata 161328maxresident)k 2152inputs+11064outputs (28major+76583minor)pagefaults 0swaps