SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994253) result : ((1349655042,), (1349656431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994254 , 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=21994250 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 (21994254) result : ((1349654960,), (1349654973,), (1349656381,), (1349656385,), (1349656389,), (1349657483,), (1349657486,), (1349658554,), (1349658557,), (1349658561,), (1349658565,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994255 , 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=21994250 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994255) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994256 , 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=21994250 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 (21994256) result : ((1349654897,), (1349654901,), (1349656284,), (1349656291,), (1349656296,), (1349656301,), (1349656306,), (1349656311,), (1349656316,), (1349656321,), (1349656326,), (1349657445,), (1349657788,), (1349657789,), (1349657790,), (1349658505,), (1349658508,), (1349658511,), (1349658514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994257 , 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=21994250 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 (21994257) result : ((1349657796,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994258 , 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=21994250 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 (21994258) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994259 , 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=21994250 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 (21994259) result : ((1349657874,), (1349657905,), (1349658336,), (1349658581,), (1349658585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994260 , 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=21994250 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 (21994260) result : ((1349656414,), (1349656417,), (1349656420,), (1349656424,), (1349657498,), (1349657849,), (1349657851,), (1349657852,), (1349657853,), (1349657855,), (1349658574,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994261 , 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=21994250 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 (21994261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994262 , 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=21994250 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 (21994262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994263 , 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=21994250 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 (21994263) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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 21994264 , 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=21994250 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 (21994264) result : ((1349654919,), (1349656348,), (1349657816,), (1349657817,), (1349657820,), (1349658330,), (1349658331,), (1349658536,), (1349658539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21994250) result : ((1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) 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`=21994250 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','flou','plastique','metal','autre_refus','papier','mal_croppe','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse')) 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`=21994250 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','flou','plastique','metal','autre_refus','papier','mal_croppe','cartonnette','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21994250, 'sub_port_id': 21994265, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491025, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'cartonnette': {'main_port_id': 21994250, 'sub_port_id': 21994266, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491026, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'flou': {'main_port_id': 21994250, 'sub_port_id': 21994267, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491027, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21994250, 'sub_port_id': 21994268, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491028, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'autre_refus': {'main_port_id': 21994250, 'sub_port_id': 21994269, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491029, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'environnement': {'main_port_id': 21994250, 'sub_port_id': 21994270, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491030, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'plastique': {'main_port_id': 21994250, 'sub_port_id': 21994271, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491031, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'Carton_brun': {'main_port_id': 21994250, 'sub_port_id': 21994272, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491032, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'papier': {'main_port_id': 21994250, 'sub_port_id': 21994273, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491033, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'mal_croppe': {'main_port_id': 21994250, 'sub_port_id': 21994274, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491034, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'kraft': {'main_port_id': 21994250, 'sub_port_id': 21994275, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491035, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}, 'Carton_gris': {'main_port_id': 21994250, 'sub_port_id': 21994276, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14491036, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994255 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994268,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994256 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994269,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21994276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21994264 lien utilise dans velours : https://www.fotonower.com/velours/21994265,21994266,21994267,21994268,21994269,21994270,21994271,21994272,21994273,21994274,21994275,21994276?tags=metal,cartonnette,flou,Teint_Dans_La_Masse,autre_refus,environnement,plastique,Carton_brun,papier,mal_croppe,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21994250]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] map_info['map_portfolio_photo'] : {21994250: [1349658265, 1349658238, 1349658202, 1349658172, 1349658127, 1349657910, 1349657846, 1349657768, 1349657725, 1349657180, 1349657131, 1349656998, 1349656882, 1349656816, 1349656780, 1349655902, 1349655711, 1349655512, 1349655219, 1349654424, 1349654339, 1349654246, 1349654175, 1349654079, 1349653992, 1349653480, 1349653368, 1349653332, 1349653208, 1349652751, 1349652673, 1349652630, 1349652561, 1349652478, 1349652407, 1349651957, 1349651908, 1349651866, 1349651817, 1349651758]} final : False mtd_id 4302 list_pids : [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] Looping around the photos to save general results len do output : 1 /21994250. 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, '2718135') ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135') 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', None, '21994250', "{'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264}", None, None, None, None, '2718135'), ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135')] time used for this insertion : 0.011508703231811523 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4804749488830566 time spend to save output : 0.011777162551879883 total time spend for step 1 : 1.4922521114349365 step2:final Wed Apr 2 23:24:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21994250) 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 21994250 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349651957,1349651908,1349651866,1349651817,1349651758,1349652751,1349652673,1349652630,1349652561,1349652478,1349652407,1349653480,1349653368,1349653332,1349653208,1349654424,1349654339,1349654246,1349654175,1349654079,1349653992,1349655902,1349655711,1349655512,1349655219,1349657180,1349657131,1349656998,1349656882,1349656816,1349656780,1349657910,1349657846,1349657768,1349657725,1349658265,1349658238,1349658202,1349658172,1349658127); 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([21994250]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} new output for save of step final : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] map_info['map_portfolio_photo'] : {21994250: [1349658265, 1349658238, 1349658202, 1349658172, 1349658127, 1349657910, 1349657846, 1349657768, 1349657725, 1349657180, 1349657131, 1349656998, 1349656882, 1349656816, 1349656780, 1349655902, 1349655711, 1349655512, 1349655219, 1349654424, 1349654339, 1349654246, 1349654175, 1349654079, 1349653992, 1349653480, 1349653368, 1349653332, 1349653208, 1349652751, 1349652673, 1349652630, 1349652561, 1349652478, 1349652407, 1349651957, 1349651908, 1349651866, 1349651817, 1349651758]} final : False mtd_id 4302 list_pids : [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] Looping around the photos to save general results len do output : 5 /1349658265.Didn't retrieve data . /1349658238.Didn't retrieve data . /1349658202.Didn't retrieve data . /1349658172.Didn't retrieve data . /1349658127.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, '2718135') ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21994250', '1349658265', '0.056449631743980315', None, None, None, None, '2718135'), ('4302', '21994250', '1349658238', '0.056449631743980315', None, None, None, None, '2718135'), ('4302', '21994250', '1349658202', '0.056449631743980315', None, None, None, None, '2718135'), ('4302', '21994250', '1349658172', '0.056449631743980315', None, None, None, None, '2718135'), ('4302', '21994250', '1349658127', '0.056449631743980315', None, None, None, None, '2718135')] time used for this insertion : 0.011926889419555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.18578505516052246 time spend to save output : 0.012275934219360352 total time spend for step 2 : 0.1980609893798828 step3:velours_tree Wed Apr 2 23:24:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21994250: [{'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264}]} input_args_next_step : {21994250: ()} output_args : {21994250: [{'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264}]} args : 21994250 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 : ({'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21994250) 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([21994250]) 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.41019749641418457 time spend to save output : 4.792213439941406e-05 total time spend for step 3 : 0.410245418548584 step4:send_mail_cod Wed Apr 2 23:24:32 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 : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} input_args_next_step : {1349658265: ()} output_args : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} args : 1349658265 depend.output_id : 0 input_args_next_step : {1349658265: ('0.056449631743980315',), 1349658238: ()} output_args : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} args : 1349658238 depend.output_id : 0 input_args_next_step : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ()} output_args : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} args : 1349658202 depend.output_id : 0 input_args_next_step : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ()} output_args : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} args : 1349658172 depend.output_id : 0 input_args_next_step : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ()} output_args : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',)} args : 1349658127 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 : {21994250: [{'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264}]} input_args_next_step : {1349658265: ('0.056449631743980315',), 1349658238: ('0.056449631743980315',), 1349658202: ('0.056449631743980315',), 1349658172: ('0.056449631743980315',), 1349658127: ('0.056449631743980315',), 21994250: ()} output_args : {21994250: [{'metal': 21994253, 'cartonnette': 21994254, 'flou': 21994255, 'Teint_Dans_La_Masse': 21994256, 'autre_refus': 21994257, 'environnement': 21994258, 'plastique': 21994259, 'Carton_brun': 21994260, 'papier': 21994261, 'mal_croppe': 21994262, 'kraft': 21994263, 'Carton_gris': 21994264}]} args : 21994250 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 :6, first value : ('0.056449631743980315',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21994250) 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 (1349658265,1349658238,1349658202,1349658172,1349658127) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349658127 begin to download photo : 1349658202 begin to download photo : 1349658265 download finish for photo 1349658265 download finish for photo 1349658202 begin to download photo : 1349658238 download finish for photo 1349658127 begin to download photo : 1349658172 download finish for photo 1349658238 download finish for photo 1349658172 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21994250_02-04-2025_23_24_32.pdf 21994253 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=21994253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349655042: '1743628764_1003306_1349652673_83f53950e094dd8574c73cec93e9ed8b_rle_crop_3745230326_0.png', 1349656431: '1743628767_3870544_1349652751_4c271f5b58b8894165892541d5409d82_rle_crop_3745234978_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8c45fd71caf3ed8f2d9d385c1a4dcb87_56896650.png change filename to text .imagette219942531743629072/ imagette219942531743629072/1743628767_3870544_1349652751_4c271f5b58b8894165892541d5409d82_rle_crop_3745234978_0.png.png imagette219942531743629072/1743628764_1003306_1349652673_83f53950e094dd8574c73cec93e9ed8b_rle_crop_3745230326_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/236eba788c7a5ffe14d3a79b64274370_84407874.png imagette219942531743629072 21994254 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=21994254 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349654960: '1743628764_1003306_1349652630_a1d410df69503b9148c04fe65c3108f1_rle_crop_3745230338_0.png', 1349654973: '1743628764_1003306_1349652561_84c62783bafc2efbc2038c61883b2e5d_rle_crop_3745231352_0.png', 1349656381: '1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235069_0.png', 1349656385: '1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235073_0.png', 1349656389: '1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235071_0.png', 1349657483: '1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235380_0.png', 1349657486: '1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235379_0.png', 1349658554: '1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237938_0.png', 1349658557: '1743629007_3877108_1349656816_5a96a6860cf92ee3a35b3e0e9625d4ab_rle_crop_3745237952_0.png', 1349658561: '1743629007_3877108_1349656780_880c22d3a8f199ed1ffa618f9a6ae31b_rle_crop_3745237963_0.png', 1349658565: '1743629007_3877108_1349656780_880c22d3a8f199ed1ffa618f9a6ae31b_rle_crop_3745237964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d3e7628a7440ea1ba7b954536ff8802a_31797019.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/64fccb6e44d76b94a9c3f2118f556ba8_71445502.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fdfc38918259da30b9a52a555702d39c_81002836.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8641af06c3a7b2a928d35a23c86a6e21_76051442.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c444ee2209a7480a569c0a483cad2db2_46636771.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fc669ce47e9ddc5b93b11fd9c27bdd76_53051995.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2b4dc377f6355811e6118e6c4c0f4129_35759131.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7d9f6a799599053e624ec5028622ff22_84146301.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0bf4237b2643105595f56f8981c83fdd_30868959.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e0ea0fb15a120dcc8a2d1bf599213f0d_1982301.png change filename to text .imagette219942541743629072/ imagette219942541743629072/1743628764_1003306_1349652630_a1d410df69503b9148c04fe65c3108f1_rle_crop_3745230338_0.png.png imagette219942541743629072/1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237938_0.png.png imagette219942541743629072/1743629007_3877108_1349656780_880c22d3a8f199ed1ffa618f9a6ae31b_rle_crop_3745237963_0.png.png imagette219942541743629072/1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235073_0.png.png imagette219942541743629072/1743629007_3877108_1349656816_5a96a6860cf92ee3a35b3e0e9625d4ab_rle_crop_3745237952_0.png.png imagette219942541743629072/1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235380_0.png.png imagette219942541743629072/1743629007_3877108_1349656780_880c22d3a8f199ed1ffa618f9a6ae31b_rle_crop_3745237964_0.png.png imagette219942541743629072/1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235069_0.png.png imagette219942541743629072/1743628764_1003306_1349652561_84c62783bafc2efbc2038c61883b2e5d_rle_crop_3745231352_0.png.png imagette219942541743629072/1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235379_0.png.png imagette219942541743629072/1743628767_3870544_1349651758_2f9ddcb7e3844e8c1f6264fdf8a24c4d_rle_crop_3745235071_0.png.png imagette219942551743629073/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a27da5ffdb3a4c74390e3f2b61073067_4045905.png imagette219942541743629072 21994255 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=21994255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219942551743629073 21994257 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=21994257 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349657796: '1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235782_0.png'} change filename to text .imagette219942571743629073/ imagette219942571743629073/1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235782_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cad539558fca97e4da71b58cbaca98f5_84307672.png imagette219942571743629073 21994259 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=21994259 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349657874: '1743628891_1543915_1349653992_b9b406cefe95163ebcc6b72a343c0847_rle_crop_3745235794_0.png', 1349657905: '1743628911_1544129_1349653208_ebf785a5fb6eb430e82cf4c7aee609b1_rle_crop_3745235847_0.png', 1349658336: '1743628990_1544881_1349657768_5b2d2c4fd112908a3444a1caa30142a0_rle_crop_3745237656_0.png', 1349658581: '1743629007_3877108_1349657910_a5e5d82c7937f214a47add77dbf20119_rle_crop_3745237881_0.png', 1349658585: '1743629007_3877108_1349656998_37800098269a8458f29c39bfa520bb56_rle_crop_3745237926_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c4b395e126073ce2dff7baec67fea520_34065621.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/40888f028e067898609c9aee9e4f2dcf_6275234.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5233ddeb37429591e39cea87df9b5b7f_19003878.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9b765436686493ec881e3f0a36928c44_52933572.png change filename to text .imagette219942591743629073/ imagette219942591743629073/1743629007_3877108_1349657910_a5e5d82c7937f214a47add77dbf20119_rle_crop_3745237881_0.png.png imagette219942591743629073/1743628990_1544881_1349657768_5b2d2c4fd112908a3444a1caa30142a0_rle_crop_3745237656_0.png.png imagette219942591743629073/1743628911_1544129_1349653208_ebf785a5fb6eb430e82cf4c7aee609b1_rle_crop_3745235847_0.png.png imagette219942591743629073/1743628891_1543915_1349653992_b9b406cefe95163ebcc6b72a343c0847_rle_crop_3745235794_0.png.png imagette219942591743629073/1743629007_3877108_1349656998_37800098269a8458f29c39bfa520bb56_rle_crop_3745237926_0.png.png imagette219942621743629073/ imagette219942631743629073/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f0ce6780a85c15afaa0e4bab329002e7_26885370.png imagette219942591743629073 21994262 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=21994262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219942621743629073 21994263 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=21994263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219942631743629073 21994256 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=21994256 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349656321: '1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235054_0.png', 1349658514: '1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237943_0.png', 1349658511: '1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237944_0.png', 1349658508: '1743629007_3877108_1349656998_37800098269a8458f29c39bfa520bb56_rle_crop_3745237918_0.png', 1349658505: '1743629007_3877108_1349657131_5c0da463cfe36da69085b822e0e27669_rle_crop_3745237902_0.png', 1349657790: '1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235766_0.png', 1349657789: '1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235763_0.png', 1349657788: '1743628891_1543915_1349654246_d194b020efbbc6c3f36f21c02d30111f_rle_crop_3745235746_0.png', 1349657445: '1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235381_0.png', 1349656326: '1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235055_0.png', 1349654897: '1743628764_1003306_1349652673_83f53950e094dd8574c73cec93e9ed8b_rle_crop_3745230327_0.png', 1349656316: '1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235038_0.png', 1349656311: '1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235034_0.png', 1349656306: '1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235018_0.png', 1349656301: '1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235022_0.png', 1349656296: '1743628767_3870544_1349651957_37fc1203a34b3226828ccc3bfb92e519_rle_crop_3745234996_0.png', 1349656291: '1743628767_3870544_1349651957_37fc1203a34b3226828ccc3bfb92e519_rle_crop_3745234998_0.png', 1349656284: '1743628767_3870544_1349652751_4c271f5b58b8894165892541d5409d82_rle_crop_3745234976_0.png', 1349654901: '1743628764_1003306_1349652630_a1d410df69503b9148c04fe65c3108f1_rle_crop_3745230342_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e2576a668d6493d8faeb38612751471b_5555877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/db4b591120f822d1de8961d5a9fce86e_72314179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ba435b9a0c3019e34827646da1b840ff_17427567.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ba1a29104c0b03d98a3df208f617c98d_91692600.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/362fba4cae3176d781d3c1c2db702890_40074531.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/625cbc6a3184ca2f3e23dddbd5945dcd_42423018.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4d6886056c077c64fe8f93303496185a_61844332.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b6fa17fa3823b0ccced10b574feb30d9_40865212.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/52c00ac81960ad81b87b2cfbfec956f2_64660243.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dc1c8dad09a800a3398669e3bed065e3_76776.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e9f39f56f73d7046a073844711b7d250_84470946.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e1fdaca8d90502b39b42d045e7f79bbc_28259775.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/32d8152430311e87a092bd1f222498f5_69541219.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/192f7c2c882c3f224cc88e1ef667a251_45328182.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4f98a9f11790ec74d383f05d0f59eeab_98741919.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/edbdea48893c71bc46d7592a21528b98_51288434.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4acfe56f7d0b6ae6f8380f02c439ea3c_9837833.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7c040006b7562e81f2d2974c958b97fe_29061928.png change filename to text .imagette219942561743629073/ imagette219942561743629073/1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235381_0.png.png imagette219942561743629073/1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235763_0.png.png imagette219942561743629073/1743628764_1003306_1349652673_83f53950e094dd8574c73cec93e9ed8b_rle_crop_3745230327_0.png.png imagette219942561743629073/1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235022_0.png.png imagette219942561743629073/1743628891_1543915_1349654246_d194b020efbbc6c3f36f21c02d30111f_rle_crop_3745235746_0.png.png imagette219942561743629073/1743629007_3877108_1349656998_37800098269a8458f29c39bfa520bb56_rle_crop_3745237918_0.png.png imagette219942561743629073/1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235055_0.png.png imagette219942561743629073/1743629007_3877108_1349657131_5c0da463cfe36da69085b822e0e27669_rle_crop_3745237902_0.png.png imagette219942561743629073/1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235018_0.png.png imagette219942561743629073/1743628767_3870544_1349652751_4c271f5b58b8894165892541d5409d82_rle_crop_3745234976_0.png.png imagette219942561743629073/1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235766_0.png.png imagette219942561743629073/1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235038_0.png.png imagette219942561743629073/1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237943_0.png.png imagette219942561743629073/1743628767_3870544_1349651957_37fc1203a34b3226828ccc3bfb92e519_rle_crop_3745234998_0.png.png imagette219942561743629073/1743628764_1003306_1349652630_a1d410df69503b9148c04fe65c3108f1_rle_crop_3745230342_0.png.png imagette219942561743629073/1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235054_0.png.png imagette219942561743629073/1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235034_0.png.png imagette219942561743629073/1743628767_3870544_1349651957_37fc1203a34b3226828ccc3bfb92e519_rle_crop_3745234996_0.png.png imagette219942561743629073/1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237944_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/61978430011cbe8d519749cdd34eba05_64719563.png imagette219942561743629073 21994260 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=21994260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349656414: '1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235021_0.png', 1349656417: '1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235039_0.png', 1349656420: '1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235036_0.png', 1349656424: '1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235053_0.png', 1349657498: '1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235383_0.png', 1349657849: '1743628891_1543915_1349655902_df86657e85f04dca61f674832d92d265_rle_crop_3745235622_0.png', 1349657851: '1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235734_0.png', 1349657852: '1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235761_0.png', 1349657853: '1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235777_0.png', 1349657855: '1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235779_0.png', 1349658574: '1743629007_3877108_1349657131_5c0da463cfe36da69085b822e0e27669_rle_crop_3745237900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f465972a2fc2a244b7359422b0928d7_82444028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bc420fb3a58e29012b450ab33fd54f6b_81918043.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4f1e4836fcf57a0def0157b3a4bac60b_66440283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f0587272146df07b985cc4b3279cee7_4580709.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cec559d55148ef5c622f69db6f57e55d_50434170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ef2e06871d659d7f8300790439d35096_32898999.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/54ab14198708495e38e59045b29152ce_27022975.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9763aecc95290dc179a8963821eb1818_77817156.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/286ddd526a17a5e2983e35207e89e2f3_74552088.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/07151e8d08ba6aaf673bbbd300c67f81_3590799.png change filename to text .imagette219942601743629074/ imagette219942601743629074/1743628886_3874083_1349655711_ddae54d41e6aef24e34f4f759a6b27b9_rle_crop_3745235383_0.png.png imagette219942601743629074/1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235039_0.png.png imagette219942601743629074/1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235036_0.png.png imagette219942601743629074/1743628767_3870544_1349651908_1fb641857488b1cbb4d07c3b0c5680a8_rle_crop_3745235021_0.png.png imagette219942601743629074/1743628891_1543915_1349654175_d478591a9b37d7a18bb0f9ef373d4dc0_rle_crop_3745235761_0.png.png imagette219942601743629074/1743629007_3877108_1349657131_5c0da463cfe36da69085b822e0e27669_rle_crop_3745237900_0.png.png imagette219942601743629074/1743628767_3870544_1349651817_6b6983fbaed0da12d5d04bb8f7e8754f_rle_crop_3745235053_0.png.png imagette219942601743629074/1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235779_0.png.png imagette219942601743629074/1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235734_0.png.png imagette219942601743629074/1743628891_1543915_1349654079_750e0871c342b554392ef78c9796e73d_rle_crop_3745235777_0.png.png imagette219942601743629074/1743628891_1543915_1349655902_df86657e85f04dca61f674832d92d265_rle_crop_3745235622_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9ec6240324090a57335ffde68e2fec40_53810421.png imagette219942601743629074 21994264 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=21994264 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349654919: '1743628764_1003306_1349652561_84c62783bafc2efbc2038c61883b2e5d_rle_crop_3745231350_0.png', 1349656348: '1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235033_0.png', 1349657816: '1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235732_0.png', 1349657817: '1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235735_0.png', 1349657820: '1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235731_0.png', 1349658330: '1743628990_1544881_1349657846_339c0a47b6deef8a784b45d4a1cf6fdb_rle_crop_3745237640_0.png', 1349658331: '1743628990_1544881_1349657768_5b2d2c4fd112908a3444a1caa30142a0_rle_crop_3745237650_0.png', 1349658536: '1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237939_0.png', 1349658539: '1743629007_3877108_1349656816_5a96a6860cf92ee3a35b3e0e9625d4ab_rle_crop_3745237957_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4ac4e60d8d7db51a36bf0db985051f59_7053811.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d0651b81e9be4ca008a6ec654cef7315_38661109.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/27d4751ed68824f1e5580c2bd6be56ef_82900956.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e8fca7954cada238876538581927bf1c_35486082.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b0b200fbc23532ee9403bb9d8d45406c_96063599.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b9d137e377250b91c38341eec59e28f3_57642441.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/dba99967c5966c611e7a782ad46d717f_98486127.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fe762a18f76bd5c975b568ac83299125_65850865.png change filename to text .imagette219942641743629075/ imagette219942641743629075/1743628990_1544881_1349657846_339c0a47b6deef8a784b45d4a1cf6fdb_rle_crop_3745237640_0.png.png imagette219942641743629075/1743628767_3870544_1349651866_f6d308291e3121009bcaf2184acda7ff_rle_crop_3745235033_0.png.png imagette219942641743629075/1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235731_0.png.png imagette219942641743629075/1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235735_0.png.png imagette219942641743629075/1743628764_1003306_1349652561_84c62783bafc2efbc2038c61883b2e5d_rle_crop_3745231350_0.png.png imagette219942641743629075/1743628990_1544881_1349657768_5b2d2c4fd112908a3444a1caa30142a0_rle_crop_3745237650_0.png.png imagette219942641743629075/1743628891_1543915_1349654339_e1c736096520c6aac9a94d1a687eb6c4_rle_crop_3745235732_0.png.png imagette219942641743629075/1743629007_3877108_1349656882_6c729de50819582286203e7abb691de5_rle_crop_3745237939_0.png.png imagette219942641743629075/1743629007_3877108_1349656816_5a96a6860cf92ee3a35b3e0e9625d4ab_rle_crop_3745237957_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bfd30c207714f83466e43e5f31d7f958_17806437.png imagette219942641743629075 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21994250 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21994265,21994266,21994267,21994268,21994269,21994270,21994271,21994272,21994273,21994274,21994275,21994276?tags=metal,cartonnette,flou,Teint_Dans_La_Masse,autre_refus,environnement,plastique,Carton_brun,papier,mal_croppe,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1349658265] : ('0.056449631743980315',) no score found for photo 1349658265 We are sending mail with results at report@fotonower.com args[1349658238] : ('0.056449631743980315',) no score found for photo 1349658238 We are sending mail with results at report@fotonower.com args[1349658202] : ('0.056449631743980315',) no score found for photo 1349658202 We are sending mail with results at report@fotonower.com args[1349658172] : ('0.056449631743980315',) no score found for photo 1349658172 We are sending mail with results at report@fotonower.com args[1349658127] : ('0.056449631743980315',) no score found for photo 1349658127 We are sending mail with results at report@fotonower.com refus_total : 0.056449631743980315 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=21994250 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_P21994250_02-04-2025_23_24_32.pdf results_Auto_P21994250_02-04-2025_23_24_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_24_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21994250','results_Auto_P21994250_02-04-2025_23_24_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_24_32.pdf','pdf','','0.24','0.056449631743980315') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21994250]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] map_info['map_portfolio_photo'] : {21994250: [1349658265, 1349658238, 1349658202, 1349658172, 1349658127, 1349657910, 1349657846, 1349657768, 1349657725, 1349657180, 1349657131, 1349656998, 1349656882, 1349656816, 1349656780, 1349655902, 1349655711, 1349655512, 1349655219, 1349654424, 1349654339, 1349654246, 1349654175, 1349654079, 1349653992, 1349653480, 1349653368, 1349653332, 1349653208, 1349652751, 1349652673, 1349652630, 1349652561, 1349652478, 1349652407, 1349651957, 1349651908, 1349651866, 1349651817, 1349651758]} final : False mtd_id 4302 list_pids : [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] 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, '2718135') ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '21994250', '1349658265', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135')] time used for this insertion : 0.012719869613647461 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.7360680103302 time spend to save output : 0.012951374053955078 total time spend for step 4 : 4.749019384384155 step5:split_time_score Wed Apr 2 23:24:36 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 : ['21994250'] 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 : [('21994250',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21994250) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349658265: {'path': 'temp/1743629072_4062010_1349658265_76d5e9e64cb4ee1a2a93db6e55c384b1.jpg', 'extension': 'jpg'}, 1349658202: {'path': 'temp/1743629072_4062010_1349658202_60b0a07fd3bb5a215b1afc2bce5a1ae6.jpg', 'extension': 'jpg'}, 1349658238: {'path': 'temp/1743629072_4062010_1349658238_4a1b048b3be3c19964b0fc324bfe0fcc.jpg', 'extension': 'jpg'}, 1349658127: {'path': 'temp/1743629072_4062010_1349658127_869d66803906dc14813a9fad478ba8d5.jpg', 'extension': 'jpg'}, 1349658172: {'path': 'temp/1743629072_4062010_1349658172_3ffaf6966e85bf3d15fd88c682e012f3.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 = 21994250; (('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 = 21994250 group by h (('23', 40),) 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=21994250 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 (21994250) 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 (21994250) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21994250 Nombre de photos uploadées : 40 / 23040 (0%) 02042025 21994250 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 02042025 21994250 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1349651957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/37fc1203a34b3226828ccc3bfb92e519.jpg', 'username': None, 'uploaded_at': 1743628568, 'text': 'image_02042025_23_15_03_009143m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1349651908, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1fb641857488b1cbb4d07c3b0c5680a8.jpg', 'username': None, 'uploaded_at': 1743628568, 'text': 'image_02042025_23_15_13_010144m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1349651866, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f6d308291e3121009bcaf2184acda7ff.jpg', 'username': None, 'uploaded_at': 1743628568, 'text': 'image_02042025_23_15_23_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1349651817, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6b6983fbaed0da12d5d04bb8f7e8754f.jpg', 'username': None, 'uploaded_at': 1743628568, 'text': 'image_02042025_23_15_34_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002028942108154297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21994250, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02193284034729004 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719498, 'mtr_portfolio_id': 21991914, 'dashboard_result_id': 9824387, '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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719498, 'mtr_portfolio_id': 21992485, 'dashboard_result_id': 9824388, '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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719498, 'mtr_portfolio_id': 21993320, 'dashboard_result_id': 9824389, '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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719498, 'mtr_portfolio_id': 21994250, 'dashboard_result_id': 9824390, '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_P21994250_02-04-2025_23_23_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, '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 = 21991914 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': 2717994, 'mtr_portfolio_id': 21991914, 'created_at': datetime.datetime(2025, 4, 2, 22, 48, 59), 'result': '0.04052662425498596', 'result_long': None, 'result_double': None}] Qualite : 0.04052662425498596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21991914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21991914 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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}" where mtr_portfolio_id = 21991914 and dashboard_run_id = 1719498 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`=21991914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9824387, 0.04052662425498596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, '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 = 21992485 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': 2718031, 'mtr_portfolio_id': 21992485, 'created_at': datetime.datetime(2025, 4, 2, 23, 3), 'result': '0.05175821212156914', 'result_long': None, 'result_double': None}] Qualite : 0.05175821212156914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21992485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21992485 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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}" where mtr_portfolio_id = 21992485 and dashboard_run_id = 1719498 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`=21992485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9824388, 0.05175821212156914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, '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 = 21993320 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': 2718081, 'mtr_portfolio_id': 21993320, 'created_at': datetime.datetime(2025, 4, 2, 23, 19, 30), 'result': '0.04713894898914862', 'result_long': None, 'result_double': None}] Qualite : 0.04713894898914862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21993320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21993320 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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}" where mtr_portfolio_id = 21993320 and dashboard_run_id = 1719498 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`=21993320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9824389, 0.04713894898914862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, '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 = 21994250 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': 2718135, 'mtr_portfolio_id': 21994250, 'created_at': datetime.datetime(2025, 4, 2, 23, 24, 31), 'result': '0.056449631743980315', 'result_long': None, 'result_double': None}] Qualite : 0.056449631743980315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21994250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_24_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21994250 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_P21994250_02-04-2025_23_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}" where mtr_portfolio_id = 21994250 and dashboard_run_id = 1719498 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`=21994250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9824390, 0.056449631743980315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, '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 (21991914,21992485,21993320,21994250) result : ((1349623964,), (1349623977,), (1349624273,), (1349624317,), (1349624355,), (1349624387,), (1349624697,), (1349624722,), (1349624750,), (1349624772,), (1349624776,), (1349624779,), (1349624905,), (1349624925,), (1349624941,), (1349624947,), (1349624963,), (1349625025,), (1349625029,), (1349625032,), (1349625084,), (1349625097,), (1349625108,), (1349625117,), (1349625125,), (1349625144,), (1349625256,), (1349625262,), (1349625271,), (1349625297,), (1349625521,), (1349625525,), (1349625764,), (1349625775,), (1349625779,), (1349625783,), (1349625787,), (1349626076,), (1349626133,), (1349626158,), (1349626179,), (1349626183,), (1349626208,), (1349626484,), (1349626522,), (1349626547,), (1349626571,), (1349626603,), (1349626620,), (1349626804,), (1349626895,), (1349626910,), (1349626931,), (1349627394,), (1349627184,), (1349627209,), (1349627256,), (1349627304,), (1349627345,), (1349628007,), (1349628053,), (1349628085,), (1349628149,), (1349628654,), (1349628699,), (1349628779,), (1349628921,), (1349628996,), (1349629048,), (1349629663,), (1349629709,), (1349629768,), (1349629926,), (1349630080,), (1349630116,), (1349630971,), (1349631032,), (1349631097,), (1349631188,), (1349631857,), (1349631876,), (1349631952,), (1349631991,), (1349632055,), (1349632132,), (1349632687,), (1349632761,), (1349632867,), (1349632968,), (1349633671,), (1349633745,), (1349633904,), (1349633991,), (1349634076,), (1349634150,), (1349634636,), (1349634704,), (1349634837,), (1349634910,), (1349634932,), (1349635470,), (1349635574,), (1349635674,), (1349635758,), (1349635849,), (1349636481,), (1349636567,), (1349636639,), (1349636709,), (1349637359,), (1349637391,), (1349637439,), (1349637490,), (1349637544,), (1349637603,), (1349638758,), (1349638894,), (1349639008,), (1349639087,), (1349639157,), (1349640422,), (1349640504,), (1349640554,), (1349640608,), (1349640669,), (1349640867,), (1349640962,), (1349641052,), (1349641145,), (1349641230,), (1349641837,), (1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,), (1349650183,), (1349650227,), (1349650326,), (1349650463,), (1349650576,), (1349650648,), (1349651146,), (1349651194,), (1349651262,), (1349651316,), (1349651997,), (1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21994250]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] map_info['map_portfolio_photo'] : {21994250: [1349658265, 1349658238, 1349658202, 1349658172, 1349658127, 1349657910, 1349657846, 1349657768, 1349657725, 1349657180, 1349657131, 1349656998, 1349656882, 1349656816, 1349656780, 1349655902, 1349655711, 1349655512, 1349655219, 1349654424, 1349654339, 1349654246, 1349654175, 1349654079, 1349653992, 1349653480, 1349653368, 1349653332, 1349653208, 1349652751, 1349652673, 1349652630, 1349652561, 1349652478, 1349652407, 1349651957, 1349651908, 1349651866, 1349651817, 1349651758]} final : True mtd_id 4302 list_pids : [1349658265, 1349658238, 1349658202, 1349658172, 1349658127] Looping around the photos to save general results len do output : 1 /21994250Didn'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, '2718135') ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135') ('4302', None, None, None, None, None, None, None, '2718135') ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135') 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', None, '21994250', 'None', None, None, None, None, '2718135'), ('4302', '21994250', '1349658265', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658238', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658202', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658172', None, None, None, None, None, '2718135'), ('4302', '21994250', '1349658127', None, None, None, None, None, '2718135')] time used for this insertion : 0.012301921844482422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4758293628692627 time spend to save output : 0.012495756149291992 total time spend for step 5 : 0.4883251190185547 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 (2718135) 2.31user 2.01system 0:11.29elapsed 38%CPU (0avgtext+0avgdata 157904maxresident)k 20816inputs+11680outputs (126major+76709minor)pagefaults 0swaps