(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 23346703 , 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=23346652 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 (23346703) result : ((1361116791,), (1361116792,), (1361117137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23346652) result : ((1361115532,), (1361115536,), (1361115540,), (1361115544,), (1361115648,), (1361115651,), (1361115658,), (1361115663,), (1361115881,), (1361115934,), (1361115968,), (1361116387,), (1361116432,), (1361116465,), (1361116470,), (1361116506,), (1361116519,), (1361116581,), (1361116590,), (1361116596,), (1361116602,), (1361116652,), (1361116656,), (1361116660,), (1361116699,), (1361116710,), (1361116718,), (1361116722,), (1361116726,), (1361116739,), (1361116832,), (1361116863,), (1361116896,), (1361116912,), (1361116919,), (1361116923,), (1361116989,), (1361117023,), (1361117049,), (1361117149,), (1361117153,), (1361117164,), (1361117180,), (1361117210,), (1361117218,), (1361117226,), (1361117248,), (1361117259,), (1361117264,), (1361117309,), (1361117313,), (1361117316,), (1361117319,), (1361117382,), (1361117388,), (1361117391,), (1361117395,), (1361117398,), (1361117473,), (1361117509,), (1361117538,)) 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`=23346652 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','Carton_brun','autre_refus','mal_croppe','environnement','papier','plastique','Carton_gris','flou','Teint_Dans_La_Masse','cartonnette')) 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`=23346652 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','Carton_brun','autre_refus','mal_croppe','environnement','papier','plastique','Carton_gris','flou','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 23346652, 'sub_port_id': 23346729, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573492, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'Carton_brun': {'main_port_id': 23346652, 'sub_port_id': 23346730, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573493, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'cartonnette': {'main_port_id': 23346652, 'sub_port_id': 23346731, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573494, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 23346652, 'sub_port_id': 23346732, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573495, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'flou': {'main_port_id': 23346652, 'sub_port_id': 23346733, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573496, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'environnement': {'main_port_id': 23346652, 'sub_port_id': 23346734, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573497, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'mal_croppe': {'main_port_id': 23346652, 'sub_port_id': 23346735, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573498, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'metal': {'main_port_id': 23346652, 'sub_port_id': 23346736, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573499, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'plastique': {'main_port_id': 23346652, 'sub_port_id': 23346737, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573500, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'kraft': {'main_port_id': 23346652, 'sub_port_id': 23346738, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573501, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'Carton_gris': {'main_port_id': 23346652, 'sub_port_id': 23346739, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573502, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}, 'autre_refus': {'main_port_id': 23346652, 'sub_port_id': 23346740, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15573503, 'last_updated_at': datetime.datetime(2025, 5, 26, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 17, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346735,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346736,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346737,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23346740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23346703 lien utilise dans velours : https://www.fotonower.com/velours/23346729,23346730,23346731,23346732,23346733,23346734,23346735,23346736,23346737,23346738,23346739,23346740?tags=papier,Carton_brun,cartonnette,Teint_Dans_La_Masse,flou,environnement,mal_croppe,metal,plastique,kraft,Carton_gris,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23346652]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] map_info['map_portfolio_photo'] : {23346652: [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210, 1361117180, 1361117164, 1361117153, 1361117149, 1361117049, 1361117023, 1361116989, 1361116923, 1361116919, 1361116912, 1361116896, 1361116863, 1361116832, 1361116739, 1361116726, 1361116722, 1361116718, 1361116710, 1361116699, 1361116660, 1361116656, 1361116652, 1361116602, 1361116596, 1361116590, 1361116581, 1361116519, 1361116506, 1361116470, 1361116465, 1361116432, 1361116387, 1361115968, 1361115934, 1361115881, 1361115663, 1361115658, 1361115651, 1361115648, 1361115544, 1361115540, 1361115536, 1361115532]} final : False mtd_id 4302 list_pids : [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] Looping around the photos to save general results len do output : 1 /23346652. 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, '2956066') ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '23346652', "{'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703}", None, None, None, None, '2956066'), ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066')] time used for this insertion : 0.01778125762939453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4394268989562988 time spend to save output : 0.018186330795288086 total time spend for step 1 : 1.457613229751587 step2:final Mon May 26 17:14:30 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 (23346652) 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 23346652 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361115544,1361115540,1361115536,1361115532,1361115663,1361115658,1361115651,1361115648,1361115968,1361115934,1361115881,1361116470,1361116465,1361116432,1361116387,1361116602,1361116596,1361116590,1361116581,1361116519,1361116506,1361116660,1361116656,1361116652,1361116739,1361116726,1361116722,1361116718,1361116710,1361116699,1361116923,1361116919,1361116912,1361116896,1361116863,1361116832,1361117049,1361117023,1361116989,1361117180,1361117164,1361117153,1361117149,1361117264,1361117259,1361117248,1361117226,1361117218,1361117210,1361117319,1361117316,1361117313,1361117309,1361117398,1361117395,1361117391,1361117388,1361117382,1361117538,1361117509,1361117473); 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([23346652]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} new output for save of step final : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] map_info['map_portfolio_photo'] : {23346652: [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210, 1361117180, 1361117164, 1361117153, 1361117149, 1361117049, 1361117023, 1361116989, 1361116923, 1361116919, 1361116912, 1361116896, 1361116863, 1361116832, 1361116739, 1361116726, 1361116722, 1361116718, 1361116710, 1361116699, 1361116660, 1361116656, 1361116652, 1361116602, 1361116596, 1361116590, 1361116581, 1361116519, 1361116506, 1361116470, 1361116465, 1361116432, 1361116387, 1361115968, 1361115934, 1361115881, 1361115663, 1361115658, 1361115651, 1361115648, 1361115544, 1361115540, 1361115536, 1361115532]} final : False mtd_id 4302 list_pids : [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] Looping around the photos to save general results len do output : 18 /1361117538.Didn't retrieve data . /1361117509.Didn't retrieve data . /1361117473.Didn't retrieve data . /1361117398.Didn't retrieve data . /1361117395.Didn't retrieve data . /1361117391.Didn't retrieve data . /1361117388.Didn't retrieve data . /1361117382.Didn't retrieve data . /1361117319.Didn't retrieve data . /1361117316.Didn't retrieve data . /1361117313.Didn't retrieve data . /1361117309.Didn't retrieve data . /1361117264.Didn't retrieve data . /1361117259.Didn't retrieve data . /1361117248.Didn't retrieve data . /1361117226.Didn't retrieve data . /1361117218.Didn't retrieve data . /1361117210.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, '2956066') ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '23346652', '1361117538', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117509', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117473', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117398', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117395', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117391', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117388', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117382', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117319', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117316', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117313', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117309', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117264', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117259', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117248', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117226', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117218', '0.03479750613411337', None, None, None, None, '2956066'), ('4302', '23346652', '1361117210', '0.03479750613411337', None, None, None, None, '2956066')] time used for this insertion : 0.018956661224365234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07010340690612793 time spend to save output : 0.02030181884765625 total time spend for step 2 : 0.09040522575378418 step3:velours_tree Mon May 26 17:14:30 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 : {23346652: [{'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703}]} input_args_next_step : {23346652: ()} output_args : {23346652: [{'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703}]} args : 23346652 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 : ({'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23346652) 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([23346652]) 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.3548717498779297 time spend to save output : 8.273124694824219e-05 total time spend for step 3 : 0.35495448112487793 step4:send_mail_cod Mon May 26 17:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} input_args_next_step : {1361117538: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117538 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117509 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117473 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117398 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117395 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117391 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117388 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117382 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117319 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117316 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117313 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117309 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117264 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117259 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117248 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117226 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117218 depend.output_id : 0 input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ()} output_args : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',)} args : 1361117210 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 : {23346652: [{'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703}]} input_args_next_step : {1361117538: ('0.03479750613411337',), 1361117509: ('0.03479750613411337',), 1361117473: ('0.03479750613411337',), 1361117398: ('0.03479750613411337',), 1361117395: ('0.03479750613411337',), 1361117391: ('0.03479750613411337',), 1361117388: ('0.03479750613411337',), 1361117382: ('0.03479750613411337',), 1361117319: ('0.03479750613411337',), 1361117316: ('0.03479750613411337',), 1361117313: ('0.03479750613411337',), 1361117309: ('0.03479750613411337',), 1361117264: ('0.03479750613411337',), 1361117259: ('0.03479750613411337',), 1361117248: ('0.03479750613411337',), 1361117226: ('0.03479750613411337',), 1361117218: ('0.03479750613411337',), 1361117210: ('0.03479750613411337',), 23346652: ()} output_args : {23346652: [{'papier': 23346691, 'Carton_brun': 23346692, 'cartonnette': 23346694, 'Teint_Dans_La_Masse': 23346695, 'flou': 23346696, 'environnement': 23346697, 'mal_croppe': 23346698, 'metal': 23346699, 'plastique': 23346700, 'kraft': 23346701, 'Carton_gris': 23346702, 'autre_refus': 23346703}]} args : 23346652 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 :19, first value : ('0.03479750613411337',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23346652) 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 (1361117538,1361117509,1361117473,1361117398,1361117395,1361117391,1361117388,1361117382,1361117319,1361117316,1361117313,1361117309,1361117264,1361117259,1361117248,1361117226,1361117218,1361117210) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361117210 begin to download photo : 1361117259 begin to download photo : 1361117316 begin to download photo : 1361117391 begin to download photo : 1361117509 download finish for photo 1361117509 begin to download photo : 1361117538 download finish for photo 1361117259 begin to download photo : 1361117264 download finish for photo 1361117210 begin to download photo : 1361117218 download finish for photo 1361117316 begin to download photo : 1361117319 download finish for photo 1361117391 begin to download photo : 1361117395 download finish for photo 1361117538 download finish for photo 1361117218 begin to download photo : 1361117226 download finish for photo 1361117319 begin to download photo : 1361117382 download finish for photo 1361117264 begin to download photo : 1361117309 download finish for photo 1361117395 begin to download photo : 1361117398 download finish for photo 1361117226 begin to download photo : 1361117248 download finish for photo 1361117309 begin to download photo : 1361117313 download finish for photo 1361117382 begin to download photo : 1361117388 download finish for photo 1361117398 begin to download photo : 1361117473 download finish for photo 1361117313 download finish for photo 1361117248 download finish for photo 1361117388 download finish for photo 1361117473 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 : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P23346652_26-05-2025_17_14_31.pdf 23346694 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=23346694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116797: '1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270415_0.png'} change filename to text .imagette233466941748272471/ imagette233466941748272471/1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270415_0.png.png imagette233466961748272471/ imagette233466981748272471/ imagette233466991748272471/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/6ed7744428fd4f6578e5ba8afebc3e24_59906222.png imagette233466941748272471 23346696 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=23346696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233466961748272471 23346698 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=23346698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233466981748272471 23346699 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=23346699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233466991748272471 23346700 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=23346700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116800: '1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270430_0.png'} change filename to text .imagette233467001748272471/ imagette233467001748272471/1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270430_0.png.png imagette233467011748272471/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/cf18d8d939c308392122d061afe960d5_42342942.png imagette233467001748272471 23346701 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=23346701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233467011748272471 23346703 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=23346703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116791: '1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270376_0.png', 1361116792: '1748272046_1618114_1361115544_81dec26c2488e17a0b96603aaa2c70df_rle_crop_3813270388_0.png', 1361117137: '1748272166_1622482_1361116432_eac4d773b664cdeb62b7d158fca001a3_rle_crop_3813271654_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e8996318b9590052d7d84596dacc237d_51634203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/b9422f2b716459ac0e1a27b35b827b53_99990049.png change filename to text .imagette233467031748272471/ imagette233467031748272471/1748272046_1618114_1361115544_81dec26c2488e17a0b96603aaa2c70df_rle_crop_3813270388_0.png.png imagette233467031748272471/1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270376_0.png.png imagette233467031748272471/1748272166_1622482_1361116432_eac4d773b664cdeb62b7d158fca001a3_rle_crop_3813271654_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/7c59bcd04dc6d1c0a705293051a8223c_13577533.png imagette233467031748272471 23346692 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=23346692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116798: '1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270381_0.png', 1361116799: '1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270411_0.png', 1361117296: '1748272285_1626073_1361116656_f24ee8bd0eb1565a3f3b7083f85f8de3_rle_crop_3813272308_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/3fc67b6ceec0ac02d8e3ce818e5d99d3_94134137.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/2423a4cf0a1d7ef328c5ee590a88fdb1_93336179.png change filename to text .imagette233466921748272472/ imagette233466921748272472/1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270381_0.png.png imagette233466921748272472/1748272285_1626073_1361116656_f24ee8bd0eb1565a3f3b7083f85f8de3_rle_crop_3813272308_0.png.png imagette233466921748272472/1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270411_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/620d81f258f47fc12cb24472f7c4f613_8748867.png imagette233466921748272472 23346695 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=23346695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116788: '1748272046_1618114_1361115540_e6da7b684196a5056de2ab0c54d490fd_rle_crop_3813270402_0.png', 1361116789: '1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270416_0.png', 1361116790: '1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270429_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/7b1ec737fdda219019082de6df83cff5_47863161.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/604cbf0c233fb32af697f1b480748fbd_13382192.png change filename to text .imagette233466951748272472/ imagette233466951748272472/1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270429_0.png.png imagette233466951748272472/1748272046_1618114_1361115536_963872461a03409203bb116eda32a4c4_rle_crop_3813270416_0.png.png imagette233466951748272472/1748272046_1618114_1361115540_e6da7b684196a5056de2ab0c54d490fd_rle_crop_3813270402_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/fdb9fcf80448672ffc0cc12c1a23c754_71111268.png imagette233466951748272472 23346702 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=23346702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361116794: '1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270380_0.png', 1361116795: '1748272046_1618114_1361115540_e6da7b684196a5056de2ab0c54d490fd_rle_crop_3813270400_0.png', 1361116796: '1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270423_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/2c67885f0d5288cf16c7e84efae04b1d_42699407.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/1bf78189bad3c20279b7d5252454c725_62759004.png change filename to text .imagette233467021748272472/ imagette233467021748272472/1748272046_1618114_1361115663_bff9130fa91455c4e8c11434db583e2d_rle_crop_3813270380_0.png.png imagette233467021748272472/1748272046_1618114_1361115532_a036e32f54cbd83a7189c590d56e36be_rle_crop_3813270423_0.png.png imagette233467021748272472/1748272046_1618114_1361115540_e6da7b684196a5056de2ab0c54d490fd_rle_crop_3813270400_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/3e4144b142eb4a4188dc636fc2e76d6a_10507476.png imagette233467021748272472 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23346652 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23346729,23346730,23346731,23346732,23346733,23346734,23346735,23346736,23346737,23346738,23346739,23346740?tags=papier,Carton_brun,cartonnette,Teint_Dans_La_Masse,flou,environnement,mal_croppe,metal,plastique,kraft,Carton_gris,autre_refus your option no_mail is active, we will not send the real mail to your client args[1361117538] : ('0.03479750613411337',) no score found for photo 1361117538 We are sending mail with results at report@fotonower.com args[1361117509] : ('0.03479750613411337',) no score found for photo 1361117509 We are sending mail with results at report@fotonower.com args[1361117473] : ('0.03479750613411337',) no score found for photo 1361117473 We are sending mail with results at report@fotonower.com args[1361117398] : ('0.03479750613411337',) no score found for photo 1361117398 We are sending mail with results at report@fotonower.com args[1361117395] : ('0.03479750613411337',) no score found for photo 1361117395 We are sending mail with results at report@fotonower.com args[1361117391] : ('0.03479750613411337',) no score found for photo 1361117391 We are sending mail with results at report@fotonower.com args[1361117388] : ('0.03479750613411337',) no score found for photo 1361117388 We are sending mail with results at report@fotonower.com args[1361117382] : ('0.03479750613411337',) no score found for photo 1361117382 We are sending mail with results at report@fotonower.com args[1361117319] : ('0.03479750613411337',) no score found for photo 1361117319 We are sending mail with results at report@fotonower.com args[1361117316] : ('0.03479750613411337',) no score found for photo 1361117316 We are sending mail with results at report@fotonower.com args[1361117313] : ('0.03479750613411337',) no score found for photo 1361117313 We are sending mail with results at report@fotonower.com args[1361117309] : ('0.03479750613411337',) no score found for photo 1361117309 We are sending mail with results at report@fotonower.com args[1361117264] : ('0.03479750613411337',) no score found for photo 1361117264 We are sending mail with results at report@fotonower.com args[1361117259] : ('0.03479750613411337',) no score found for photo 1361117259 We are sending mail with results at report@fotonower.com args[1361117248] : ('0.03479750613411337',) no score found for photo 1361117248 We are sending mail with results at report@fotonower.com args[1361117226] : ('0.03479750613411337',) no score found for photo 1361117226 We are sending mail with results at report@fotonower.com args[1361117218] : ('0.03479750613411337',) no score found for photo 1361117218 We are sending mail with results at report@fotonower.com args[1361117210] : ('0.03479750613411337',) no score found for photo 1361117210 We are sending mail with results at report@fotonower.com refus_total : 0.03479750613411337 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=23346652 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_P23346652_26-05-2025_17_14_31.pdf results_Auto_P23346652_26-05-2025_17_14_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23346652_26-05-2025_17_14_31.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','23346652','results_Auto_P23346652_26-05-2025_17_14_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23346652_26-05-2025_17_14_31.pdf','pdf','','0.2','0.03479750613411337') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23346652]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] map_info['map_portfolio_photo'] : {23346652: [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210, 1361117180, 1361117164, 1361117153, 1361117149, 1361117049, 1361117023, 1361116989, 1361116923, 1361116919, 1361116912, 1361116896, 1361116863, 1361116832, 1361116739, 1361116726, 1361116722, 1361116718, 1361116710, 1361116699, 1361116660, 1361116656, 1361116652, 1361116602, 1361116596, 1361116590, 1361116581, 1361116519, 1361116506, 1361116470, 1361116465, 1361116432, 1361116387, 1361115968, 1361115934, 1361115881, 1361115663, 1361115658, 1361115651, 1361115648, 1361115544, 1361115540, 1361115536, 1361115532]} final : False mtd_id 4302 list_pids : [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] 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, '2956066') ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23346652', '1361117538', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066')] time used for this insertion : 0.01740741729736328 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8090245723724365 time spend to save output : 0.017775774002075195 total time spend for step 4 : 2.8268003463745117 step5:split_time_score Mon May 26 17:14:33 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 : ['23346652'] 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 : [('23346652',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23346652) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361117509: {'path': 'temp/1748272471_501031_1361117509_df18e01c624eebfbe58c49086fb00bd5.jpg', 'extension': 'jpg'}, 1361117538: {'path': 'temp/1748272471_501031_1361117538_5bc1dab6df738ee6c4ed21bc1c6cd32a.jpg', 'extension': 'jpg'}, 1361117259: {'path': 'temp/1748272471_501031_1361117259_cd69850beed24ef863e96ba508815ac0.jpg', 'extension': 'jpg'}, 1361117264: {'path': 'temp/1748272471_501031_1361117264_73c74d34ffefd38f443fbf8b42231393.jpg', 'extension': 'jpg'}, 1361117309: {'path': 'temp/1748272471_501031_1361117309_e9e9c48b9a0c6db895e0a793af47f7ff.jpg', 'extension': 'jpg'}, 1361117313: {'path': 'temp/1748272471_501031_1361117313_439811b42ccc6edd23454b64e8acdc02.jpg', 'extension': 'jpg'}, 1361117210: {'path': 'temp/1748272471_501031_1361117210_b2da1177a572c45ca87bb06e8f74bca0.jpg', 'extension': 'jpg'}, 1361117218: {'path': 'temp/1748272471_501031_1361117218_af9a1186296fc6c954c54a35290e7883.jpg', 'extension': 'jpg'}, 1361117226: {'path': 'temp/1748272471_501031_1361117226_ab9a9caf92cc31845b948a56e94e00b2.jpg', 'extension': 'jpg'}, 1361117248: {'path': 'temp/1748272471_501031_1361117248_95b726443833190af9e7feb99b5a29e7.jpg', 'extension': 'jpg'}, 1361117316: {'path': 'temp/1748272471_501031_1361117316_402028ad62cec70c1a6d37f03b692a6a.jpg', 'extension': 'jpg'}, 1361117319: {'path': 'temp/1748272471_501031_1361117319_ffd572919026ce5ad1732ff42910cef4.jpg', 'extension': 'jpg'}, 1361117382: {'path': 'temp/1748272471_501031_1361117382_02ec7a6d8efe2abdedea771ee82b7981.jpg', 'extension': 'jpg'}, 1361117388: {'path': 'temp/1748272471_501031_1361117388_c92e6bae92aa7718e78280aefa4e1a74.jpg', 'extension': 'jpg'}, 1361117391: {'path': 'temp/1748272471_501031_1361117391_19e0624553c05d4ea27b1140319c9107.jpg', 'extension': 'jpg'}, 1361117395: {'path': 'temp/1748272471_501031_1361117395_2353da7ec21738070b24c97cb1adf11d.jpg', 'extension': 'jpg'}, 1361117398: {'path': 'temp/1748272471_501031_1361117398_d097ec7b3d202ee44370fd68d328df59.jpg', 'extension': 'jpg'}, 1361117473: {'path': 'temp/1748272471_501031_1361117473_9db0e4836cf4ba52cd470f72990041bc.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 = 23346652; (('arc_en_ciel_jrm_live',), ('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 = 23346652 group by h (('17', 61),) 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=23346652 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 (23346652) 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 (23346652) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26052025 23346652 Nombre de photos uploadées : 61 / 23040 (0%) 26052025 23346652 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 26052025 23346652 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1361115544, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/81dec26c2488e17a0b96603aaa2c70df.jpg', 'username': None, 'uploaded_at': 1748271668, 'text': 'image_26052025_17_00_14_010193m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361115540, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e6da7b684196a5056de2ab0c54d490fd.jpg', 'username': None, 'uploaded_at': 1748271668, 'text': 'image_26052025_17_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361115536, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/963872461a03409203bb116eda32a4c4.jpg', 'username': None, 'uploaded_at': 1748271668, 'text': 'image_26052025_17_00_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361115532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a036e32f54cbd83a7189c590d56e36be.jpg', 'username': None, 'uploaded_at': 1748271668, 'text': 'image_26052025_17_00_44_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.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 1.52587890625e-05 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004231929779052734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23346652, '2025-05-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1834524,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028666257858276367 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= 1834524 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23319692, 'dashboard_result_id': 10904271, '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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23319847, 'dashboard_result_id': 10904272, '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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23320077, 'dashboard_result_id': 10904273, '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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325134, 'dashboard_result_id': 10904274, '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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23320531, 'dashboard_result_id': 10904275, '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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23321016, 'dashboard_result_id': 10904276, '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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325136, 'dashboard_result_id': 10904277, '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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23321495, 'dashboard_result_id': 10904278, '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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23321641, 'dashboard_result_id': 10904279, '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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325138, 'dashboard_result_id': 10904280, '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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23322061, 'dashboard_result_id': 10904281, '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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325141, 'dashboard_result_id': 10904282, '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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23322562, 'dashboard_result_id': 10904283, '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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23323551, 'dashboard_result_id': 10904284, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23323111, 'dashboard_result_id': 10904285, '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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23323520, 'dashboard_result_id': 10904286, '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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23323923, 'dashboard_result_id': 10904287, '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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23324068, 'dashboard_result_id': 10904288, '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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23324122, 'dashboard_result_id': 10904289, '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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23324402, 'dashboard_result_id': 10904290, '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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23324563, 'dashboard_result_id': 10904291, '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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325143, 'dashboard_result_id': 10904292, '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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325201, 'dashboard_result_id': 10904293, '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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23325821, 'dashboard_result_id': 10904294, '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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23326708, 'dashboard_result_id': 10904295, '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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23327651, 'dashboard_result_id': 10904296, '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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23328708, 'dashboard_result_id': 10904297, '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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23335603, 'dashboard_result_id': 10904298, '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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23336428, 'dashboard_result_id': 10904299, '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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23336675, 'dashboard_result_id': 10904300, '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_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23337140, 'dashboard_result_id': 10904301, '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_P23337140_26-05-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23337584, 'dashboard_result_id': 10904302, '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_P23337584_26-05-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337683, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23338342, 'dashboard_result_id': 10904303, '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_P23338342_26-05-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338427, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23338959, 'dashboard_result_id': 10904304, '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_P23338959_26-05-2025_15_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338997, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23339784, 'dashboard_result_id': 10904305, '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_P23339784_26-05-2025_15_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23339797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23339798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23339799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23339800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23339801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23339802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23339803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23339804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23339805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23339806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23339807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23339808, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23340603, 'dashboard_result_id': 10904306, '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_P23340603_26-05-2025_15_44_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23340654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23340655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23340656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23340657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23340658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23340659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23340660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23340661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23340662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23340663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23340664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23340665, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23341849, 'dashboard_result_id': 10904307, '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_P23341849_26-05-2025_16_08_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23341874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23341875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23341876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23341877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23341878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23341879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23341880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23341881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23341882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23341883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23341884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23341885, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23342696, 'dashboard_result_id': 10904308, '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_P23342696_26-05-2025_16_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23342715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23342716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23342717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23342718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23342719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23342720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23342721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23342722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23342723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23342724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23342725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23342726, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23343720, 'dashboard_result_id': 10904309, '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_P23343720_26-05-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23343733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23343734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23343735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23343736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23343737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23343738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23343739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23343740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23343741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23343742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23343743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23343744, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23344558, 'dashboard_result_id': 10904310, '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_P23344558_26-05-2025_16_48_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23344613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23344614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23344615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23344616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23344617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23344618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23344619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23344623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23344627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23344633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23344636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23344637, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23345875, 'dashboard_result_id': 10904311, '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_P23345875_26-05-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23345888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23345889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23345890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23345891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23345892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23345893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23345894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23345895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23345896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23345897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23345898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23345899, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843729, 'mtr_portfolio_id': 23346652, 'dashboard_result_id': 10904312, '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_P23346652_26-05-2025_17_10_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23346691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23346692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23346694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23346695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23346696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23346697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23346698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23346699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23346700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23346701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23346702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23346703, '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 = 23319692 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': 2948214, 'mtr_portfolio_id': 23319692, 'created_at': datetime.datetime(2025, 5, 26, 11, 17, 29), 'result': '0.02519662063444177', 'result_long': None, 'result_double': None}] Qualite : 0.02519662063444177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319692 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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}" where mtr_portfolio_id = 23319692 and dashboard_run_id = 1843729 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`=23319692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904271, 0.02519662063444177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, '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 = 23319847 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': 2948254, 'mtr_portfolio_id': 23319847, 'created_at': datetime.datetime(2025, 5, 26, 5, 33, 33), 'result': '0.04429005484375135', 'result_long': None, 'result_double': None}] Qualite : 0.04429005484375135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319847 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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}" where mtr_portfolio_id = 23319847 and dashboard_run_id = 1843729 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`=23319847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904272, 0.04429005484375135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, '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 = 23320077 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': 2948365, 'mtr_portfolio_id': 23320077, 'created_at': datetime.datetime(2025, 5, 26, 11, 16, 28), 'result': '0.03387753435924145', 'result_long': None, 'result_double': None}] Qualite : 0.03387753435924145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320077 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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}" where mtr_portfolio_id = 23320077 and dashboard_run_id = 1843729 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`=23320077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904273, 0.03387753435924145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, '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 = 23325134 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': 2951444, 'mtr_portfolio_id': 23325134, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 30), 'result': '0.04692466993136173', 'result_long': None, 'result_double': None}] Qualite : 0.04692466993136173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325134 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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}" where mtr_portfolio_id = 23325134 and dashboard_run_id = 1843729 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`=23325134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904274, 0.04692466993136173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, '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 = 23320531 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': 2948625, 'mtr_portfolio_id': 23320531, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 59), 'result': '0.05544331765388143', 'result_long': None, 'result_double': None}] Qualite : 0.05544331765388143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320531 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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}" where mtr_portfolio_id = 23320531 and dashboard_run_id = 1843729 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`=23320531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904275, 0.05544331765388143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, '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 = 23321016 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': 2948863, 'mtr_portfolio_id': 23321016, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 31), 'result': '0.0894193868825305', 'result_long': None, 'result_double': None}] Qualite : 0.0894193868825305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321016 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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}" where mtr_portfolio_id = 23321016 and dashboard_run_id = 1843729 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`=23321016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904276, 0.0894193868825305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, '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 = 23325136 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': 2951445, 'mtr_portfolio_id': 23325136, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 1), 'result': '0.022613860282363396', 'result_long': None, 'result_double': None}] Qualite : 0.022613860282363396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325136 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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}" where mtr_portfolio_id = 23325136 and dashboard_run_id = 1843729 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`=23325136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904277, 0.022613860282363396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, '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 = 23321495 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23321495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23321495 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23321495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23321495 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321495_26-05-2025_11_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321495 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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}" where mtr_portfolio_id = 23321495 and dashboard_run_id = 1843729 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 = 23321641 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': 2949196, 'mtr_portfolio_id': 23321641, 'created_at': datetime.datetime(2025, 5, 26, 11, 14, 1), 'result': '0.02985346412270691', 'result_long': None, 'result_double': None}] Qualite : 0.02985346412270691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321641 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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}" where mtr_portfolio_id = 23321641 and dashboard_run_id = 1843729 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`=23321641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904279, 0.02985346412270691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, '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 = 23325138 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': 2951446, 'mtr_portfolio_id': 23325138, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 30), 'result': '0.036139356830812215', 'result_long': None, 'result_double': None}] Qualite : 0.036139356830812215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325138 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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}" where mtr_portfolio_id = 23325138 and dashboard_run_id = 1843729 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`=23325138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904280, 0.036139356830812215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, '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 = 23322061 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': 2949486, 'mtr_portfolio_id': 23322061, 'created_at': datetime.datetime(2025, 5, 26, 11, 13, 28), 'result': '0.02602303439189305', 'result_long': None, 'result_double': None}] Qualite : 0.02602303439189305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322061 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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}" where mtr_portfolio_id = 23322061 and dashboard_run_id = 1843729 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`=23322061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904281, 0.02602303439189305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, '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 = 23325141 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': 2951447, 'mtr_portfolio_id': 23325141, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 1), 'result': '0.0429633289857965', 'result_long': None, 'result_double': None}] Qualite : 0.0429633289857965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325141 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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}" where mtr_portfolio_id = 23325141 and dashboard_run_id = 1843729 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`=23325141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904282, 0.0429633289857965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, '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 = 23322562 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': 2949854, 'mtr_portfolio_id': 23322562, 'created_at': datetime.datetime(2025, 5, 26, 11, 12, 29), 'result': '0.02768663961105856', 'result_long': None, 'result_double': None}] Qualite : 0.02768663961105856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322562 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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}" where mtr_portfolio_id = 23322562 and dashboard_run_id = 1843729 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`=23322562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904283, 0.02768663961105856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, '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 = 23323551 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': 2950540, 'mtr_portfolio_id': 23323551, 'created_at': datetime.datetime(2025, 5, 26, 9, 5, 30), 'result': '0.04185348961256268', 'result_long': None, 'result_double': None}] Qualite : 0.04185348961256268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323551 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%23323551%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 23323551 and dashboard_run_id = 1843729 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`=23323551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904284, 0.04185348961256268, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}") 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 = 23323111 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': 2950232, 'mtr_portfolio_id': 23323111, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 58), 'result': '0.05436677666639777', 'result_long': None, 'result_double': None}] Qualite : 0.05436677666639777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323111 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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}" where mtr_portfolio_id = 23323111 and dashboard_run_id = 1843729 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`=23323111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904285, 0.05436677666639777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, '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 = 23323520 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': 2950535, 'mtr_portfolio_id': 23323520, 'created_at': datetime.datetime(2025, 5, 26, 9, 3, 28), 'result': '0.05594342227950576', 'result_long': None, 'result_double': None}] Qualite : 0.05594342227950576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323520 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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}" where mtr_portfolio_id = 23323520 and dashboard_run_id = 1843729 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`=23323520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904286, 0.05594342227950576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, '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 = 23323923 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': 2950727, 'mtr_portfolio_id': 23323923, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 29), 'result': '0.02269183291199363', 'result_long': None, 'result_double': None}] Qualite : 0.02269183291199363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323923 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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}" where mtr_portfolio_id = 23323923 and dashboard_run_id = 1843729 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`=23323923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904287, 0.02269183291199363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, '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 = 23324068 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': 2950787, 'mtr_portfolio_id': 23324068, 'created_at': datetime.datetime(2025, 5, 26, 11, 10, 28), 'result': '0.0338376396467845', 'result_long': None, 'result_double': None}] Qualite : 0.0338376396467845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324068 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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}" where mtr_portfolio_id = 23324068 and dashboard_run_id = 1843729 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`=23324068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904288, 0.0338376396467845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, '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 = 23324122 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': 2950845, 'mtr_portfolio_id': 23324122, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 59), 'result': '0.019603365584841985', 'result_long': None, 'result_double': None}] Qualite : 0.019603365584841985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324122 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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}" where mtr_portfolio_id = 23324122 and dashboard_run_id = 1843729 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`=23324122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904289, 0.019603365584841985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, '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 = 23324402 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': 2951013, 'mtr_portfolio_id': 23324402, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 28), 'result': '0.017948956951831813', 'result_long': None, 'result_double': None}] Qualite : 0.017948956951831813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324402 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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}" where mtr_portfolio_id = 23324402 and dashboard_run_id = 1843729 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`=23324402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904290, 0.017948956951831813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, '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 = 23324563 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': 2951108, 'mtr_portfolio_id': 23324563, 'created_at': datetime.datetime(2025, 5, 26, 11, 9), 'result': '0.012910999500873472', 'result_long': None, 'result_double': None}] Qualite : 0.012910999500873472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324563 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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}" where mtr_portfolio_id = 23324563 and dashboard_run_id = 1843729 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`=23324563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904291, 0.012910999500873472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, '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 = 23325143 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': 2951448, 'mtr_portfolio_id': 23325143, 'created_at': datetime.datetime(2025, 5, 26, 11, 6, 32), 'result': '0.0803310808757231', 'result_long': None, 'result_double': None}] Qualite : 0.0803310808757231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325143 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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}" where mtr_portfolio_id = 23325143 and dashboard_run_id = 1843729 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`=23325143 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904292, 0.0803310808757231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, '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 = 23325201 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': 2951498, 'mtr_portfolio_id': 23325201, 'created_at': datetime.datetime(2025, 5, 26, 11, 19, 33), 'result': '0.052389026009317004', 'result_long': None, 'result_double': None}] Qualite : 0.052389026009317004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325201 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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}" where mtr_portfolio_id = 23325201 and dashboard_run_id = 1843729 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`=23325201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904293, 0.052389026009317004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, '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 = 23325821 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': 2951771, 'mtr_portfolio_id': 23325821, 'created_at': datetime.datetime(2025, 5, 26, 11, 33, 58), 'result': '0.04660843160354288', 'result_long': None, 'result_double': None}] Qualite : 0.04660843160354288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325821 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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}" where mtr_portfolio_id = 23325821 and dashboard_run_id = 1843729 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`=23325821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904294, 0.04660843160354288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, '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 = 23326708 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': 2952066, 'mtr_portfolio_id': 23326708, 'created_at': datetime.datetime(2025, 5, 26, 11, 47), 'result': '0.04892546956012179', 'result_long': None, 'result_double': None}] Qualite : 0.04892546956012179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23326708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23326708 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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}" where mtr_portfolio_id = 23326708 and dashboard_run_id = 1843729 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`=23326708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904295, 0.04892546956012179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, '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 = 23327651 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': 2952347, 'mtr_portfolio_id': 23327651, 'created_at': datetime.datetime(2025, 5, 26, 12, 2, 59), 'result': '0.0399187429071831', 'result_long': None, 'result_double': None}] Qualite : 0.0399187429071831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23327651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23327651 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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}" where mtr_portfolio_id = 23327651 and dashboard_run_id = 1843729 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`=23327651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904296, 0.0399187429071831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, '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 = 23328708 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': 2952662, 'mtr_portfolio_id': 23328708, 'created_at': datetime.datetime(2025, 5, 26, 13, 59, 58), 'result': '0.05322573463366244', 'result_long': None, 'result_double': None}] Qualite : 0.05322573463366244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23328708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23328708 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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}" where mtr_portfolio_id = 23328708 and dashboard_run_id = 1843729 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`=23328708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904297, 0.05322573463366244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, '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 = 23335603 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': 2953477, 'mtr_portfolio_id': 23335603, 'created_at': datetime.datetime(2025, 5, 26, 13, 48, 59), 'result': '0.04992283243862639', 'result_long': None, 'result_double': None}] Qualite : 0.04992283243862639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23335603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23335603 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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}" where mtr_portfolio_id = 23335603 and dashboard_run_id = 1843729 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`=23335603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904298, 0.04992283243862639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, '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 = 23336428 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': 2953526, 'mtr_portfolio_id': 23336428, 'created_at': datetime.datetime(2025, 5, 26, 14, 2, 59), 'result': '0.04674909162262245', 'result_long': None, 'result_double': None}] Qualite : 0.04674909162262245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336428 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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}" where mtr_portfolio_id = 23336428 and dashboard_run_id = 1843729 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`=23336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904299, 0.04674909162262245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, '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 = 23336675 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': 2953614, 'mtr_portfolio_id': 23336675, 'created_at': datetime.datetime(2025, 5, 26, 14, 16, 28), 'result': '0.03821279076052263', 'result_long': None, 'result_double': None}] Qualite : 0.03821279076052263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_16_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336675 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_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, 'pht': 3726}}" where mtr_portfolio_id = 23336675 and dashboard_run_id = 1843729 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`=23336675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904300, 0.03821279076052263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, '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 = 23337140 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': 2953738, 'mtr_portfolio_id': 23337140, 'created_at': datetime.datetime(2025, 5, 26, 14, 33), 'result': '0.05430029501819769', 'result_long': None, 'result_double': None}] Qualite : 0.05430029501819769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23337140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23337140 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_P23337140_26-05-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, 'pht': 3726}}" where mtr_portfolio_id = 23337140 and dashboard_run_id = 1843729 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`=23337140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904301, 0.05430029501819769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, '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 = 23337584 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': 2953870, 'mtr_portfolio_id': 23337584, 'created_at': datetime.datetime(2025, 5, 26, 14, 47), 'result': '0.07232789105174764', 'result_long': None, 'result_double': None}] Qualite : 0.07232789105174764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23337584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337584_26-05-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23337584 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_P23337584_26-05-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337683, 'pht': 3726}}" where mtr_portfolio_id = 23337584 and dashboard_run_id = 1843729 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`=23337584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904302, 0.07232789105174764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337584_26-05-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337683, '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 = 23338342 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': 2954097, 'mtr_portfolio_id': 23338342, 'created_at': datetime.datetime(2025, 5, 26, 15, 2, 59), 'result': '0.016223060929684962', 'result_long': None, 'result_double': None}] Qualite : 0.016223060929684962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23338342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23338342_26-05-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23338342 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_P23338342_26-05-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338427, 'pht': 3726}}" where mtr_portfolio_id = 23338342 and dashboard_run_id = 1843729 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`=23338342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904303, 0.016223060929684962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23338342_26-05-2025_15_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338427, '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 = 23338959 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': 2954362, 'mtr_portfolio_id': 23338959, 'created_at': datetime.datetime(2025, 5, 26, 15, 16, 58), 'result': '0.01522348392899425', 'result_long': None, 'result_double': None}] Qualite : 0.01522348392899425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23338959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23338959_26-05-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23338959 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_P23338959_26-05-2025_15_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338997, 'pht': 3726}}" where mtr_portfolio_id = 23338959 and dashboard_run_id = 1843729 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`=23338959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904304, 0.01522348392899425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23338959_26-05-2025_15_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23338989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338997, '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 = 23339784 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': 2954636, 'mtr_portfolio_id': 23339784, 'created_at': datetime.datetime(2025, 5, 26, 15, 33, 28), 'result': '0.05866625392390494', 'result_long': None, 'result_double': None}] Qualite : 0.05866625392390494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23339784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23339784_26-05-2025_15_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23339784 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_P23339784_26-05-2025_15_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23339797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23339798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23339799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23339800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23339801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23339802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23339803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23339804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23339805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23339806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23339807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23339808, 'pht': 3726}}" where mtr_portfolio_id = 23339784 and dashboard_run_id = 1843729 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`=23339784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904305, 0.05866625392390494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23339784_26-05-2025_15_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23339797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23339798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23339799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23339800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23339801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23339802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23339803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23339804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23339805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23339806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23339807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23339808, '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 = 23340603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23340603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23340603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23340603_26-05-2025_15_44_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23340603 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_P23340603_26-05-2025_15_44_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23340654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23340655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23340656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23340657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23340658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23340659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23340660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23340661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23340662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23340663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23340664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23340665, 'pht': 3726}}" where mtr_portfolio_id = 23340603 and dashboard_run_id = 1843729 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 = 23341849 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': 2955032, 'mtr_portfolio_id': 23341849, 'created_at': datetime.datetime(2025, 5, 26, 16, 8, 30), 'result': '0.036049558345241844', 'result_long': None, 'result_double': None}] Qualite : 0.036049558345241844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23341849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23341849_26-05-2025_16_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23341849 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_P23341849_26-05-2025_16_08_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23341874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23341875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23341876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23341877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23341878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23341879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23341880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23341881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23341882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23341883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23341884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23341885, 'pht': 3726}}" where mtr_portfolio_id = 23341849 and dashboard_run_id = 1843729 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`=23341849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904307, 0.036049558345241844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23341849_26-05-2025_16_08_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23341874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23341875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23341876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23341877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23341878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23341879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23341880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23341881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23341882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23341883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23341884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23341885, '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 = 23342696 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': 2955207, 'mtr_portfolio_id': 23342696, 'created_at': datetime.datetime(2025, 5, 26, 16, 18, 30), 'result': '0.007210281354912743', 'result_long': None, 'result_double': None}] Qualite : 0.007210281354912743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23342696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23342696_26-05-2025_16_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23342696 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_P23342696_26-05-2025_16_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23342715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23342716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23342717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23342718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23342719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23342720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23342721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23342722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23342723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23342724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23342725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23342726, 'pht': 3726}}" where mtr_portfolio_id = 23342696 and dashboard_run_id = 1843729 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`=23342696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904308, 0.007210281354912743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23342696_26-05-2025_16_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23342715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23342716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23342717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23342718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23342719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23342720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23342721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23342722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23342723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23342724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23342725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23342726, '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 = 23343720 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': 2955393, 'mtr_portfolio_id': 23343720, 'created_at': datetime.datetime(2025, 5, 26, 16, 32, 58), 'result': '0.02103044581980993', 'result_long': None, 'result_double': None}] Qualite : 0.02103044581980993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23343720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23343720_26-05-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23343720 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_P23343720_26-05-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23343733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23343734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23343735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23343736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23343737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23343738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23343739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23343740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23343741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23343742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23343743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23343744, 'pht': 3726}}" where mtr_portfolio_id = 23343720 and dashboard_run_id = 1843729 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`=23343720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904309, 0.02103044581980993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23343720_26-05-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23343733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23343734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23343735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23343736, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23343737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23343738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23343739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23343740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23343741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23343742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23343743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23343744, '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 = 23344558 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': 2955588, 'mtr_portfolio_id': 23344558, 'created_at': datetime.datetime(2025, 5, 26, 16, 48, 30), 'result': '0.037013649081733144', 'result_long': None, 'result_double': None}] Qualite : 0.037013649081733144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23344558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23344558_26-05-2025_16_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23344558 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_P23344558_26-05-2025_16_48_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23344613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23344614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23344615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23344616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23344617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23344618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23344619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23344623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23344627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23344633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23344636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23344637, 'pht': 3726}}" where mtr_portfolio_id = 23344558 and dashboard_run_id = 1843729 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`=23344558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904310, 0.037013649081733144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23344558_26-05-2025_16_48_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23344613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23344614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23344615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23344616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23344617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23344618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23344619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23344623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23344627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23344633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23344636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23344637, '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 = 23345875 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': 2955854, 'mtr_portfolio_id': 23345875, 'created_at': datetime.datetime(2025, 5, 26, 17, 3), 'result': '0.05290810422016995', 'result_long': None, 'result_double': None}] Qualite : 0.05290810422016995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23345875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23345875_26-05-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23345875 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_P23345875_26-05-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23345888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23345889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23345890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23345891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23345892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23345893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23345894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23345895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23345896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23345897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23345898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23345899, 'pht': 3726}}" where mtr_portfolio_id = 23345875 and dashboard_run_id = 1843729 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`=23345875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904311, 0.05290810422016995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23345875_26-05-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23345888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23345889, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23345890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23345891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23345892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23345893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23345894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23345895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23345896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23345897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23345898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23345899, '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 = 23346652 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': 2956066, 'mtr_portfolio_id': 23346652, 'created_at': datetime.datetime(2025, 5, 26, 17, 14, 30), 'result': '0.03479750613411337', 'result_long': None, 'result_double': None}] Qualite : 0.03479750613411337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23346652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23346652_26-05-2025_17_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23346652 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_P23346652_26-05-2025_17_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23346691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23346692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23346694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23346695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23346696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23346697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23346698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23346699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23346700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23346701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23346702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23346703, 'pht': 3726}}" where mtr_portfolio_id = 23346652 and dashboard_run_id = 1843729 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`=23346652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10904312, 0.03479750613411337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23346652_26-05-2025_17_14_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23346691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23346692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23346694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23346695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23346696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23346697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23346698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23346699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23346700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23346701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23346702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23346703, '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 (23319692,23319847,23320077,23325134,23320531,23321016,23325136,23321495,23321641,23325138,23322061,23325141,23322562,23323551,23323111,23323520,23323923,23324068,23324122,23324402,23324563,23325143,23325201,23325821,23326708,23327651,23328708,23335603,23336428,23336675,23337140,23337584,23338342,23338959,23339784,23340603,23341849,23342696,23343720,23344558,23345875,23346652) result : ((1361037641,), (1361037643,), (1361037662,), (1361037664,), (1361037666,), (1361037694,), (1361037721,), (1361037723,), (1361037725,), (1361037727,), (1361037747,), (1361037749,), (1361037751,), (1361037753,), (1361037776,), (1361037778,), (1361037780,), (1361037795,), (1361037797,), (1361037799,), (1361037801,), (1361037803,), (1361037804,), (1361037813,), (1361037816,), (1361037818,), (1361037821,), (1361037824,), (1361037827,), (1361037836,), (1361037838,), (1361037840,), (1361037842,), (1361037858,), (1361037859,), (1361037860,), (1361037861,), (1361037862,), (1361037863,), (1361037876,), (1361037878,), (1361037880,), (1361037882,), (1361037884,), (1361037895,), (1361037897,), (1361037899,), (1361037901,), (1361037903,), (1361037915,), (1361037918,), (1361037920,), (1361037922,), (1361037925,), (1361037955,), (1361037947,), (1361037948,), (1361037949,), (1361037951,), (1361037953,), (1361037970,), (1361037972,), (1361037974,), (1361037986,), (1361037988,), (1361037990,), (1361037992,), (1361037994,), (1361038010,), (1361038013,), (1361038015,), (1361038036,), (1361038038,), (1361038040,), (1361038042,), (1361038044,), (1361038046,), (1361038055,), (1361038057,), (1361038059,), (1361038061,), (1361038092,), (1361038094,), (1361038096,), (1361038108,), (1361038110,), (1361038112,), (1361038114,), (1361038116,), (1361038118,), (1361038127,), (1361038129,), (1361038131,), (1361038150,), (1361038152,), (1361038154,), (1361038156,), (1361038159,), (1361038176,), (1361038178,), (1361038179,), (1361038181,), (1361038183,), (1361038193,), (1361038195,), (1361038197,), (1361038208,), (1361038210,), (1361038212,), (1361038214,), (1361038217,), (1361038218,), (1361038232,), (1361038234,), (1361038237,), (1361038272,), (1361038258,), (1361038260,), (1361038263,), (1361038266,), (1361038269,), (1361038294,), (1361038296,), (1361038298,), (1361038300,), (1361038302,), (1361038304,), (1361038313,), (1361038315,), (1361038317,), (1361038319,), (1361038321,), (1361038332,), (1361038334,), (1361038336,), (1361038338,), (1361038340,), (1361038342,), (1361038352,), (1361038354,), (1361038356,), (1361038358,), (1361038371,), (1361038373,), (1361038375,), (1361038377,), (1361038379,), (1361038395,), (1361038398,), (1361038401,), (1361038403,), (1361038416,), (1361038419,), (1361038422,), (1361038425,), (1361038428,), (1361038429,), (1361038441,), (1361038443,), (1361038445,), (1361038447,), (1361038449,), (1361038451,), (1361038464,), (1361038467,), (1361038469,), (1361038472,), (1361038489,), (1361038491,), (1361038493,), (1361038495,), (1361038497,), (1361038499,), (1361038509,), (1361038511,), (1361038513,), (1361038515,), (1361038517,), (1361038527,), (1361038528,), (1361038529,), (1361038530,), (1361038531,), (1361038532,), (1361038544,), (1361038546,), (1361038548,), (1361038564,), (1361038566,), (1361038569,), (1361038571,), (1361038574,), (1361038576,), (1361038601,), (1361038918,), (1361038919,), (1361038920,), (1361038941,), (1361038943,), (1361038945,), (1361038965,), (1361038967,), (1361038969,), (1361038971,), (1361038990,), (1361039024,), (1361039025,), (1361039057,), (1361039059,), (1361039061,), (1361039063,), (1361039065,), (1361039067,), (1361039084,), (1361039086,), (1361039089,), (1361039102,), (1361039104,), (1361039106,), (1361039126,), (1361039129,), (1361039132,), (1361039135,), (1361039138,), (1361039140,), (1361039158,), (1361039161,), (1361039164,), (1361039188,), (1361039192,), (1361039195,), (1361039198,), (1361039203,), (1361039206,), (1361039222,), (1361039225,), (1361039229,), (1361039232,), (1361039236,), (1361039239,), (1361039258,), (1361039260,), (1361039262,), (1361039264,), (1361039288,), (1361039291,), (1361039294,), (1361039297,), (1361039300,), (1361039304,), (1361039325,), (1361039332,), (1361039334,), (1361039338,), (1361039381,), (1361039365,), (1361039368,), (1361039371,), (1361039374,), (1361039378,), (1361039406,), (1361039409,), (1361039412,), (1361039415,), (1361039442,), (1361039446,), (1361039449,), (1361039453,), (1361039457,), (1361039474,), (1361039476,), (1361039478,), (1361039480,), (1361039483,), (1361039507,), (1361039509,), (1361039511,), (1361039513,), (1361039515,), (1361039533,), (1361039535,), (1361039537,), (1361039539,), (1361039541,), (1361039543,), (1361039558,), (1361039561,), (1361039564,), (1361039592,), (1361039595,), (1361039598,), (1361039601,), (1361039604,), (1361039608,), (1361039630,), (1361039631,), (1361039632,), (1361039633,), (1361039635,), (1361039639,), (1361039658,), (1361039661,), (1361039664,), (1361039697,), (1361039699,), (1361039701,), (1361039704,), (1361039709,), (1361039714,), (1361039744,), (1361039748,), (1361039750,), (1361039776,), (1361039779,), (1361039781,), (1361039783,), (1361039787,), (1361039790,), (1361039815,), (1361039818,), (1361039821,), (1361039824,), (1361039827,), (1361039853,), (1361039855,), (1361039858,), (1361039860,), (1361039863,), (1361039867,), (1361039895,), (1361040417,), (1361040420,), (1361040423,), (1361040427,), (1361040431,), (1361040450,), (1361040451,), (1361040453,), (1361040456,), (1361040459,), (1361040481,), (1361040484,), (1361040487,), (1361040491,), (1361040495,), (1361040520,), (1361040522,), (1361040524,), (1361040526,), (1361040528,), (1361040531,), (1361040555,), (1361040557,), (1361040560,), (1361040564,), (1361040590,), (1361040593,), (1361040596,), (1361040600,), (1361040605,), (1361040611,), (1361040633,), (1361040635,), (1361040637,), (1361040640,), (1361040643,), (1361040666,), (1361040669,), (1361040672,), (1361040676,), (1361040680,), (1361040706,), (1361040708,), (1361040710,), (1361040713,), (1361040716,), (1361040741,), (1361040744,), (1361040747,), (1361040751,), (1361040756,), (1361040779,), (1361040781,), (1361040783,), (1361040786,), (1361040788,), (1361040810,), (1361040813,), (1361040816,), (1361040820,), (1361040824,), (1361040847,), (1361040849,), (1361040851,), (1361040854,), (1361040881,), (1361040885,), (1361040889,), (1361040892,), (1361040894,), (1361040897,), (1361040936,), (1361040924,), (1361040926,), (1361040928,), (1361040931,), (1361040954,), (1361040956,), (1361040959,), (1361040963,), (1361040967,), (1361040972,), (1361041002,), (1361041006,), (1361041009,), (1361041012,), (1361041040,), (1361041045,), (1361041054,), (1361041063,), (1361041074,), (1361041077,), (1361041096,), (1361041098,), (1361041101,), (1361041105,), (1361041136,), (1361041139,), (1361041143,), (1361041146,), (1361041149,), (1361041153,), (1361041173,), (1361041177,), (1361041181,), (1361041205,), (1361041207,), (1361041210,), (1361041214,), (1361041221,), (1361041225,), (1361041241,), (1361041243,), (1361041246,), (1361041250,), (1361041273,), (1361041275,), (1361041278,), (1361041282,), (1361041286,), (1361041291,), (1361041317,), (1361041321,), (1361041325,), (1361041328,), (1361041332,), (1361041336,), (1361041363,), (1361041365,), (1361041368,), (1361041372,), (1361041399,), (1361041402,), (1361041406,), (1361041410,), (1361041414,), (1361041417,), (1361041432,), (1361041434,), (1361041437,), (1361041441,), (1361041461,), (1361041465,), (1361041470,), (1361041517,), (1361042075,), (1361042078,), (1361042082,), (1361042115,), (1361042117,), (1361042120,), (1361042124,), (1361042128,), (1361042132,), (1361042147,), (1361042149,), (1361042152,), (1361042178,), (1361042180,), (1361042183,), (1361042187,), (1361042190,), (1361042195,), (1361042215,), (1361042217,), (1361042220,), (1361042224,), (1361042229,), (1361042247,), (1361042249,), (1361042252,), (1361042256,), (1361042260,), (1361042265,), (1361042279,), (1361042282,), (1361042285,), (1361042289,), (1361042308,), (1361042313,), (1361042317,), (1361042320,), (1361042325,), (1361042329,), (1361042345,), (1361042347,), (1361042350,), (1361042354,), (1361042374,), (1361042375,), (1361042377,), (1361042380,), (1361042383,), (1361042386,), (1361042402,), (1361042404,), (1361042407,), (1361042411,), (1361042433,), (1361042435,), (1361042438,), (1361042442,), (1361042460,), (1361042464,), (1361042468,), (1361042472,), (1361042478,), (1361042483,), (1361042500,), (1361042503,), (1361042507,), (1361042510,), (1361042536,), (1361042539,), (1361042543,), (1361042546,), (1361042552,), (1361042557,), (1361042585,), (1361043222,), (1361043228,), (1361043233,), (1361043271,), (1361043275,), (1361043280,), (1361043283,), (1361043286,), (1361043308,), (1361043310,), (1361043313,), (1361043317,), (1361043320,), (1361043324,), (1361043348,), (1361043350,), (1361043353,), (1361043357,), (1361043361,), (1361043386,), (1361043390,), (1361043392,), (1361043395,), (1361043399,), (1361043425,), (1361043427,), (1361043430,), (1361043434,), (1361043439,), (1361043480,), (1361043483,), (1361043487,), (1361043492,), (1361043495,), (1361043528,), (1361043532,), (1361043535,), (1361043538,), (1361043543,), (1361043568,), (1361043572,), (1361043576,), (1361043581,), (1361043585,), (1361043614,), (1361043616,), (1361043619,), (1361043622,), (1361043679,), (1361043681,), (1361043684,), (1361043688,), (1361043695,), (1361043698,), (1361043711,), (1361043713,), (1361043716,), (1361043751,), (1361043754,), (1361043758,), (1361043763,), (1361043767,), (1361043773,), (1361043813,), (1361043815,), (1361043818,), (1361043822,), (1361043847,), (1361043850,), (1361043854,), (1361043857,), (1361043861,), (1361043865,), (1361043892,), (1361044591,), (1361044593,), (1361044596,), (1361044599,), (1361044634,), (1361044637,), (1361044641,), (1361044645,), (1361044649,), (1361044653,), (1361044676,), (1361044678,), (1361044681,), (1361044685,), (1361044723,), (1361044725,), (1361044728,), (1361044732,), (1361044738,), (1361044742,), (1361044766,), (1361044768,), (1361044770,), (1361044774,), (1361044800,), (1361044803,), (1361044806,), (1361044811,), (1361044815,), (1361044820,), (1361044841,), (1361044843,), (1361044846,), (1361044850,), (1361044883,), (1361044887,), (1361044892,), (1361044895,), (1361044900,), (1361044906,), (1361044929,), (1361044932,), (1361044935,), (1361044939,), (1361044965,), (1361044970,), (1361044975,), (1361044981,), (1361044987,), (1361044996,), (1361045058,), (1361045061,), (1361045064,), (1361045067,), (1361045110,), (1361045112,), (1361045115,), (1361045118,), (1361045121,), (1361045145,), (1361045147,), (1361045150,), (1361045154,), (1361045158,), (1361045178,), (1361045180,), (1361045183,), (1361045187,), (1361045213,), (1361045216,), (1361045219,), (1361045222,), (1361045225,), (1361045267,), (1361045251,), (1361045253,), (1361045256,), (1361045260,), (1361045263,), (1361045288,), (1361045291,), (1361045293,), (1361045297,), (1361045324,), (1361045325,), (1361045326,), (1361045328,), (1361045331,), (1361045335,), (1361045359,), (1361045363,), (1361045367,), (1361045371,), (1361045401,), (1361045405,), (1361045410,), (1361045415,), (1361045420,), (1361045488,), (1361045498,), (1361045501,), (1361045503,), (1361045533,), (1361045537,), (1361045541,), (1361045545,), (1361045549,), (1361045577,), (1361045580,), (1361045583,), (1361045586,), (1361045589,), (1361045595,), (1361045636,), (1361045640,), (1361045643,), (1361045692,), (1361045697,), (1361045702,), (1361045707,), (1361045713,), (1361045718,), (1361045742,), (1361045745,), (1361045748,), (1361045787,), (1361045790,), (1361045793,), (1361045799,), (1361045805,), (1361045808,), (1361045827,), (1361045830,), (1361045833,), (1361045874,), (1361045879,), (1361045883,), (1361045889,), (1361045893,), (1361045900,), (1361045948,), (1361043882,), (1361043885,), (1361043888,), (1361043918,), (1361043920,), (1361043923,), (1361043927,), (1361043932,), (1361043937,), (1361043959,), (1361043962,), (1361043966,), (1361043970,), (1361043999,), (1361044002,), (1361044005,), (1361044009,), (1361044013,), (1361044020,), (1361044058,), (1361044064,), (1361044070,), (1361044073,), (1361044151,), (1361044155,), (1361044158,), (1361044162,), (1361044166,), (1361044171,), (1361044188,), (1361044191,), (1361044194,), (1361044198,), (1361044231,), (1361044233,), (1361044235,), (1361044238,), (1361044242,), (1361044269,), (1361044271,), (1361044274,), (1361044278,), (1361044281,), (1361044304,), (1361044308,), (1361044310,), (1361044313,), (1361044316,), (1361044344,), (1361044348,), (1361044354,), (1361044361,), (1361044365,), (1361044371,), (1361044398,), (1361044400,), (1361044403,), (1361044407,), (1361044439,), (1361044442,), (1361044446,), (1361044451,), (1361044456,), (1361044460,), (1361044482,), (1361044484,), (1361044487,), (1361044491,), (1361044531,), (1361044535,), (1361044602,), (1361047251,), (1361047255,), (1361047260,), (1361047302,), (1361047304,), (1361047307,), (1361047310,), (1361047350,), (1361047353,), (1361047357,), (1361047360,), (1361047364,), (1361047367,), (1361047396,), (1361047399,), (1361047402,), (1361047427,), (1361047431,), (1361047435,), (1361047439,), (1361047442,), (1361047472,), (1361047473,), (1361047475,), (1361047478,), (1361047482,), (1361047516,), (1361047519,), (1361047527,), (1361047531,), (1361047534,), (1361047537,), (1361047557,), (1361047559,), (1361047560,), (1361047564,), (1361047567,), (1361047593,), (1361047600,), (1361047605,), (1361047610,), (1361047616,), (1361047621,), (1361047651,), (1361047655,), (1361047657,), (1361047663,), (1361047704,), (1361047707,), (1361047710,), (1361047714,), (1361047717,), (1361047725,), (1361047753,), (1361047756,), (1361047759,), (1361047764,), (1361047789,), (1361047791,), (1361047795,), (1361047799,), (1361047802,), (1361047807,), (1361047830,), (1361047832,), (1361047835,), (1361047839,), (1361047874,), (1361047856,), (1361047862,), (1361047865,), (1361047868,), (1361047871,), (1361047890,), (1361047893,), (1361047897,), (1361047900,), (1361047903,), (1361047920,), (1361047980,), (1361048029,), (1361048063,), (1361048066,), (1361048068,), (1361048071,), (1361048098,), (1361048100,), (1361048103,), (1361048107,), (1361048114,), (1361048116,), (1361048131,), (1361048132,), (1361048135,), (1361048139,), (1361048173,), (1361048175,), (1361048177,), (1361048182,), (1361048186,), (1361048190,), (1361048208,), (1361048210,), (1361048212,), (1361048215,), (1361048222,), (1361048223,), (1361048233,), (1361048237,), (1361048239,), (1361048242,), (1361048261,), (1361048264,), (1361048268,), (1361048271,), (1361048275,), (1361048279,), (1361048305,), (1361048311,), (1361048316,), (1361048321,), (1361048334,), (1361048337,), (1361048339,), (1361048341,), (1361048346,), (1361048399,), (1361048381,), (1361048386,), (1361048389,), (1361048392,), (1361048396,), (1361048435,), (1361048437,), (1361048438,), (1361048440,), (1361048473,), (1361048476,), (1361048479,), (1361048484,), (1361048489,), (1361048524,), (1361048527,), (1361048530,), (1361048533,), (1361048538,), (1361048543,), (1361048578,), (1361048581,), (1361048585,), (1361048593,), (1361048635,), (1361048638,), (1361048641,), (1361048644,), (1361048647,), (1361048652,), (1361048685,), (1361048688,), (1361048692,), (1361048696,), (1361048701,), (1361048720,), (1361048723,), (1361048726,), (1361048728,), (1361048732,), (1361048735,), (1361048757,), (1361048760,), (1361048764,), (1361048768,), (1361048796,), (1361048800,), (1361048804,), (1361048807,), (1361048810,), (1361048813,), (1361048842,), (1361048846,), (1361048849,), (1361048851,), (1361048853,), (1361048881,), (1361048884,), (1361048886,), (1361048893,), (1361048898,), (1361048902,), (1361048920,), (1361048927,), (1361048932,), (1361048938,), (1361048943,), (1361048972,), (1361048975,), (1361048979,), (1361048983,), (1361048989,), (1361048994,), (1361049014,), (1361049018,), (1361049024,), (1361049028,), (1361049035,), (1361049088,), (1361049069,), (1361049072,), (1361049079,), (1361049083,), (1361049117,), (1361049119,), (1361049123,), (1361049127,), (1361049132,), (1361049164,), (1361049168,), (1361049170,), (1361049172,), (1361049175,), (1361049198,), (1361049201,), (1361049204,), (1361049209,), (1361049213,), (1361049229,), (1361049235,), (1361049239,), (1361049248,), (1361049253,), (1361049257,), (1361049281,), (1361049284,), (1361049287,), (1361049328,), (1361049331,), (1361049335,), (1361049340,), (1361049344,), (1361049347,), (1361049365,), (1361049376,), (1361049379,), (1361049383,), (1361049387,), (1361049405,), (1361049408,), (1361049414,), (1361049420,), (1361049425,), (1361049427,), (1361049444,), (1361049447,), (1361049452,), (1361049458,), (1361049500,), (1361049504,), (1361049508,), (1361049509,), (1361049517,), (1361049522,), (1361049552,), (1361049555,), (1361049560,), (1361049565,), (1361049571,), (1361049595,), (1361049596,), (1361049601,), (1361049606,), (1361049611,), (1361049617,), (1361049638,), (1361049641,), (1361049646,), (1361049651,), (1361049675,), (1361049685,), (1361049690,), (1361049697,), (1361049703,), (1361049705,), (1361049747,), (1361049737,), (1361049744,), (1361049780,), (1361049788,), (1361049791,), (1361049797,), (1361049802,), (1361049807,), (1361049834,), (1361049836,), (1361049839,), (1361049881,), (1361049884,), (1361049887,), (1361049890,), (1361049892,), (1361049898,), (1361049926,), (1361049929,), (1361049935,), (1361049984,), (1361049986,), (1361049989,), (1361049993,), (1361049996,), (1361050001,), (1361050019,), (1361050022,), (1361050026,), (1361050065,), (1361050069,), (1361050072,), (1361050077,), (1361050080,), (1361050084,), (1361050112,), (1361050115,), (1361050119,), (1361050124,), (1361050129,), (1361050166,), (1361050169,), (1361050172,), (1361050181,), (1361050187,), (1361050263,), (1361050268,), (1361050272,), (1361050277,), (1361050283,), (1361050287,), (1361050315,), (1361050317,), (1361050320,), (1361050371,), (1361050374,), (1361050378,), (1361050383,), (1361050385,), (1361050391,), (1361050427,), (1361050430,), (1361050432,), (1361050436,), (1361050440,), (1361050472,), (1361050476,), (1361050481,), (1361050486,), (1361050491,), (1361050497,), (1361050529,), (1361038597,), (1361038599,), (1361038616,), (1361038618,), (1361038620,), (1361038622,), (1361038624,), (1361038641,), (1361038643,), (1361038645,), (1361038647,), (1361038649,), (1361038651,), (1361038667,), (1361038670,), (1361038672,), (1361038674,), (1361038690,), (1361038692,), (1361038694,), (1361038696,), (1361038698,), (1361038700,), (1361038711,), (1361038713,), (1361038715,), (1361038717,), (1361038730,), (1361038732,), (1361038734,), (1361038736,), (1361038738,), (1361038740,), (1361038754,), (1361038756,), (1361038758,), (1361038783,), (1361038785,), (1361038787,), (1361038789,), (1361038792,), (1361038795,), (1361038809,), (1361038811,), (1361038813,), (1361038815,), (1361038827,), (1361038829,), (1361038831,), (1361038833,), (1361038835,), (1361038837,), (1361038843,), (1361038851,), (1361038854,), (1361038855,), (1361038863,), (1361038865,), (1361038867,), (1361038869,), (1361038871,), (1361038884,), (1361038887,), (1361038890,), (1361038893,), (1361038898,), (1361038899,), (1361038900,), (1361038902,), (1361038907,), (1361038921,), (1361039881,), (1361039884,), (1361039887,), (1361039891,), (1361039918,), (1361039920,), (1361039922,), (1361039924,), (1361039925,), (1361039950,), (1361039953,), (1361039956,), (1361039960,), (1361039963,), (1361039995,), (1361039997,), (1361039999,), (1361040030,), (1361040032,), (1361040035,), (1361040038,), (1361040042,), (1361040046,), (1361040067,), (1361040070,), (1361040073,), (1361040108,), (1361040112,), (1361040115,), (1361040119,), (1361040125,), (1361040130,), (1361040153,), (1361040156,), (1361040159,), (1361040192,), (1361040194,), (1361040196,), (1361040199,), (1361040203,), (1361040222,), (1361040225,), (1361040228,), (1361040232,), (1361040236,), (1361040264,), (1361040266,), (1361040268,), (1361040271,), (1361040293,), (1361040296,), (1361040299,), (1361040303,), (1361040307,), (1361040310,), (1361040329,), (1361040331,), (1361040333,), (1361040337,), (1361040356,), (1361040359,), (1361040362,), (1361040366,), (1361040370,), (1361040374,), (1361040392,), (1361040395,), (1361040397,), (1361040399,), (1361040401,), (1361040433,), (1361041498,), (1361041501,), (1361041505,), (1361041508,), (1361041514,), (1361041529,), (1361041530,), (1361041533,), (1361041537,), (1361041579,), (1361041581,), (1361041584,), (1361041588,), (1361041591,), (1361041597,), (1361041622,), (1361041624,), (1361041627,), (1361041631,), (1361041668,), (1361041670,), (1361041673,), (1361041677,), (1361041680,), (1361041684,), (1361041728,), (1361041732,), (1361041736,), (1361041742,), (1361041747,), (1361041768,), (1361041771,), (1361041777,), (1361041782,), (1361041785,), (1361041795,), (1361041797,), (1361041800,), (1361041804,), (1361041806,), (1361041830,), (1361041836,), (1361041842,), (1361041848,), (1361041865,), (1361041867,), (1361041870,), (1361041874,), (1361041877,), (1361041882,), (1361041900,), (1361041902,), (1361041905,), (1361041909,), (1361041912,), (1361041917,), (1361041935,), (1361041937,), (1361041940,), (1361041944,), (1361041968,), (1361041971,), (1361041974,), (1361041977,), (1361041981,), (1361041997,), (1361042000,), (1361042003,), (1361042007,), (1361042030,), (1361042034,), (1361042038,), (1361042043,), (1361042047,), (1361042053,), (1361042086,), (1361042576,), (1361042579,), (1361042582,), (1361042612,), (1361042616,), (1361042620,), (1361042625,), (1361042630,), (1361042633,), (1361042657,), (1361042660,), (1361042664,), (1361042669,), (1361042692,), (1361042695,), (1361042698,), (1361042701,), (1361042704,), (1361042727,), (1361042729,), (1361042733,), (1361042762,), (1361042764,), (1361042767,), (1361042769,), (1361042805,), (1361042808,), (1361042852,), (1361042855,), (1361042858,), (1361042862,), (1361042865,), (1361042871,), (1361042899,), (1361042901,), (1361042905,), (1361042910,), (1361042914,), (1361042918,), (1361042945,), (1361042948,), (1361042952,), (1361042957,), (1361042986,), (1361042999,), (1361043003,), (1361043010,), (1361043015,), (1361043019,), (1361043037,), (1361043040,), (1361043044,), (1361043049,), (1361043055,), (1361043077,), (1361043081,), (1361043085,), (1361043089,), (1361043095,), (1361043152,), (1361043158,), (1361043167,), (1361043174,), (1361043180,), (1361043238,), (1361050520,), (1361050522,), (1361050525,), (1361050562,), (1361050565,), (1361050569,), (1361050574,), (1361050580,), (1361050586,), (1361050613,), (1361050616,), (1361050619,), (1361050624,), (1361050664,), (1361050668,), (1361050673,), (1361050677,), (1361050682,), (1361050691,), (1361050725,), (1361050730,), (1361050736,), (1361050742,), (1361050750,), (1361050808,), (1361050811,), (1361050815,), (1361050820,), (1361050825,), (1361050855,), (1361050858,), (1361050861,), (1361050863,), (1361050867,), (1361050870,), (1361050894,), (1361050896,), (1361050898,), (1361050901,), (1361050906,), (1361050933,), (1361050936,), (1361050940,), (1361050945,), (1361050950,), (1361050955,), (1361050978,), (1361050979,), (1361050981,), (1361050984,), (1361051007,), (1361051010,), (1361051015,), (1361051021,), (1361051024,), (1361051031,), (1361051055,), (1361051058,), (1361051061,), (1361051064,), (1361051094,), (1361051096,), (1361051101,), (1361051106,), (1361051111,), (1361051116,), (1361051161,), (1361051166,), (1361051174,), (1361051182,), (1361051190,), (1361051196,), (1361051267,), (1361051251,), (1361051256,), (1361051259,), (1361051263,), (1361051710,), (1361051750,), (1361051754,), (1361051759,), (1361051763,), (1361051820,), (1361051823,), (1361051826,), (1361051830,), (1361051833,), (1361051837,), (1361051867,), (1361051870,), (1361051908,), (1361051911,), (1361051914,), (1361051918,), (1361051921,), (1361051963,), (1361051965,), (1361051969,), (1361051974,), (1361051980,), (1361052226,), (1361052229,), (1361052234,), (1361052322,), (1361052300,), (1361052303,), (1361052307,), (1361052312,), (1361052318,), (1361052345,), (1361052347,), (1361052349,), (1361052353,), (1361052384,), (1361052393,), (1361052399,), (1361052405,), (1361052410,), (1361052415,), (1361052434,), (1361052436,), (1361052439,), (1361052443,), (1361052448,), (1361052452,), (1361052474,), (1361052478,), (1361052483,), (1361052489,), (1361052598,), (1361052622,), (1361052626,), (1361052632,), (1361052637,), (1361052669,), (1361052671,), (1361052674,), (1361052678,), (1361052703,), (1361052706,), (1361052709,), (1361052713,), (1361052718,), (1361052723,), (1361052752,), (1361052755,), (1361052757,), (1361052760,), (1361052763,), (1361052788,), (1361052792,), (1361052797,), (1361052802,), (1361052808,), (1361052813,), (1361053161,), (1361053164,), (1361053168,), (1361053173,), (1361053272,), (1361053290,), (1361053298,), (1361053308,), (1361053314,), (1361053317,), (1361053353,), (1361053356,), (1361053360,), (1361053561,), (1361053578,), (1361053592,), (1361053600,), (1361053608,), (1361053612,), (1361053639,), (1361053642,), (1361053646,), (1361053650,), (1361053698,), (1361053688,), (1361053692,), (1361053696,), (1361053737,), (1361053745,), (1361053751,), (1361053756,), (1361053759,), (1361053806,), (1361053810,), (1361053814,), (1361053818,), (1361053823,), (1361053849,), (1361053852,), (1361053856,), (1361053860,), (1361053893,), (1361053895,), (1361053898,), (1361053902,), (1361053907,), (1361053912,), (1361054218,), (1361054233,), (1361054238,), (1361054243,), (1361054354,), (1361054363,), (1361054367,), (1361054502,), (1361054506,), (1361054511,), (1361054555,), (1361054558,), (1361054562,), (1361054565,), (1361054568,), (1361054574,), (1361054612,), (1361054615,), (1361054618,), (1361054622,), (1361054624,), (1361054641,), (1361054680,), (1361054683,), (1361054725,), (1361054728,), (1361054731,), (1361054734,), (1361054737,), (1361054772,), (1361054779,), (1361054782,), (1361054787,), (1361054792,), (1361054797,), (1361054822,), (1361054815,), (1361054819,), (1361054851,), (1361054854,), (1361054858,), (1361054863,), (1361054867,), (1361054900,), (1361054904,), (1361054907,), (1361054910,), (1361054914,), (1361054918,), (1361054946,), (1361054951,), (1361054956,), (1361054960,), (1361054996,), (1361054999,), (1361055002,), (1361055005,), (1361055009,), (1361055016,), (1361055048,), (1361055051,), (1361055054,), (1361055059,), (1361055091,), (1361055094,), (1361055097,), (1361055099,), (1361055103,), (1361055107,), (1361055136,), (1361055143,), (1361055146,), (1361055149,), (1361055190,), (1361055193,), (1361055197,), (1361055202,), (1361055207,), (1361055211,), (1361055230,), (1361055233,), (1361055236,), (1361055277,), (1361055280,), (1361055283,), (1361055291,), (1361055297,), (1361055301,), (1361055323,), (1361055328,), (1361055332,), (1361055339,), (1361055345,), (1361055349,), (1361055369,), (1361055372,), (1361055375,), (1361055439,), (1361055446,), (1361055450,), (1361055457,), (1361055463,), (1361055469,), (1361055529,), (1361055516,), (1361055520,), (1361055523,), (1361055525,), (1361055614,), (1361055644,), (1361055646,), (1361055649,), (1361055678,), (1361055783,), (1361055785,), (1361055787,), (1361055791,), (1361055795,), (1361055832,), (1361055834,), (1361055838,), (1361055842,), (1361055847,), (1361055958,), (1361055962,), (1361055993,), (1361056017,), (1361056035,), (1361056037,), (1361056099,), (1361056104,), (1361056107,), (1361056110,), (1361056114,), (1361056133,), (1361056136,), (1361056141,), (1361056146,), (1361056154,), (1361056162,), (1361056316,), (1361056319,), (1361056342,), (1361056350,), (1361056356,), (1361056409,), (1361056412,), (1361056415,), (1361056419,), (1361056452,), (1361056455,), (1361056461,), (1361056467,), (1361057273,), (1361073258,), (1361073170,), (1361073237,), (1361073587,), (1361073590,), (1361073593,), (1361073810,), (1361073812,), (1361074283,), (1361074394,), (1361074720,), (1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,), (1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,), (1361077409,), (1361077416,), (1361077420,), (1361077423,), (1361077434,), (1361077437,), (1361077458,), (1361077461,), (1361077467,), (1361077470,), (1361077500,), (1361077503,), (1361077539,), (1361077549,), (1361077554,), (1361077559,), (1361077563,), (1361077567,), (1361077590,), (1361077596,), (1361077600,), (1361077602,), (1361077638,), (1361077654,), (1361077674,), (1361077677,), (1361077680,), (1361077684,), (1361077727,), (1361077732,), (1361077771,), (1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,), (1361078696,), (1361078685,), (1361078689,), (1361078692,), (1361078731,), (1361078735,), (1361078741,), (1361078747,), (1361078753,), (1361079615,), (1361079621,), (1361079625,), (1361079738,), (1361079742,), (1361079745,), (1361079748,), (1361079786,), (1361079790,), (1361079792,), (1361079840,), (1361079846,), (1361079850,), (1361079855,), (1361079861,), (1361080010,), (1361080059,), (1361080092,), (1361080444,), (1361080455,), (1361080459,), (1361080464,), (1361080507,), (1361080525,), (1361080722,), (1361080745,), (1361080749,), (1361080861,), (1361080864,), (1361080868,), (1361080873,), (1361080879,), (1361080912,), (1361080916,), (1361080920,), (1361080923,), (1361081127,), (1361081131,), (1361081134,), (1361081140,), (1361081314,), (1361081307,), (1361081310,), (1361081367,), (1361081371,), (1361081436,), (1361081794,), (1361081889,), (1361081919,), (1361081948,), (1361081977,), (1361082032,), (1361082139,), (1361082149,), (1361082152,), (1361082169,), (1361082189,), (1361082418,), (1361082422,), (1361082427,), (1361082432,), (1361082438,), (1361082462,), (1361082467,), (1361082469,), (1361082473,), (1361082477,), (1361082515,), (1361082523,), (1361082529,), (1361082561,), (1361082592,), (1361082623,), (1361082655,), (1361082768,), (1361082784,), (1361082805,), (1361082810,), (1361083328,), (1361083385,), (1361083447,), (1361083952,), (1361084033,), (1361084037,), (1361084042,), (1361084476,), (1361084481,), (1361084486,), (1361084491,), (1361085047,), (1361084902,), (1361084941,), (1361084973,), (1361085013,), (1361085143,), (1361085147,), (1361085151,), (1361085318,), (1361085323,), (1361085328,), (1361085345,), (1361085405,), (1361085407,), (1361085410,), (1361085420,), (1361085699,), (1361085905,), (1361085911,), (1361085914,), (1361085919,), (1361086063,), (1361086092,), (1361086143,), (1361086159,), (1361086208,), (1361086215,), (1361086226,), (1361086230,), (1361086237,), (1361086249,), (1361086279,), (1361086282,), (1361086286,), (1361086291,), (1361086297,), (1361086303,), (1361086453,), (1361086472,), (1361086477,), (1361086482,), (1361086639,), (1361086650,), (1361086661,), (1361086682,), (1361086687,), (1361086760,), (1361086765,), (1361086776,), (1361086786,), (1361086803,), (1361086920,), (1361086965,), (1361087024,), (1361087763,), (1361087805,), (1361087836,), (1361087872,), (1361087948,), (1361088397,), (1361088429,), (1361088473,), (1361088507,), (1361088544,), (1361088568,), (1361088753,), (1361088743,), (1361088746,), (1361088748,), (1361088865,), (1361088894,), (1361088937,), (1361089018,), (1361089095,), (1361089776,), (1361089833,), (1361089862,), (1361089924,), (1361089971,), (1361090059,), (1361090279,), (1361090337,), (1361090439,), (1361090713,), (1361090772,), (1361090834,), (1361090891,), (1361090930,), (1361090963,), (1361091181,), (1361091186,), (1361091191,), (1361091195,), (1361091200,), (1361091204,), (1361091245,), (1361091279,), (1361091299,), (1361091362,), (1361091364,), (1361091367,), (1361091371,), (1361091375,), (1361091553,), (1361091557,), (1361091560,), (1361091564,), (1361091570,), (1361091574,), (1361091673,), (1361091677,), (1361091700,), (1361091845,), (1361091847,), (1361091850,), (1361091857,), (1361091862,), (1361091867,), (1361092195,), (1361092250,), (1361092310,), (1361092366,), (1361092423,), (1361092482,), (1361092858,), (1361092935,), (1361092997,), (1361093059,), (1361093267,), (1361093284,), (1361093287,), (1361093306,), (1361093336,), (1361093372,), (1361093807,), (1361093815,), (1361093819,), (1361093845,), (1361093889,), (1361093930,), (1361094163,), (1361094072,), (1361094103,), (1361094131,), (1361094388,), (1361094418,), (1361094451,), (1361094457,), (1361094493,), (1361094512,), (1361094583,), (1361094585,), (1361094589,), (1361094594,), (1361094627,), (1361094630,), (1361094635,), (1361094645,), (1361094651,), (1361094709,), (1361094752,), (1361094782,), (1361094811,), (1361094842,), (1361094858,), (1361094974,), (1361095000,), (1361095094,), (1361095104,), (1361095117,), (1361095122,), (1361095128,), (1361095159,), (1361095299,), (1361095304,), (1361095324,), (1361095355,), (1361095481,), (1361095483,), (1361095486,), (1361095490,), (1361095493,), (1361095538,), (1361095543,), (1361095548,), (1361095554,), (1361095560,), (1361095567,), (1361095586,), (1361095590,), (1361095594,), (1361095599,), (1361095632,), (1361095636,), (1361095645,), (1361095650,), (1361095655,), (1361095680,), (1361095712,), (1361095716,), (1361095720,), (1361096054,), (1361096091,), (1361096124,), (1361096645,), (1361096670,), (1361096696,), (1361096730,), (1361096763,), (1361096773,), (1361097233,), (1361097153,), (1361097212,), (1361097803,), (1361097820,), (1361097838,), (1361097853,), (1361097868,), (1361097887,), (1361097900,), (1361097901,), (1361097902,), (1361099667,), (1361099709,), (1361099756,), (1361099800,), (1361099831,), (1361099867,), (1361099958,), (1361099992,), (1361100041,), (1361100140,), (1361100202,), (1361100268,), (1361100523,), (1361100528,), (1361100545,), (1361100550,), (1361100571,), (1361100605,), (1361100621,), (1361100641,), (1361101003,), (1361101170,), (1361101231,), (1361101263,), (1361101297,), (1361101329,), (1361101343,), (1361101435,), (1361101448,), (1361101458,), (1361101651,), (1361101685,), (1361101712,), (1361101780,), (1361101808,), (1361101828,), (1361101933,), (1361101937,), (1361101938,), (1361101942,), (1361101977,), (1361101983,), (1361101984,), (1361101997,), (1361102002,), (1361102005,), (1361102010,), (1361102015,), (1361102021,), (1361102049,), (1361102056,), (1361102068,), (1361102098,), (1361100424,), (1361100456,), (1361100489,), (1361100517,), (1361100730,), (1361100764,), (1361100794,), (1361100870,), (1361100934,), (1361101358,), (1361101385,), (1361101418,), (1361101471,), (1361101474,), (1361101476,), (1361101479,), (1361101496,), (1361101527,), (1361101885,), (1361101886,), (1361101896,), (1361101907,), (1361101921,), (1361101927,), (1361101928,), (1361101934,), (1361101960,), (1361101968,), (1361101971,), (1361102034,), (1361102037,), (1361102041,), (1361102044,), (1361102118,), (1361102124,), (1361102129,), (1361102134,), (1361102180,), (1361102212,), (1361102245,), (1361102344,), (1361102348,), (1361102351,), (1361102358,), (1361102362,), (1361102454,), (1361102490,), (1361102518,), (1361102550,), (1361102581,), (1361102613,), (1361102949,), (1361102981,), (1361103012,), (1361103043,), (1361103354,), (1361103425,), (1361103492,), (1361103553,), (1361103613,), (1361103664,), (1361103813,), (1361103843,), (1361103877,), (1361103908,), (1361103940,), (1361104225,), (1361104258,), (1361104317,), (1361104324,), (1361104812,), (1361104653,), (1361104682,), (1361104708,), (1361104742,), (1361104783,), (1361105149,), (1361105202,), (1361105261,), (1361105306,), (1361105590,), (1361105597,), (1361105599,), (1361105602,), (1361105609,), (1361106028,), (1361106082,), (1361106134,), (1361106191,), (1361106250,), (1361106594,), (1361106626,), (1361106667,), (1361107000,), (1361107029,), (1361107093,), (1361107151,), (1361107212,), (1361107567,), (1361107573,), (1361107586,), (1361107615,), (1361107645,), (1361107679,), (1361107735,), (1361107738,), (1361107742,), (1361107745,), (1361107925,), (1361107955,), (1361107986,), (1361108014,), (1361108044,), (1361108562,), (1361108589,), (1361108619,), (1361108652,), (1361108681,), (1361109060,), (1361109080,), (1361109089,), (1361109332,), (1361109362,), (1361109394,), (1361109424,), (1361109593,), (1361109595,), (1361109633,), (1361109667,), (1361109719,), (1361109781,), (1361110033,), (1361110064,), (1361110094,), (1361110651,), (1361110753,), (1361110866,), (1361110895,), (1361110923,), (1361111252,), (1361111116,), (1361111149,), (1361111182,), (1361111234,), (1361111269,), (1361111273,), (1361111277,), (1361111287,), (1361111292,), (1361111398,), (1361111428,), (1361111497,), (1361111918,), (1361111928,), (1361111942,), (1361111948,), (1361111952,), (1361111964,), (1361112123,), (1361112135,), (1361112140,), (1361112146,), (1361112167,), (1361112358,), (1361112406,), (1361112518,), (1361112641,), (1361112644,), (1361112646,), (1361112650,), (1361112651,), (1361112655,), (1361112728,), (1361112731,), (1361112734,), (1361112738,), (1361112745,), (1361112843,), (1361112856,), (1361112887,), (1361112917,), (1361112946,), (1361113084,), (1361113100,), (1361113105,), (1361113110,), (1361113130,), (1361113268,), (1361113287,), (1361113298,), (1361113303,), (1361113313,), (1361113350,), (1361113356,), (1361113361,), (1361113364,), (1361113368,), (1361113399,), (1361113405,), (1361113409,), (1361113413,), (1361113435,), (1361113824,), (1361113853,), (1361113872,), (1361113891,), (1361113909,), (1361113956,), (1361114011,), (1361114018,), (1361114029,), (1361114095,), (1361114078,), (1361114081,), (1361114085,), (1361114090,), (1361114133,), (1361114135,), (1361114138,), (1361114141,), (1361114146,), (1361114327,), (1361114367,), (1361114375,), (1361114381,), (1361114384,), (1361114408,), (1361114521,), (1361114523,), (1361114527,), (1361114578,), (1361114585,), (1361114590,), (1361114598,), (1361114604,), (1361114640,), (1361114641,), (1361114645,), (1361114650,), (1361114656,), (1361114661,), (1361114706,), (1361114713,), (1361114778,), (1361114852,), (1361114855,), (1361114859,), (1361115140,), (1361115171,), (1361115175,), (1361115230,), (1361115234,), (1361115239,), (1361115244,), (1361115298,), (1361115302,), (1361115307,), (1361115312,), (1361115358,), (1361115361,), (1361115364,), (1361115367,), (1361115370,), (1361115376,), (1361115468,), (1361115472,), (1361115478,), (1361115485,), (1361115491,), (1361115499,), (1361115518,), (1361115522,), (1361115549,), (1361115532,), (1361115536,), (1361115540,), (1361115544,), (1361115648,), (1361115651,), (1361115658,), (1361115663,), (1361115881,), (1361115934,), (1361115968,), (1361116387,), (1361116432,), (1361116465,), (1361116470,), (1361116506,), (1361116519,), (1361116581,), (1361116590,), (1361116596,), (1361116602,), (1361116652,), (1361116656,), (1361116660,), (1361116699,), (1361116710,), (1361116718,), (1361116722,), (1361116726,), (1361116739,), (1361116832,), (1361116863,), (1361116896,), (1361116912,), (1361116919,), (1361116923,), (1361116989,), (1361117023,), (1361117049,), (1361117149,), (1361117153,), (1361117164,), (1361117180,), (1361117210,), (1361117218,), (1361117226,), (1361117248,), (1361117259,), (1361117264,), (1361117309,), (1361117313,), (1361117316,), (1361117319,), (1361117382,), (1361117388,), (1361117391,), (1361117395,), (1361117398,), (1361117473,), (1361117509,), (1361117538,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26052025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23346652]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] map_info['map_portfolio_photo'] : {23346652: [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210, 1361117180, 1361117164, 1361117153, 1361117149, 1361117049, 1361117023, 1361116989, 1361116923, 1361116919, 1361116912, 1361116896, 1361116863, 1361116832, 1361116739, 1361116726, 1361116722, 1361116718, 1361116710, 1361116699, 1361116660, 1361116656, 1361116652, 1361116602, 1361116596, 1361116590, 1361116581, 1361116519, 1361116506, 1361116470, 1361116465, 1361116432, 1361116387, 1361115968, 1361115934, 1361115881, 1361115663, 1361115658, 1361115651, 1361115648, 1361115544, 1361115540, 1361115536, 1361115532]} final : True mtd_id 4302 list_pids : [1361117538, 1361117509, 1361117473, 1361117398, 1361117395, 1361117391, 1361117388, 1361117382, 1361117319, 1361117316, 1361117313, 1361117309, 1361117264, 1361117259, 1361117248, 1361117226, 1361117218, 1361117210] Looping around the photos to save general results len do output : 1 /23346652Didn'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, '2956066') ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066') ('4302', None, None, None, None, None, None, None, '2956066') ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '23346652', 'None', None, None, None, None, '2956066'), ('4302', '23346652', '1361117538', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117509', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117473', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117398', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117395', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117391', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117388', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117382', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117319', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117316', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117313', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117309', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117264', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117259', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117248', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117226', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117218', None, None, None, None, None, '2956066'), ('4302', '23346652', '1361117210', None, None, None, None, None, '2956066')] time used for this insertion : 0.017216205596923828 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.441851854324341 time spend to save output : 0.01748037338256836 total time spend for step 5 : 3.459332227706909 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 (2956066) 2.68user 2.02system 0:11.58elapsed 40%CPU (0avgtext+0avgdata 161340maxresident)k 1160inputs+13072outputs (22major+73920minor)pagefaults 0swaps