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`=22769438 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Teint_Dans_La_Masse','autre_refus','kraft','Carton_gris','metal','cartonnette','environnement','plastique','Carton_brun','mal_croppe')) 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`=22769438 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Teint_Dans_La_Masse','autre_refus','kraft','Carton_gris','metal','cartonnette','environnement','plastique','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22769438, 'sub_port_id': 22769490, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180752, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'papier': {'main_port_id': 22769438, 'sub_port_id': 22769491, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180753, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'environnement': {'main_port_id': 22769438, 'sub_port_id': 22769492, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180754, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'cartonnette': {'main_port_id': 22769438, 'sub_port_id': 22769493, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180755, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22769438, 'sub_port_id': 22769494, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180756, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'metal': {'main_port_id': 22769438, 'sub_port_id': 22769495, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180757, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'Carton_brun': {'main_port_id': 22769438, 'sub_port_id': 22769496, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180758, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'autre_refus': {'main_port_id': 22769438, 'sub_port_id': 22769497, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180759, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'plastique': {'main_port_id': 22769438, 'sub_port_id': 22769498, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180760, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'kraft': {'main_port_id': 22769438, 'sub_port_id': 22769499, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180761, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'Carton_gris': {'main_port_id': 22769438, 'sub_port_id': 22769500, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180762, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}, 'mal_croppe': {'main_port_id': 22769438, 'sub_port_id': 22769501, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15180763, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 42, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 42, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22769501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22769489 lien utilise dans velours : https://www.fotonower.com/velours/22769490,22769491,22769492,22769493,22769494,22769495,22769496,22769497,22769498,22769499,22769500,22769501?tags=flou,papier,environnement,cartonnette,Teint_Dans_La_Masse,metal,Carton_brun,autre_refus,plastique,kraft,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22769438]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] map_info['map_portfolio_photo'] : {22769438: [1356708597, 1356708567, 1356708537, 1356708507, 1356708479, 1356708260, 1356708258, 1356708255, 1356708059, 1356708022, 1356707982, 1356707928, 1356707896, 1356707794, 1356707766, 1356707765, 1356707761, 1356707400, 1356707371, 1356707342, 1356707330, 1356706893, 1356706865, 1356706586, 1356706556, 1356706552, 1356706464, 1356706444, 1356706441, 1356706173, 1356706169, 1356706167, 1356706165, 1356706162, 1356706159, 1356705972, 1356705968, 1356705966, 1356705708, 1356705703, 1356705700, 1356705697, 1356705695, 1356705301, 1356705295, 1356705292, 1356705274, 1356705266, 1356705014, 1356704969, 1356704917, 1356704842, 1356704243, 1356704214, 1356704200, 1356704167, 1356704115]} final : False mtd_id 4302 list_pids : [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] Looping around the photos to save general results len do output : 1 /22769438. 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, '2803189') ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22769438', "{'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489}", None, None, None, None, '2803189'), ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189')] time used for this insertion : 0.012792587280273438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4611999988555908 time spend to save output : 0.013051271438598633 total time spend for step 1 : 0.47425127029418945 step2:final Wed May 7 14:44:56 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 (22769438) 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 22769438 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356704243,1356704214,1356704200,1356704167,1356704115,1356705014,1356704969,1356704917,1356704842,1356705301,1356705295,1356705292,1356705274,1356705266,1356705708,1356705703,1356705700,1356705697,1356705695,1356705972,1356705968,1356705966,1356706173,1356706169,1356706167,1356706165,1356706162,1356706159,1356706586,1356706556,1356706552,1356706464,1356706444,1356706441,1356706893,1356706865,1356707400,1356707371,1356707342,1356707330,1356707794,1356707766,1356707765,1356707761,1356708059,1356708022,1356707982,1356707928,1356707896,1356708260,1356708258,1356708255,1356708597,1356708567,1356708537,1356708507,1356708479); 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([22769438]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} new output for save of step final : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] map_info['map_portfolio_photo'] : {22769438: [1356708597, 1356708567, 1356708537, 1356708507, 1356708479, 1356708260, 1356708258, 1356708255, 1356708059, 1356708022, 1356707982, 1356707928, 1356707896, 1356707794, 1356707766, 1356707765, 1356707761, 1356707400, 1356707371, 1356707342, 1356707330, 1356706893, 1356706865, 1356706586, 1356706556, 1356706552, 1356706464, 1356706444, 1356706441, 1356706173, 1356706169, 1356706167, 1356706165, 1356706162, 1356706159, 1356705972, 1356705968, 1356705966, 1356705708, 1356705703, 1356705700, 1356705697, 1356705695, 1356705301, 1356705295, 1356705292, 1356705274, 1356705266, 1356705014, 1356704969, 1356704917, 1356704842, 1356704243, 1356704214, 1356704200, 1356704167, 1356704115]} final : False mtd_id 4302 list_pids : [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] Looping around the photos to save general results len do output : 5 /1356708597.Didn't retrieve data . /1356708567.Didn't retrieve data . /1356708537.Didn't retrieve data . /1356708507.Didn't retrieve data . /1356708479.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, '2803189') ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22769438', '1356708597', '0.03166414520541099', None, None, None, None, '2803189'), ('4302', '22769438', '1356708567', '0.03166414520541099', None, None, None, None, '2803189'), ('4302', '22769438', '1356708537', '0.03166414520541099', None, None, None, None, '2803189'), ('4302', '22769438', '1356708507', '0.03166414520541099', None, None, None, None, '2803189'), ('4302', '22769438', '1356708479', '0.03166414520541099', None, None, None, None, '2803189')] time used for this insertion : 0.011735200881958008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07188868522644043 time spend to save output : 0.011993646621704102 total time spend for step 2 : 0.08388233184814453 step3:velours_tree Wed May 7 14:44:56 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 : {22769438: [{'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489}]} input_args_next_step : {22769438: ()} output_args : {22769438: [{'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489}]} args : 22769438 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22769438) 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([22769438]) 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.3185920715332031 time spend to save output : 7.176399230957031e-05 total time spend for step 3 : 0.3186638355255127 step4:send_mail_cod Wed May 7 14:44:57 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 : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} input_args_next_step : {1356708597: ()} output_args : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} args : 1356708597 depend.output_id : 0 input_args_next_step : {1356708597: ('0.03166414520541099',), 1356708567: ()} output_args : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} args : 1356708567 depend.output_id : 0 input_args_next_step : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ()} output_args : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} args : 1356708537 depend.output_id : 0 input_args_next_step : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ()} output_args : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} args : 1356708507 depend.output_id : 0 input_args_next_step : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ()} output_args : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',)} args : 1356708479 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 : {22769438: [{'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489}]} input_args_next_step : {1356708597: ('0.03166414520541099',), 1356708567: ('0.03166414520541099',), 1356708537: ('0.03166414520541099',), 1356708507: ('0.03166414520541099',), 1356708479: ('0.03166414520541099',), 22769438: ()} output_args : {22769438: [{'flou': 22769478, 'papier': 22769479, 'environnement': 22769480, 'cartonnette': 22769481, 'Teint_Dans_La_Masse': 22769482, 'metal': 22769483, 'Carton_brun': 22769484, 'autre_refus': 22769485, 'plastique': 22769486, 'kraft': 22769487, 'Carton_gris': 22769488, 'mal_croppe': 22769489}]} args : 22769438 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.03166414520541099',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22769438) 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 (1356708597,1356708567,1356708537,1356708507,1356708479) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356708479 begin to download photo : 1356708537 begin to download photo : 1356708597 download finish for photo 1356708479 begin to download photo : 1356708507 download finish for photo 1356708597 download finish for photo 1356708537 begin to download photo : 1356708567 download finish for photo 1356708507 download finish for photo 1356708567 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette227694781746621897/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22769438_07-05-2025_14_44_57.pdf 22769478 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=22769478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227694781746621897 22769481 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=22769481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705465: '1746621206_884348_1356704969_b78a7a6375e37083ea90fcd16605d70c_rle_crop_3788561137_0.png', 1356705684: '1746621194_2698246_1356704214_df02938a5dce9b4940c15b57b846d804_rle_crop_3788561190_0.png', 1356706801: '1746621445_398439_1356705972_b4c27ea4a4efb1f3c76c0b8e03201a03_rle_crop_3788570643_0.png', 1356706803: '1746621445_398439_1356705695_4c6f40304d7fd0c719c5e1552e190a9a_rle_crop_3788570696_0.png', 1356706805: '1746621445_398439_1356705695_4c6f40304d7fd0c719c5e1552e190a9a_rle_crop_3788570701_0.png', 1356707913: '1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572368_0.png', 1356707914: '1746621611_2702391_1356706165_bf9810db87eca635d413d8c2a9c97a53_rle_crop_3788572389_0.png', 1356707916: '1746621611_2702391_1356706162_b7f55fcd27d979607cd161df408f6962_rle_crop_3788572400_0.png', 1356708207: '1746621685_889173_1356707342_e97378185d7a82a85165805e619be925_rle_crop_3788577495_0.png', 1356708428: '1746621732_2704162_1356706865_466683bc6ca396fd78c6bf3e247931ca_rle_crop_3788581088_0.png', 1356709254: '1746621851_2705477_1356708022_4d28a49efc634ac1007cdfac9f337105_rle_crop_3788585729_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/65f764c26102bf837262e00c93f8218c_2678776.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3dbb7aec02dbd4efec208eed2194400c_51887759.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/41860d855336efc8e803632cbdad18dc_60630326.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/92eb15b561209aa5baff3c3bfadd4ccd_13654666.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6088a3c7faf49664682ed88f0b724b96_91066499.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/55b567b977824c5417b6d1096b4333a6_93747280.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/96a90f46fb3406ed8b9649a3507be684_39158577.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/883716571dc2274681f2e2c856d01e25_50635427.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/509b486ef46ea00e94919acc2833b2e5_97333904.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/87bdadb93be7dd018ca056b36bdc3916_48595610.png change filename to text .imagette227694811746621897/ imagette227694811746621897/1746621611_2702391_1356706165_bf9810db87eca635d413d8c2a9c97a53_rle_crop_3788572389_0.png.png imagette227694811746621897/1746621445_398439_1356705695_4c6f40304d7fd0c719c5e1552e190a9a_rle_crop_3788570696_0.png.png imagette227694811746621897/1746621194_2698246_1356704214_df02938a5dce9b4940c15b57b846d804_rle_crop_3788561190_0.png.png imagette227694811746621897/1746621445_398439_1356705695_4c6f40304d7fd0c719c5e1552e190a9a_rle_crop_3788570701_0.png.png imagette227694811746621897/1746621445_398439_1356705972_b4c27ea4a4efb1f3c76c0b8e03201a03_rle_crop_3788570643_0.png.png imagette227694811746621897/1746621732_2704162_1356706865_466683bc6ca396fd78c6bf3e247931ca_rle_crop_3788581088_0.png.png imagette227694811746621897/1746621851_2705477_1356708022_4d28a49efc634ac1007cdfac9f337105_rle_crop_3788585729_0.png.png imagette227694811746621897/1746621611_2702391_1356706162_b7f55fcd27d979607cd161df408f6962_rle_crop_3788572400_0.png.png imagette227694811746621897/1746621206_884348_1356704969_b78a7a6375e37083ea90fcd16605d70c_rle_crop_3788561137_0.png.png imagette227694811746621897/1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572368_0.png.png imagette227694811746621897/1746621685_889173_1356707342_e97378185d7a82a85165805e619be925_rle_crop_3788577495_0.png.png imagette227694831746621897/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6608a7bbf22975c1cce103a1ffac993d_36653081.png imagette227694811746621897 22769483 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=22769483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227694831746621897 22769485 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=22769485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705682: '1746621194_2698246_1356705014_2da9575eac4cb724c2022e7a88cffd01_rle_crop_3788561166_0.png', 1356706592: '1746621431_2700649_1356705966_e68374daf91a77dd006d4a59ac504b8e_rle_crop_3788569547_0.png', 1356707889: '1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572369_0.png', 1356708205: '1746621673_2703323_1356707766_b560c22b59400df116326ce06243d30c_rle_crop_3788577478_0.png', 1356708206: '1746621673_2703323_1356707765_8214fd2c9fa61644e25ec22c3a65b9dd_rle_crop_3788577793_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e9fdc233d9b12dc908f4f961d7472600_98892959.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/46c02229a04ac9520b84f7a11ff21ec3_82490959.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d54e9d2da9e6d233264a2404eae9d0c5_13492586.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/bf5188a5af65451320e36d732bc73e15_55817977.png change filename to text .imagette227694851746621897/ imagette227694851746621897/1746621673_2703323_1356707765_8214fd2c9fa61644e25ec22c3a65b9dd_rle_crop_3788577793_0.png.png imagette227694851746621897/1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572369_0.png.png imagette227694851746621897/1746621194_2698246_1356705014_2da9575eac4cb724c2022e7a88cffd01_rle_crop_3788561166_0.png.png imagette227694851746621897/1746621431_2700649_1356705966_e68374daf91a77dd006d4a59ac504b8e_rle_crop_3788569547_0.png.png imagette227694851746621897/1746621673_2703323_1356707766_b560c22b59400df116326ce06243d30c_rle_crop_3788577478_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/651288784b32faecf9d9fa637699bd94_27854761.png imagette227694851746621897 22769486 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=22769486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705543: '1746621206_884348_1356704969_b78a7a6375e37083ea90fcd16605d70c_rle_crop_3788561140_0.png', 1356708213: '1746621673_2703323_1356707766_b560c22b59400df116326ce06243d30c_rle_crop_3788577481_0.png', 1356708214: '1746621685_889173_1356707371_7f3f2744c79d2519f6132aeeea5b0f96_rle_crop_3788577228_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8e3b05c382d45c1f2f51a2f236dff4c0_24386093.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c15ed74522030c4953a8274cba5c95f4_29198493.png change filename to text .imagette227694861746621898/ imagette227694861746621898/1746621673_2703323_1356707766_b560c22b59400df116326ce06243d30c_rle_crop_3788577481_0.png.png imagette227694861746621898/1746621206_884348_1356704969_b78a7a6375e37083ea90fcd16605d70c_rle_crop_3788561140_0.png.png imagette227694861746621898/1746621685_889173_1356707371_7f3f2744c79d2519f6132aeeea5b0f96_rle_crop_3788577228_0.png.png imagette227694871746621898/ imagette227694891746621898/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b42c48bc547b8b37ded0638b574afd4e_60378369.png imagette227694861746621898 22769487 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=22769487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227694871746621898 22769489 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=22769489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227694891746621898 22769482 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=22769482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705436: '1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561148_0.png', 1356705440: '1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561147_0.png', 1356705680: '1746621194_2698246_1356704243_119ae61c50007a40797e334c191f06f0_rle_crop_3788561182_0.png', 1356705681: '1746621194_2698246_1356704115_070d95801e8509600da7d9a76c137b98_rle_crop_3788561228_0.png', 1356706779: '1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570673_0.png', 1356706781: '1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570676_0.png', 1356707576: '1746621553_2701700_1356706556_c61524dc65e34e59d6d92f07f8d83745_rle_crop_3788571007_0.png', 1356708194: '1746621685_889173_1356707794_bcda3a00e0a422f4666008598439a29f_rle_crop_3788577215_0.png', 1356709237: '1746621851_2705477_1356708260_ca655b527910f46d762fcde09fc9dcd5_rle_crop_3788585718_0.png', 1356709238: '1746621851_2705477_1356708022_4d28a49efc634ac1007cdfac9f337105_rle_crop_3788585736_0.png', 1356709239: '1746621851_2705477_1356707982_0b3a2c36f03687f53f8a2bedfd519047_rle_crop_3788585749_0.png', 1356709241: '1746621851_2705477_1356707982_0b3a2c36f03687f53f8a2bedfd519047_rle_crop_3788585747_0.png', 1356709242: '1746621851_2705477_1356707928_12d869747e08d5ac40ddabc5da23a2b3_rle_crop_3788585763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0512c7b7db47621b616d55c97a38dfbc_2416988.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/55225525cfd0013b6fd76549f878066a_85878274.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/77ed460999ef0374764fc6412f1803f5_80519215.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9481c45a54d6046b2c5337c877438432_18985512.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/de0529e856ba9416c17668b69783c66e_80036538.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/668bd9aae30eb0faaa893f9060e723c3_69013787.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/aec490fbe12b683cebeb642f7f674cc1_22220357.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/08651df87da555a17508c15089d874cd_85477561.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/95b77fba6a1ac0f5d5d5dce6d7ececed_6300320.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6e09c6c2a5fd198b60f1b2d9527df590_40311355.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5775a73bd8eb65fac43fae2a191e4661_52179330.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0b75dda9748f4da555d8c3d312c829ee_43432171.png change filename to text .imagette227694821746621898/ imagette227694821746621898/1746621851_2705477_1356707982_0b3a2c36f03687f53f8a2bedfd519047_rle_crop_3788585747_0.png.png imagette227694821746621898/1746621851_2705477_1356708260_ca655b527910f46d762fcde09fc9dcd5_rle_crop_3788585718_0.png.png imagette227694821746621898/1746621851_2705477_1356707982_0b3a2c36f03687f53f8a2bedfd519047_rle_crop_3788585749_0.png.png imagette227694821746621898/1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561148_0.png.png imagette227694821746621898/1746621194_2698246_1356704115_070d95801e8509600da7d9a76c137b98_rle_crop_3788561228_0.png.png imagette227694821746621898/1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570676_0.png.png imagette227694821746621898/1746621851_2705477_1356707928_12d869747e08d5ac40ddabc5da23a2b3_rle_crop_3788585763_0.png.png imagette227694821746621898/1746621553_2701700_1356706556_c61524dc65e34e59d6d92f07f8d83745_rle_crop_3788571007_0.png.png imagette227694821746621898/1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561147_0.png.png imagette227694821746621898/1746621685_889173_1356707794_bcda3a00e0a422f4666008598439a29f_rle_crop_3788577215_0.png.png imagette227694821746621898/1746621851_2705477_1356708022_4d28a49efc634ac1007cdfac9f337105_rle_crop_3788585736_0.png.png imagette227694821746621898/1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570673_0.png.png imagette227694821746621898/1746621194_2698246_1356704243_119ae61c50007a40797e334c191f06f0_rle_crop_3788561182_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/40d743d778908d958b75e0b1123318b6_57302503.png imagette227694821746621898 22769484 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=22769484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705502: '1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561153_0.png', 1356705507: '1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561151_0.png', 1356705511: '1746621206_884348_1356704842_6ac75185f01f9b52057824b175e5fecb_rle_crop_3788561163_0.png', 1356705685: '1746621194_2698246_1356704243_119ae61c50007a40797e334c191f06f0_rle_crop_3788561183_0.png', 1356706813: '1746621445_398439_1356705697_7dcabe18169decd63c3ee521a1f529ae_rle_crop_3788570687_0.png', 1356707632: '1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571050_0.png', 1356708210: '1746621685_889173_1356707330_f2da70d18e722878670e2d119e281acb_rle_crop_3788577504_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f1103b1661034045ce30e4e2ebe40aa0_66828806.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d90451bebea9458187cdd9822b7c0da3_23261543.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/96454e3dbfbae6ccb97a16222916c6a8_30946534.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1c5e5ce73e7201427d5f57e968b3190d_87537415.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/308c49143962ed356edeacf05af31f53_33080782.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/53389236c7c939277bb4e9de7f5cb6c1_9125263.png change filename to text .imagette227694841746621899/ imagette227694841746621899/1746621685_889173_1356707330_f2da70d18e722878670e2d119e281acb_rle_crop_3788577504_0.png.png imagette227694841746621899/1746621206_884348_1356704842_6ac75185f01f9b52057824b175e5fecb_rle_crop_3788561163_0.png.png imagette227694841746621899/1746621194_2698246_1356704243_119ae61c50007a40797e334c191f06f0_rle_crop_3788561183_0.png.png imagette227694841746621899/1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571050_0.png.png imagette227694841746621899/1746621445_398439_1356705697_7dcabe18169decd63c3ee521a1f529ae_rle_crop_3788570687_0.png.png imagette227694841746621899/1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561151_0.png.png imagette227694841746621899/1746621206_884348_1356704917_49368c2eeef14e15f7026b40f3c46743_rle_crop_3788561153_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3dd7f6261f5b0fdfb95bba465b5c61f4_14459872.png imagette227694841746621899 22769488 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=22769488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356705683: '1746621194_2698246_1356704115_070d95801e8509600da7d9a76c137b98_rle_crop_3788561225_0.png', 1356706790: '1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570666_0.png', 1356707618: '1746621553_2701700_1356706893_f0637724495292f99541079fffefe9a5_rle_crop_3788570995_0.png', 1356707619: '1746621553_2701700_1356706556_c61524dc65e34e59d6d92f07f8d83745_rle_crop_3788571008_0.png', 1356707620: '1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571047_0.png', 1356707621: '1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571049_0.png', 1356707902: '1746621611_2702391_1356706586_66fca54e688c811c382dd88df24f61d9_rle_crop_3788572359_0.png', 1356707903: '1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572373_0.png', 1356707904: '1746621611_2702391_1356706159_3ee0c83c4ce14365c8b91ab57a702bd4_rle_crop_3788572412_0.png', 1356708201: '1746621685_889173_1356707794_bcda3a00e0a422f4666008598439a29f_rle_crop_3788577214_0.png', 1356708208: '1746621673_2703323_1356707765_8214fd2c9fa61644e25ec22c3a65b9dd_rle_crop_3788577797_0.png', 1356708209: '1746621673_2703323_1356707761_497bf7914169835e0baffeed3f7577b1_rle_crop_3788577805_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0e5c6cc9ac059ec562d84c2f72e0f30d_43424875.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7c31b347e32d87463e2ee381e4b26f7e_28677815.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/12cb5e150ec957fe4fc38a38444cd524_87374870.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1401c608d3bf22bf5902110db2a152d6_63010908.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/870137a1eb5e332e3f5fc2c712cb846f_37513638.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8c7c79dca6674c1b4f87681d56bb73be_93461077.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0b68e5a9f506d3ecec39ae2bab3dbe7b_54426316.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/bd7415ee1ff7d9887e57bd48a7b167ec_21342616.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9ff62d05428429d21945664d951964f8_83410182.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/be1f9a18c51253539b786279641d65ef_79901058.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f76d78b7beff319486489a8d701acb46_51709172.png change filename to text .imagette227694881746621899/ imagette227694881746621899/1746621553_2701700_1356706893_f0637724495292f99541079fffefe9a5_rle_crop_3788570995_0.png.png imagette227694881746621899/1746621611_2702391_1356706169_51279c2bfe2b6ce11d5a9bd2c2e21c18_rle_crop_3788572373_0.png.png imagette227694881746621899/1746621553_2701700_1356706556_c61524dc65e34e59d6d92f07f8d83745_rle_crop_3788571008_0.png.png imagette227694881746621899/1746621673_2703323_1356707765_8214fd2c9fa61644e25ec22c3a65b9dd_rle_crop_3788577797_0.png.png imagette227694881746621899/1746621611_2702391_1356706159_3ee0c83c4ce14365c8b91ab57a702bd4_rle_crop_3788572412_0.png.png imagette227694881746621899/1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571047_0.png.png imagette227694881746621899/1746621194_2698246_1356704115_070d95801e8509600da7d9a76c137b98_rle_crop_3788561225_0.png.png imagette227694881746621899/1746621611_2702391_1356706586_66fca54e688c811c382dd88df24f61d9_rle_crop_3788572359_0.png.png imagette227694881746621899/1746621685_889173_1356707794_bcda3a00e0a422f4666008598439a29f_rle_crop_3788577214_0.png.png imagette227694881746621899/1746621445_398439_1356705700_84fd5c414255546b51187d2e7b0b7637_rle_crop_3788570666_0.png.png imagette227694881746621899/1746621673_2703323_1356707761_497bf7914169835e0baffeed3f7577b1_rle_crop_3788577805_0.png.png imagette227694881746621899/1746621553_2701700_1356706441_2e6f3190587f54284851fe4583c44fea_rle_crop_3788571049_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/758fe62160f7f4ac4cc9982b75147a15_15183578.png imagette227694881746621899 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22769438 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22769490,22769491,22769492,22769493,22769494,22769495,22769496,22769497,22769498,22769499,22769500,22769501?tags=flou,papier,environnement,cartonnette,Teint_Dans_La_Masse,metal,Carton_brun,autre_refus,plastique,kraft,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1356708597] : ('0.03166414520541099',) no score found for photo 1356708597 We are sending mail with results at report@fotonower.com args[1356708567] : ('0.03166414520541099',) no score found for photo 1356708567 We are sending mail with results at report@fotonower.com args[1356708537] : ('0.03166414520541099',) no score found for photo 1356708537 We are sending mail with results at report@fotonower.com args[1356708507] : ('0.03166414520541099',) no score found for photo 1356708507 We are sending mail with results at report@fotonower.com args[1356708479] : ('0.03166414520541099',) no score found for photo 1356708479 We are sending mail with results at report@fotonower.com refus_total : 0.03166414520541099 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=22769438 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_P22769438_07-05-2025_14_44_57.pdf results_Auto_P22769438_07-05-2025_14_44_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_44_57.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','22769438','results_Auto_P22769438_07-05-2025_14_44_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_44_57.pdf','pdf','','0.23','0.03166414520541099') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22769438]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] map_info['map_portfolio_photo'] : {22769438: [1356708597, 1356708567, 1356708537, 1356708507, 1356708479, 1356708260, 1356708258, 1356708255, 1356708059, 1356708022, 1356707982, 1356707928, 1356707896, 1356707794, 1356707766, 1356707765, 1356707761, 1356707400, 1356707371, 1356707342, 1356707330, 1356706893, 1356706865, 1356706586, 1356706556, 1356706552, 1356706464, 1356706444, 1356706441, 1356706173, 1356706169, 1356706167, 1356706165, 1356706162, 1356706159, 1356705972, 1356705968, 1356705966, 1356705708, 1356705703, 1356705700, 1356705697, 1356705695, 1356705301, 1356705295, 1356705292, 1356705274, 1356705266, 1356705014, 1356704969, 1356704917, 1356704842, 1356704243, 1356704214, 1356704200, 1356704167, 1356704115]} final : False mtd_id 4302 list_pids : [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] 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, '2803189') ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22769438', '1356708597', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189')] time used for this insertion : 0.013532161712646484 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.5665693283081055 time spend to save output : 0.013759613037109375 total time spend for step 4 : 4.580328941345215 step5:split_time_score Wed May 7 14:45:01 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 : ['22769438'] 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 : [('22769438',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22769438) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356708597: {'path': 'temp/1746621897_1078846_1356708597_a0c80e342b6abf99757450f9d3b6e629.jpg', 'extension': 'jpg'}, 1356708479: {'path': 'temp/1746621897_1078846_1356708479_94eae18e25941a5c86ec57ea0f1731ae.jpg', 'extension': 'jpg'}, 1356708507: {'path': 'temp/1746621897_1078846_1356708507_799ff5069c2e754406725d4690485578.jpg', 'extension': 'jpg'}, 1356708537: {'path': 'temp/1746621897_1078846_1356708537_574296db95e5a4976896088b00b243e5.jpg', 'extension': 'jpg'}, 1356708567: {'path': 'temp/1746621897_1078846_1356708567_e58ce21bb2da36b5fc1dc7b508629182.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 = 22769438; (('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 = 22769438 group by h (('14', 57),) 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=22769438 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 (22769438) 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 (22769438) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22769438 Nombre de photos uploadées : 57 / 23040 (0%) 07052025 22769438 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 07052025 22769438 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1356704243, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/119ae61c50007a40797e334c191f06f0.jpg', 'username': None, 'uploaded_at': 1746621067, 'text': 'image_07052025_14_30_04_009154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356704214, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/df02938a5dce9b4940c15b57b846d804.jpg', 'username': None, 'uploaded_at': 1746621067, 'text': 'image_07052025_14_30_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1356704200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/692bedf55601a2a660ccb432fc209856.jpg', 'username': None, 'uploaded_at': 1746621067, 'text': 'image_07052025_14_30_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356704167, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c77031b5561db242842641c26dc058f4.jpg', 'username': None, 'uploaded_at': 1746621067, 'text': 'image_07052025_14_30_34_010143m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027251243591308594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22769438, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02317190170288086 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10386653, '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_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10386654, '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_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10386655, '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_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10386656, '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_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22743939, 'dashboard_result_id': 10386657, '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_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10386658, '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_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10386659, '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_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10386660, '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_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10386661, '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_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22746301, 'dashboard_result_id': 10386662, '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_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22746900, 'dashboard_result_id': 10386663, '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_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22747363, 'dashboard_result_id': 10386664, '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_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22747808, 'dashboard_result_id': 10386665, '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_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22748285, 'dashboard_result_id': 10386666, '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_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22748931, 'dashboard_result_id': 10386667, '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_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22749585, 'dashboard_result_id': 10386668, '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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22750050, 'dashboard_result_id': 10386669, '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_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22750360, 'dashboard_result_id': 10386670, '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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22750640, 'dashboard_result_id': 10386671, '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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22751196, 'dashboard_result_id': 10386672, '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_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22751988, 'dashboard_result_id': 10386673, '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_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22752170, 'dashboard_result_id': 10386674, '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_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22752559, 'dashboard_result_id': 10386675, '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_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22753186, 'dashboard_result_id': 10386676, '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_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22753874, 'dashboard_result_id': 10386677, '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_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22754426, 'dashboard_result_id': 10386678, '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_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22755041, 'dashboard_result_id': 10386679, '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_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22755575, 'dashboard_result_id': 10386680, '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_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22756353, 'dashboard_result_id': 10386681, '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_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22756932, 'dashboard_result_id': 10386682, '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_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22757570, 'dashboard_result_id': 10386683, '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_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22758740, 'dashboard_result_id': 10386684, '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_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22759267, 'dashboard_result_id': 10386685, '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_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22759893, 'dashboard_result_id': 10386686, '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_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22760380, 'dashboard_result_id': 10386687, '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_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22760869, 'dashboard_result_id': 10386688, '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_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22761425, 'dashboard_result_id': 10386689, '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_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22761940, 'dashboard_result_id': 10386690, '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_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22762781, 'dashboard_result_id': 10386691, '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_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22763290, 'dashboard_result_id': 10386692, '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_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22764124, 'dashboard_result_id': 10386693, '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_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22765102, 'dashboard_result_id': 10386694, '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_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22766964, 'dashboard_result_id': 10386695, '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_P22766964_07-05-2025_14_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22767008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767014, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22767781, 'dashboard_result_id': 10386696, '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_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22768655, 'dashboard_result_id': 10386697, '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_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790959, 'mtr_portfolio_id': 22769438, 'dashboard_result_id': 10386698, '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_P22769438_07-05-2025_14_41_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, '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 = 22740041 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': 2800912, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 6, 2), 'result': '0.050109031736622824', 'result_long': None, 'result_double': None}] Qualite : 0.050109031736622824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 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_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1790959 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`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386653, 0.050109031736622824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, '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 = 22741189 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': 2800913, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 6, 2, 28), 'result': '0.04701292400710008', 'result_long': None, 'result_double': None}] Qualite : 0.04701292400710008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 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_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1790959 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`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386654, 0.04701292400710008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, '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 = 22741710 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': 2800914, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 6, 4), 'result': '0.05760114200802414', 'result_long': None, 'result_double': None}] Qualite : 0.05760114200802414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 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_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1790959 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`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386655, 0.05760114200802414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, '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 = 22742314 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': 2800915, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 28), 'result': '0.045077702374708616', 'result_long': None, 'result_double': None}] Qualite : 0.045077702374708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 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_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1790959 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`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386656, 0.045077702374708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, '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 = 22743939 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': 2800916, 'mtr_portfolio_id': 22743939, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 59), 'result': '0.04478232993303851', 'result_long': None, 'result_double': None}] Qualite : 0.04478232993303851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22743939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22743939 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_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}" where mtr_portfolio_id = 22743939 and dashboard_run_id = 1790959 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`=22743939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386657, 0.04478232993303851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, '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 = 22744354 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': 2800917, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 28), 'result': '0.035671548309605734', 'result_long': None, 'result_double': None}] Qualite : 0.035671548309605734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1790959 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386658, 0.035671548309605734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800918, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 59), 'result': '0.054948676811049965', 'result_long': None, 'result_double': None}] Qualite : 0.054948676811049965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1790959 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386659, 0.054948676811049965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800919, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 6, 6, 27), 'result': '0.0408681048489511', 'result_long': None, 'result_double': None}] Qualite : 0.0408681048489511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1790959 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386660, 0.0408681048489511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800920, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 29), 'result': '0.03856288324551846', 'result_long': None, 'result_double': None}] Qualite : 0.03856288324551846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1790959 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386661, 0.03856288324551846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22746301 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': 2800921, 'mtr_portfolio_id': 22746301, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 56), 'result': '0.05090100322650896', 'result_long': None, 'result_double': None}] Qualite : 0.05090100322650896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746301 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_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}" where mtr_portfolio_id = 22746301 and dashboard_run_id = 1790959 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`=22746301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386662, 0.05090100322650896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, '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 = 22746900 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': 2800922, 'mtr_portfolio_id': 22746900, 'created_at': datetime.datetime(2025, 5, 7, 6, 8, 27), 'result': '0.050751273434838894', 'result_long': None, 'result_double': None}] Qualite : 0.050751273434838894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746900 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_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}" where mtr_portfolio_id = 22746900 and dashboard_run_id = 1790959 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`=22746900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386663, 0.050751273434838894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, '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 = 22747363 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': 2800923, 'mtr_portfolio_id': 22747363, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 30), 'result': '0.05098369322515066', 'result_long': None, 'result_double': None}] Qualite : 0.05098369322515066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747363 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_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}" where mtr_portfolio_id = 22747363 and dashboard_run_id = 1790959 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`=22747363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386664, 0.05098369322515066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, '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 = 22747808 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': 2800924, 'mtr_portfolio_id': 22747808, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 59), 'result': '0.05286859502594896', 'result_long': None, 'result_double': None}] Qualite : 0.05286859502594896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747808 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_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}" where mtr_portfolio_id = 22747808 and dashboard_run_id = 1790959 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`=22747808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386665, 0.05286859502594896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, '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 = 22748285 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': 2800925, 'mtr_portfolio_id': 22748285, 'created_at': datetime.datetime(2025, 5, 7, 6, 10, 29), 'result': '0.040572381966203545', 'result_long': None, 'result_double': None}] Qualite : 0.040572381966203545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748285 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_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}" where mtr_portfolio_id = 22748285 and dashboard_run_id = 1790959 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`=22748285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386666, 0.040572381966203545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, '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 = 22748931 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': 2800926, 'mtr_portfolio_id': 22748931, 'created_at': datetime.datetime(2025, 5, 7, 6, 16, 30), 'result': '0.04440606911211384', 'result_long': None, 'result_double': None}] Qualite : 0.04440606911211384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748931 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_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}" where mtr_portfolio_id = 22748931 and dashboard_run_id = 1790959 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`=22748931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386667, 0.04440606911211384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, '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 = 22749585 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': 2800781, 'mtr_portfolio_id': 22749585, 'created_at': datetime.datetime(2025, 5, 7, 5, 19), 'result': '0.013151463601640639', 'result_long': None, 'result_double': None}] Qualite : 0.013151463601640639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22749585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22749585 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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}" where mtr_portfolio_id = 22749585 and dashboard_run_id = 1790959 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`=22749585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386668, 0.013151463601640639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, '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 = 22750050 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': 2800928, 'mtr_portfolio_id': 22750050, 'created_at': datetime.datetime(2025, 5, 7, 6, 11, 29), 'result': '0.035525455797541246', 'result_long': None, 'result_double': None}] Qualite : 0.035525455797541246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750050 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_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}" where mtr_portfolio_id = 22750050 and dashboard_run_id = 1790959 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`=22750050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386669, 0.035525455797541246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, '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 = 22750360 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': 2800850, 'mtr_portfolio_id': 22750360, 'created_at': datetime.datetime(2025, 5, 7, 5, 46, 59), 'result': '0.04888496095988462', 'result_long': None, 'result_double': None}] Qualite : 0.04888496095988462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750360 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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}" where mtr_portfolio_id = 22750360 and dashboard_run_id = 1790959 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`=22750360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386670, 0.04888496095988462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, '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 = 22750640 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': 2801011, 'mtr_portfolio_id': 22750640, 'created_at': datetime.datetime(2025, 5, 7, 6, 3, 29), 'result': '0.03869306359170151', 'result_long': None, 'result_double': None}] Qualite : 0.03869306359170151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750640 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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}" where mtr_portfolio_id = 22750640 and dashboard_run_id = 1790959 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`=22750640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386671, 0.03869306359170151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, '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 = 22751196 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': 2801080, 'mtr_portfolio_id': 22751196, 'created_at': datetime.datetime(2025, 5, 7, 6, 24, 56), 'result': '0.043858363734555976', 'result_long': None, 'result_double': None}] Qualite : 0.043858363734555976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751196 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_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}" where mtr_portfolio_id = 22751196 and dashboard_run_id = 1790959 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`=22751196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386672, 0.043858363734555976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, '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 = 22751988 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': 2801158, 'mtr_portfolio_id': 22751988, 'created_at': datetime.datetime(2025, 5, 7, 6, 32, 57), 'result': '0.037025815144058845', 'result_long': None, 'result_double': None}] Qualite : 0.037025815144058845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751988 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_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}" where mtr_portfolio_id = 22751988 and dashboard_run_id = 1790959 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`=22751988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386673, 0.037025815144058845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, '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 = 22752170 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': 2801181, 'mtr_portfolio_id': 22752170, 'created_at': datetime.datetime(2025, 5, 7, 6, 48, 58), 'result': '0.062208916492780146', 'result_long': None, 'result_double': None}] Qualite : 0.062208916492780146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752170 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_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}" where mtr_portfolio_id = 22752170 and dashboard_run_id = 1790959 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`=22752170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386674, 0.062208916492780146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, '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 = 22752559 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': 2801229, 'mtr_portfolio_id': 22752559, 'created_at': datetime.datetime(2025, 5, 7, 7, 2, 57), 'result': '0.05807673542209003', 'result_long': None, 'result_double': None}] Qualite : 0.05807673542209003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752559 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_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}" where mtr_portfolio_id = 22752559 and dashboard_run_id = 1790959 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`=22752559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386675, 0.05807673542209003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, '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 = 22753186 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': 2801312, 'mtr_portfolio_id': 22753186, 'created_at': datetime.datetime(2025, 5, 7, 7, 19, 31), 'result': '0.033643019104665654', 'result_long': None, 'result_double': None}] Qualite : 0.033643019104665654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753186 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_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}" where mtr_portfolio_id = 22753186 and dashboard_run_id = 1790959 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`=22753186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386676, 0.033643019104665654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, '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 = 22753874 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': 2801388, 'mtr_portfolio_id': 22753874, 'created_at': datetime.datetime(2025, 5, 7, 7, 32, 58), 'result': '0.035783283909154806', 'result_long': None, 'result_double': None}] Qualite : 0.035783283909154806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753874 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_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}" where mtr_portfolio_id = 22753874 and dashboard_run_id = 1790959 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`=22753874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386677, 0.035783283909154806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, '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 = 22754426 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': 2801441, 'mtr_portfolio_id': 22754426, 'created_at': datetime.datetime(2025, 5, 7, 7, 48, 58), 'result': '0.03714356172185541', 'result_long': None, 'result_double': None}] Qualite : 0.03714356172185541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22754426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22754426 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_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}" where mtr_portfolio_id = 22754426 and dashboard_run_id = 1790959 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`=22754426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386678, 0.03714356172185541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, '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 = 22755041 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': 2801499, 'mtr_portfolio_id': 22755041, 'created_at': datetime.datetime(2025, 5, 7, 8, 2, 59), 'result': '0.03978187668506218', 'result_long': None, 'result_double': None}] Qualite : 0.03978187668506218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755041 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_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}" where mtr_portfolio_id = 22755041 and dashboard_run_id = 1790959 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`=22755041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386679, 0.03978187668506218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, '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 = 22755575 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': 2801563, 'mtr_portfolio_id': 22755575, 'created_at': datetime.datetime(2025, 5, 7, 8, 19), 'result': '0.03788803038641343', 'result_long': None, 'result_double': None}] Qualite : 0.03788803038641343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755575 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_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}" where mtr_portfolio_id = 22755575 and dashboard_run_id = 1790959 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`=22755575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386680, 0.03788803038641343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, '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 = 22756353 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': 2801643, 'mtr_portfolio_id': 22756353, 'created_at': datetime.datetime(2025, 5, 7, 8, 32, 57), 'result': '0.04501757045986341', 'result_long': None, 'result_double': None}] Qualite : 0.04501757045986341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756353 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_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}" where mtr_portfolio_id = 22756353 and dashboard_run_id = 1790959 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`=22756353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386681, 0.04501757045986341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, '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 = 22756932 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': 2801694, 'mtr_portfolio_id': 22756932, 'created_at': datetime.datetime(2025, 5, 7, 8, 48, 58), 'result': '0.05114577257248475', 'result_long': None, 'result_double': None}] Qualite : 0.05114577257248475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756932 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_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}" where mtr_portfolio_id = 22756932 and dashboard_run_id = 1790959 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`=22756932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386682, 0.05114577257248475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, '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 = 22757570 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': 2801767, 'mtr_portfolio_id': 22757570, 'created_at': datetime.datetime(2025, 5, 7, 9, 2, 58), 'result': '0.035758572732979894', 'result_long': None, 'result_double': None}] Qualite : 0.035758572732979894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22757570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22757570 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_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}" where mtr_portfolio_id = 22757570 and dashboard_run_id = 1790959 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`=22757570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386683, 0.035758572732979894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, '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 = 22758740 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': 2801954, 'mtr_portfolio_id': 22758740, 'created_at': datetime.datetime(2025, 5, 7, 9, 49), 'result': '0.02286731114836762', 'result_long': None, 'result_double': None}] Qualite : 0.02286731114836762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22758740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22758740 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_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}" where mtr_portfolio_id = 22758740 and dashboard_run_id = 1790959 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`=22758740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386684, 0.02286731114836762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, '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 = 22759267 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': 2802023, 'mtr_portfolio_id': 22759267, 'created_at': datetime.datetime(2025, 5, 7, 10, 2, 59), 'result': '0.027058893693445267', 'result_long': None, 'result_double': None}] Qualite : 0.027058893693445267 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759267 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_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}" where mtr_portfolio_id = 22759267 and dashboard_run_id = 1790959 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`=22759267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386685, 0.027058893693445267, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, '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 = 22759893 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': 2802101, 'mtr_portfolio_id': 22759893, 'created_at': datetime.datetime(2025, 5, 7, 10, 18, 57), 'result': '0.033788395445633244', 'result_long': None, 'result_double': None}] Qualite : 0.033788395445633244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759893 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_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, 'pht': 3726}}" where mtr_portfolio_id = 22759893 and dashboard_run_id = 1790959 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`=22759893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386686, 0.033788395445633244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, '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 = 22760380 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': 2802155, 'mtr_portfolio_id': 22760380, 'created_at': datetime.datetime(2025, 5, 7, 10, 32, 58), 'result': '0.04240202959805457', 'result_long': None, 'result_double': None}] Qualite : 0.04240202959805457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22760380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760380_07-05-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22760380 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_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, 'pht': 3726}}" where mtr_portfolio_id = 22760380 and dashboard_run_id = 1790959 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`=22760380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386687, 0.04240202959805457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, '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 = 22760869 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': 2802224, 'mtr_portfolio_id': 22760869, 'created_at': datetime.datetime(2025, 5, 7, 10, 49), 'result': '0.04259704223216513', 'result_long': None, 'result_double': None}] Qualite : 0.04259704223216513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22760869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760869_07-05-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22760869 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_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, 'pht': 3726}}" where mtr_portfolio_id = 22760869 and dashboard_run_id = 1790959 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`=22760869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386688, 0.04259704223216513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, '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 = 22761425 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': 2802288, 'mtr_portfolio_id': 22761425, 'created_at': datetime.datetime(2025, 5, 7, 11, 2, 59), 'result': '0.06326683110960678', 'result_long': None, 'result_double': None}] Qualite : 0.06326683110960678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22761425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761425_07-05-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22761425 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_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, 'pht': 3726}}" where mtr_portfolio_id = 22761425 and dashboard_run_id = 1790959 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`=22761425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386689, 0.06326683110960678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, '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 = 22761940 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': 2802358, 'mtr_portfolio_id': 22761940, 'created_at': datetime.datetime(2025, 5, 7, 11, 18, 59), 'result': '0.028265475467537108', 'result_long': None, 'result_double': None}] Qualite : 0.028265475467537108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22761940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761940_07-05-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22761940 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_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, 'pht': 3726}}" where mtr_portfolio_id = 22761940 and dashboard_run_id = 1790959 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`=22761940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386690, 0.028265475467537108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, '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 = 22762781 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': 2802422, 'mtr_portfolio_id': 22762781, 'created_at': datetime.datetime(2025, 5, 7, 11, 32, 59), 'result': '0.046870817234399384', 'result_long': None, 'result_double': None}] Qualite : 0.046870817234399384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22762781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22762781_07-05-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22762781 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_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, 'pht': 3726}}" where mtr_portfolio_id = 22762781 and dashboard_run_id = 1790959 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`=22762781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386691, 0.046870817234399384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, '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 = 22763290 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': 2802498, 'mtr_portfolio_id': 22763290, 'created_at': datetime.datetime(2025, 5, 7, 11, 48, 59), 'result': '0.06704321756612183', 'result_long': None, 'result_double': None}] Qualite : 0.06704321756612183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22763290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22763290_07-05-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22763290 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_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, 'pht': 3726}}" where mtr_portfolio_id = 22763290 and dashboard_run_id = 1790959 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`=22763290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386692, 0.06704321756612183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, '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 = 22764124 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': 2802560, 'mtr_portfolio_id': 22764124, 'created_at': datetime.datetime(2025, 5, 7, 12, 4, 58), 'result': '0.030341781831300974', 'result_long': None, 'result_double': None}] Qualite : 0.030341781831300974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22764124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22764124_07-05-2025_12_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22764124 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_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, 'pht': 3726}}" where mtr_portfolio_id = 22764124 and dashboard_run_id = 1790959 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`=22764124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386693, 0.030341781831300974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, '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 = 22765102 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': 2802638, 'mtr_portfolio_id': 22765102, 'created_at': datetime.datetime(2025, 5, 7, 13, 36, 1), 'result': '0.04088849010131036', 'result_long': None, 'result_double': None}] Qualite : 0.04088849010131036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22765102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22765102_07-05-2025_13_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22765102 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_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, 'pht': 3726}}" where mtr_portfolio_id = 22765102 and dashboard_run_id = 1790959 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`=22765102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386694, 0.04088849010131036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, '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 = 22766964 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': 2802974, 'mtr_portfolio_id': 22766964, 'created_at': datetime.datetime(2025, 5, 7, 14, 3), 'result': '0.04683270693083198', 'result_long': None, 'result_double': None}] Qualite : 0.04683270693083198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22766964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22766964_07-05-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22766964 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_P22766964_07-05-2025_14_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22767008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767014, 'pht': 3726}}" where mtr_portfolio_id = 22766964 and dashboard_run_id = 1790961 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`=22766964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386695, 0.04683270693083198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22766964_07-05-2025_14_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22767008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767014, '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 = 22767781 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': 2803075, 'mtr_portfolio_id': 22767781, 'created_at': datetime.datetime(2025, 5, 7, 14, 22, 58), 'result': '0.0651850901272131', 'result_long': None, 'result_double': None}] Qualite : 0.0651850901272131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22767781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22767781_07-05-2025_14_22_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22767781 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_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, 'pht': 3726}}" where mtr_portfolio_id = 22767781 and dashboard_run_id = 1790961 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`=22767781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386696, 0.0651850901272131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, '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 = 22768655 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': 2803136, 'mtr_portfolio_id': 22768655, 'created_at': datetime.datetime(2025, 5, 7, 14, 34, 58), 'result': '0.061476299697147664', 'result_long': None, 'result_double': None}] Qualite : 0.061476299697147664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22768655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22768655_07-05-2025_14_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22768655 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_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, 'pht': 3726}}" where mtr_portfolio_id = 22768655 and dashboard_run_id = 1790961 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`=22768655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386697, 0.061476299697147664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, '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 = 22769438 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': 2803189, 'mtr_portfolio_id': 22769438, 'created_at': datetime.datetime(2025, 5, 7, 14, 44, 56), 'result': '0.03166414520541099', 'result_long': None, 'result_double': None}] Qualite : 0.03166414520541099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22769438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_44_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22769438 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_P22769438_07-05-2025_14_44_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, 'pht': 3726}}" where mtr_portfolio_id = 22769438 and dashboard_run_id = 1790961 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`=22769438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386698, 0.03166414520541099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_44_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, '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 (22740041,22741189,22741710,22742314,22743939,22744354,22744792,22745552,22745924,22746301,22746900,22747363,22747808,22748285,22748931,22749585,22750050,22750360,22750640,22751196,22751988,22752170,22752559,22753186,22753874,22754426,22755041,22755575,22756353,22756932,22757570,22758740,22759267,22759893,22760380,22760869,22761425,22761940,22762781,22763290,22764124,22765102,22766964,22767781,22768655,22769438) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,), (1356533731,), (1356533754,), (1356533782,), (1356533815,), (1356533856,), (1356534880,), (1356534890,), (1356534942,), (1356534970,), (1356535000,), (1356535530,), (1356535601,), (1356535647,), (1356536690,), (1356536742,), (1356536792,), (1356536816,), (1356537259,), (1356537293,), (1356537324,), (1356537365,), (1356537396,), (1356538843,), (1356538848,), (1356538852,), (1356538856,), (1356551892,), (1356551883,), (1356551888,), (1356551890,), (1356552007,), (1356552011,), (1356552031,), (1356552173,), (1356552180,), (1356552208,), (1356552234,), (1356552260,), (1356552263,), (1356552266,), (1356552269,), (1356552740,), (1356552754,), (1356552757,), (1356552759,), (1356552897,), (1356552899,), (1356552901,), (1356552908,), (1356552920,), (1356553268,), (1356553293,), (1356553318,), (1356553342,), (1356553365,), (1356553686,), (1356553770,), (1356553774,), (1356553784,), (1356553853,), (1356553856,), (1356553858,), (1356553898,), (1356553907,), (1356553909,), (1356553912,), (1356553915,), (1356553919,), (1356553949,), (1356553999,), (1356554078,), (1356554150,), (1356554223,), (1356554229,), (1356554230,), (1356554232,), (1356554290,), (1356554321,), (1356554356,), (1356554390,), (1356554427,), (1356554447,), (1356554451,), (1356554474,), (1356554480,), (1356554508,), (1356554534,), (1356554715,), (1356554717,), (1356554718,), (1356554720,), (1356554723,), (1356554775,), (1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,), (1356570872,), (1356570900,), (1356570928,), (1356571270,), (1356571296,), (1356571325,), (1356571362,), (1356571392,), (1356571492,), (1356571494,), (1356571520,), (1356571525,), (1356571528,), (1356571529,), (1356571739,), (1356571767,), (1356571795,), (1356571822,), (1356571848,), (1356572115,), (1356572117,), (1356572119,), (1356572121,), (1356572124,), (1356572253,), (1356572254,), (1356572256,), (1356572258,), (1356572299,), (1356572308,), (1356572312,), (1356572316,), (1356572505,), (1356572583,), (1356572610,), (1356572643,), (1356572667,), (1356572695,), (1356572847,), (1356572848,), (1356572849,), (1356572945,), (1356572983,), (1356573007,), (1356573031,), (1356573357,), (1356573389,), (1356573689,), (1356573713,), (1356575159,), (1356575235,), (1356575267,), (1356575306,), (1356575460,), (1356575475,), (1356575487,), (1356575510,), (1356575789,), (1356575727,), (1356575759,), (1356576071,), (1356576097,), (1356576130,), (1356576159,), (1356576662,), (1356576712,), (1356576743,), (1356576747,), (1356576771,), (1356576803,), (1356576805,), (1356576807,), (1356576809,), (1356576830,), (1356576832,), (1356576834,), (1356576837,), (1356576868,), (1356576870,), (1356576871,), (1356576872,), (1356576873,), (1356576875,), (1356576910,), (1356576913,), (1356576915,), (1356576956,), (1356576957,), (1356576958,), (1356576959,), (1356576961,), (1356576985,), (1356576986,), (1356576987,), (1356576988,), (1356577018,), (1356577019,), (1356577021,), (1356577141,), (1356577186,), (1356577188,), (1356577212,), (1356577214,), (1356577242,), (1356577238,), (1356577272,), (1356577280,), (1356577282,), (1356577284,), (1356577286,), (1356577288,), (1356577421,), (1356577445,), (1356577467,), (1356577489,), (1356577819,), (1356577847,), (1356577872,), (1356578109,), (1356578111,), (1356578112,), (1356578113,), (1356578115,), (1356578159,), (1356578160,), (1356578161,), (1356578162,), (1356578164,), (1356578165,), (1356578194,), (1356578207,), (1356578230,), (1356578261,), (1356578290,), (1356578332,), (1356578895,), (1356578940,), (1356579576,), (1356579616,), (1356579624,), (1356579625,), (1356579763,), (1356579764,), (1356579765,), (1356579766,), (1356579768,), (1356580017,), (1356580068,), (1356580069,), (1356580071,), (1356580295,), (1356580320,), (1356580343,), (1356580417,), (1356580517,), (1356580548,), (1356580826,), (1356580827,), (1356580828,), (1356580829,), (1356580830,), (1356581077,), (1356581102,), (1356581128,), (1356581329,), (1356581333,), (1356581334,), (1356581336,), (1356581338,), (1356581340,), (1356581387,), (1356581384,), (1356581385,), (1356581386,), (1356581428,), (1356581429,), (1356581430,), (1356581432,), (1356581459,), (1356581460,), (1356581487,), (1356581488,), (1356581511,), (1356581514,), (1356581515,), (1356581517,), (1356581519,), (1356581541,), (1356581542,), (1356581543,), (1356581544,), (1356581546,), (1356581571,), (1356581572,), (1356581573,), (1356581574,), (1356581630,), (1356581632,), (1356581653,), (1356581706,), (1356581709,), (1356581711,), (1356581713,), (1356581718,), (1356581738,), (1356581742,), (1356581744,), (1356581746,), (1356581748,), (1356581804,), (1356581806,), (1356581808,), (1356581993,), (1356581998,), (1356582017,), (1356582045,), (1356582069,), (1356582104,), (1356582163,), (1356582167,), (1356582215,), (1356582261,), (1356582270,), (1356582272,), (1356582274,), (1356582277,), (1356582283,), (1356582297,), (1356582303,), (1356582307,), (1356582311,), (1356582313,), (1356582315,), (1356582316,), (1356582355,), (1356582352,), (1356582353,), (1356582354,), (1356582373,), (1356582375,), (1356582377,), (1356582380,), (1356582383,), (1356582385,), (1356582408,), (1356582409,), (1356582410,), (1356582435,), (1356582436,), (1356582437,), (1356582438,), (1356582471,), (1356582473,), (1356582523,), (1356582554,), (1356582588,), (1356582700,), (1356582955,), (1356583810,), (1356583836,), (1356583872,), (1356583905,), (1356583939,), (1356584522,), (1356584587,), (1356584589,), (1356584711,), (1356584713,), (1356584737,), (1356584738,), (1356584740,), (1356584742,), (1356584744,), (1356584747,), (1356585201,), (1356585204,), (1356585206,), (1356585208,), (1356585210,), (1356585478,), (1356585508,), (1356585539,), (1356585592,), (1356585645,), (1356586130,), (1356586171,), (1356586222,), (1356586981,), (1356587007,), (1356587021,), (1356587023,), (1356587026,), (1356587825,), (1356587882,), (1356587943,), (1356588003,), (1356588058,), (1356588677,), (1356588542,), (1356588577,), (1356588610,), (1356588647,), (1356588786,), (1356588816,), (1356588843,), (1356588871,), (1356588899,), (1356588978,), (1356588980,), (1356588982,), (1356588986,), (1356588988,), (1356588990,), (1356589016,), (1356589019,), (1356589021,), (1356589023,), (1356589042,), (1356589045,), (1356589049,), (1356589051,), (1356589073,), (1356589077,), (1356589080,), (1356589082,), (1356589086,), (1356589098,), (1356589100,), (1356589103,), (1356589105,), (1356589107,), (1356589110,), (1356589148,), (1356589150,), (1356589178,), (1356589180,), (1356589182,), (1356589184,), (1356589213,), (1356589227,), (1356589230,), (1356589232,), (1356589235,), (1356589237,), (1356589296,), (1356589298,), (1356589366,), (1356600110,), (1356600041,), (1356600533,), (1356601688,), (1356602732,), (1356602733,), (1356602758,), (1356602760,), (1356603106,), (1356603132,), (1356603263,), (1356603356,), (1356603457,), (1356603478,), (1356603804,), (1356603806,), (1356603807,), (1356603808,), (1356603811,), (1356603813,), (1356603840,), (1356603836,), (1356603837,), (1356603838,), (1356603865,), (1356603867,), (1356603869,), (1356603872,), (1356603877,), (1356603882,), (1356603905,), (1356603906,), (1356603907,), (1356603908,), (1356603934,), (1356603935,), (1356603936,), (1356603937,), (1356603938,), (1356603940,), (1356603980,), (1356603982,), (1356603984,), (1356604029,), (1356604033,), (1356604035,), (1356604037,), (1356604063,), (1356604066,), (1356604069,), (1356604071,), (1356604074,), (1356604109,), (1356604112,), (1356604116,), (1356604120,), (1356604184,), (1356604187,), (1356604188,), (1356604189,), (1356604191,), (1356604192,), (1356604218,), (1356604219,), (1356604220,), (1356604222,), (1356604265,), (1356604266,), (1356604267,), (1356604268,), (1356604270,), (1356604272,), (1356604352,), (1356604377,), (1356604403,), (1356604432,), (1356604614,), (1356604615,), (1356604616,), (1356604617,), (1356604618,), (1356604637,), (1356604881,), (1356604882,), (1356604903,), (1356604923,), (1356605008,), (1356605040,), (1356605105,), (1356605168,), (1356605175,), (1356605191,), (1356605209,), (1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,), (1356607156,), (1356607158,), (1356607160,), (1356607161,), (1356607162,), (1356607165,), (1356607200,), (1356607197,), (1356607198,), (1356607462,), (1356607488,), (1356607515,), (1356607541,), (1356607566,), (1356607592,), (1356607688,), (1356607689,), (1356607690,), (1356607691,), (1356607693,), (1356607727,), (1356607728,), (1356607729,), (1356607730,), (1356607731,), (1356607771,), (1356607772,), (1356607773,), (1356607775,), (1356607776,), (1356607778,), (1356607818,), (1356607819,), (1356607820,), (1356607873,), (1356607875,), (1356607876,), (1356607877,), (1356607878,), (1356607880,), (1356607905,), (1356607906,), (1356607907,), (1356607908,), (1356607938,), (1356607939,), (1356607940,), (1356607941,), (1356607942,), (1356607972,), (1356607978,), (1356607980,), (1356607981,), (1356607999,), (1356608007,), (1356608015,), (1356608017,), (1356608020,), (1356608022,), (1356608044,), (1356608046,), (1356608049,), (1356608050,), (1356608053,), (1356608056,), (1356608074,), (1356608101,), (1356608130,), (1356608157,), (1356609466,), (1356609470,), (1356609475,), (1356609479,), (1356609591,), (1356609611,), (1356609640,), (1356609678,), (1356609706,), (1356609738,), (1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,), (1356610554,), (1356610557,), (1356610559,), (1356610561,), (1356610563,), (1356610566,), (1356610589,), (1356610593,), (1356610595,), (1356610597,), (1356610600,), (1356610646,), (1356610639,), (1356610641,), (1356610642,), (1356610643,), (1356610645,), (1356610670,), (1356610672,), (1356610674,), (1356610677,), (1356610681,), (1356610706,), (1356610707,), (1356610710,), (1356610714,), (1356610718,), (1356610720,), (1356610743,), (1356610744,), (1356610747,), (1356610749,), (1356610778,), (1356610784,), (1356610785,), (1356610788,), (1356610791,), (1356610792,), (1356610884,), (1356610888,), (1356610891,), (1356610899,), (1356610938,), (1356610940,), (1356610942,), (1356610944,), (1356610947,), (1356610951,), (1356610971,), (1356610974,), (1356610976,), (1356610978,), (1356611016,), (1356611017,), (1356611020,), (1356611022,), (1356611025,), (1356611058,), (1356611060,), (1356611063,), (1356611064,), (1356611067,), (1356611069,), (1356611108,), (1356611111,), (1356611115,), (1356611117,), (1356611121,), (1356611123,), (1356611152,), (1356611155,), (1356611157,), (1356611159,), (1356611161,), (1356611165,), (1356611188,), (1356611190,), (1356611193,), (1356611195,), (1356611199,), (1356611216,), (1356611218,), (1356611220,), (1356611222,), (1356611226,), (1356611250,), (1356611254,), (1356611256,), (1356611258,), (1356611263,), (1356611342,), (1356611332,), (1356611334,), (1356611336,), (1356611338,), (1356611368,), (1356611370,), (1356611372,), (1356611374,), (1356611379,), (1356611382,), (1356611410,), (1356611412,), (1356611414,), (1356611416,), (1356611420,), (1356611463,), (1356611466,), (1356611468,), (1356611472,), (1356611475,), (1356611477,), (1356611513,), (1356611515,), (1356611517,), (1356611521,), (1356611554,), (1356611558,), (1356611561,), (1356611564,), (1356611567,), (1356611570,), (1356611602,), (1356611604,), (1356611606,), (1356611648,), (1356611661,), (1356611663,), (1356611667,), (1356611670,), (1356611695,), (1356611699,), (1356611702,), (1356611705,), (1356611707,), (1356611711,), (1356611742,), (1356611745,), (1356611749,), (1356611752,), (1356611802,), (1356611806,), (1356611809,), (1356611812,), (1356611816,), (1356611820,), (1356611859,), (1356611863,), (1356611866,), (1356611870,), (1356611901,), (1356611906,), (1356611909,), (1356611942,), (1356611944,), (1356611946,), (1356611948,), (1356611952,), (1356611982,), (1356611985,), (1356611988,), (1356611991,), (1356611995,), (1356611997,), (1356612034,), (1356612016,), (1356612018,), (1356612020,), (1356612022,), (1356612026,), (1356612053,), (1356612055,), (1356612057,), (1356612083,), (1356612085,), (1356612087,), (1356612091,), (1356612096,), (1356612099,), (1356612138,), (1356612140,), (1356612142,), (1356612144,), (1356612181,), (1356612183,), (1356612185,), (1356612233,), (1356612235,), (1356612237,), (1356612239,), (1356612241,), (1356612245,), (1356612299,), (1356612302,), (1356612305,), (1356612309,), (1356612333,), (1356612335,), (1356612337,), (1356612339,), (1356612341,), (1356612379,), (1356612382,), (1356612386,), (1356612389,), (1356612391,), (1356612393,), (1356612423,), (1356612436,), (1356612438,), (1356612440,), (1356612442,), (1356612500,), (1356612503,), (1356612505,), (1356612507,), (1356612509,), (1356612549,), (1356612577,), (1356612605,), (1356612631,), (1356612660,), (1356612990,), (1356613017,), (1356613050,), (1356613105,), (1356613154,), (1356614058,), (1356614070,), (1356614099,), (1356614129,), (1356614178,), (1356614187,), (1356614274,), (1356614265,), (1356614268,), (1356614271,), (1356614315,), (1356614319,), (1356614322,), (1356614325,), (1356614328,), (1356614365,), (1356614369,), (1356614372,), (1356614411,), (1356614416,), (1356614418,), (1356614421,), (1356614424,), (1356614466,), (1356614470,), (1356614473,), (1356614476,), (1356614480,), (1356614511,), (1356614524,), (1356614527,), (1356614531,), (1356614535,), (1356614565,), (1356614568,), (1356614573,), (1356614577,), (1356614582,), (1356614586,), (1356614610,), (1356614613,), (1356614617,), (1356614620,), (1356614649,), (1356614652,), (1356614655,), (1356614659,), (1356614664,), (1356614666,), (1356614720,), (1356614724,), (1356614741,), (1356614745,), (1356614746,), (1356614827,), (1356614829,), (1356614831,), (1356614832,), (1356614835,), (1356614889,), (1356614892,), (1356614896,), (1356614899,), (1356614903,), (1356614905,), (1356614960,), (1356614961,), (1356614965,), (1356614968,), (1356614971,), (1356615014,), (1356615017,), (1356615021,), (1356615024,), (1356615026,), (1356615029,), (1356615084,), (1356615093,), (1356615097,), (1356615099,), (1356615103,), (1356615175,), (1356615154,), (1356615163,), (1356615166,), (1356615168,), (1356615173,), (1356615207,), (1356615211,), (1356615214,), (1356615218,), (1356615222,), (1356615258,), (1356615270,), (1356615297,), (1356615306,), (1356615308,), (1356615414,), (1356615419,), (1356615438,), (1356615456,), (1356615472,), (1356615579,), (1356615589,), (1356615593,), (1356615699,), (1356615704,), (1356615707,), (1356615712,), (1356615715,), (1356615718,), (1356615764,), (1356615774,), (1356615777,), (1356616179,), (1356616206,), (1356616251,), (1356616286,), (1356616319,), (1356616327,), (1356616472,), (1356616478,), (1356616483,), (1356616488,), (1356616491,), (1356616631,), (1356616634,), (1356616637,), (1356616648,), (1356616673,), (1356616702,), (1356616793,), (1356616798,), (1356616802,), (1356616811,), (1356616851,), (1356616878,), (1356617072,), (1356617101,), (1356617119,), (1356617123,), (1356617223,), (1356617229,), (1356617237,), (1356617245,), (1356617249,), (1356617252,), (1356617298,), (1356617301,), (1356617304,), (1356617356,), (1356617367,), (1356617372,), (1356617375,), (1356617380,), (1356617384,), (1356617500,), (1356617479,), (1356617482,), (1356617486,), (1356617489,), (1356617495,), (1356617547,), (1356617554,), (1356617565,), (1356617612,), (1356617616,), (1356617619,), (1356617624,), (1356617628,), (1356617632,), (1356617676,), (1356617681,), (1356617685,), (1356617687,), (1356617889,), (1356617895,), (1356617898,), (1356617902,), (1356617947,), (1356617949,), (1356617952,), (1356617954,), (1356617955,), (1356617957,), (1356617987,), (1356617993,), (1356617995,), (1356617997,), (1356618002,), (1356618027,), (1356618029,), (1356618033,), (1356618038,), (1356618041,), (1356618069,), (1356618071,), (1356618074,), (1356618168,), (1356618181,), (1356618186,), (1356618188,), (1356618201,), (1356618214,), (1356618270,), (1356618273,), (1356618276,), (1356618278,), (1356618279,), (1356618407,), (1356618411,), (1356618416,), (1356618418,), (1356618465,), (1356618471,), (1356618475,), (1356618488,), (1356618496,), (1356618504,), (1356618557,), (1356618567,), (1356618570,), (1356618574,), (1356618590,), (1356618667,), (1356618680,), (1356618686,), (1356618688,), (1356618824,), (1356618806,), (1356618810,), (1356618814,), (1356618816,), (1356618820,), (1356618849,), (1356618853,), (1356618865,), (1356618867,), (1356618903,), (1356618907,), (1356618909,), (1356618912,), (1356618916,), (1356618920,), (1356618950,), (1356618953,), (1356618956,), (1356619024,), (1356619030,), (1356619038,), (1356619045,), (1356619048,), (1356619069,), (1356619204,), (1356619208,), (1356619216,), (1356619219,), (1356619222,), (1356619226,), (1356619315,), (1356619326,), (1356619330,), (1356619367,), (1356619369,), (1356619373,), (1356619376,), (1356619380,), (1356619384,), (1356619429,), (1356619439,), (1356619447,), (1356619454,), (1356619548,), (1356619555,), (1356619564,), (1356619568,), (1356619571,), (1356619656,), (1356619659,), (1356619686,), (1356619690,), (1356619696,), (1356619716,), (1356619938,), (1356619943,), (1356619948,), (1356620144,), (1356620173,), (1356620206,), (1356620229,), (1356620259,), (1356620288,), (1356620689,), (1356620714,), (1356620775,), (1356620826,), (1356621295,), (1356621103,), (1356621204,), (1356621235,), (1356621265,), (1356621568,), (1356621598,), (1356621625,), (1356621658,), (1356621756,), (1356621782,), (1356621807,), (1356621834,), (1356621871,), (1356622044,), (1356622048,), (1356622051,), (1356622055,), (1356622070,), (1356622116,), (1356622120,), (1356622123,), (1356622209,), (1356622213,), (1356622217,), (1356622222,), (1356622269,), (1356622270,), (1356622272,), (1356622274,), (1356622283,), (1356622286,), (1356622358,), (1356622365,), (1356622369,), (1356622452,), (1356622454,), (1356622456,), (1356622458,), (1356622459,), (1356622463,), (1356622504,), (1356622517,), (1356622523,), (1356622527,), (1356622638,), (1356622668,), (1356622674,), (1356622685,), (1356622699,), (1356622704,), (1356622783,), (1356622807,), (1356622814,), (1356622826,), (1356622960,), (1356622984,), (1356623054,), (1356623083,), (1356623110,), (1356623137,), (1356623287,), (1356623295,), (1356623308,), (1356623335,), (1356623602,), (1356623614,), (1356623618,), (1356623619,), (1356623620,), (1356623625,), (1356623771,), (1356623753,), (1356623757,), (1356623761,), (1356623765,), (1356623767,), (1356623801,), (1356623804,), (1356623806,), (1356624009,), (1356624012,), (1356624018,), (1356624025,), (1356624034,), (1356624037,), (1356624134,), (1356624135,), (1356624137,), (1356624139,), (1356624142,), (1356624208,), (1356624211,), (1356624225,), (1356624240,), (1356624244,), (1356624407,), (1356624413,), (1356624415,), (1356624417,), (1356624419,), (1356624421,), (1356624506,), (1356624533,), (1356624563,), (1356624806,), (1356624809,), (1356624812,), (1356624816,), (1356624819,), (1356624881,), (1356624884,), (1356624887,), (1356624890,), (1356625099,), (1356625116,), (1356625124,), (1356625263,), (1356625265,), (1356625267,), (1356625269,), (1356625313,), (1356625318,), (1356625320,), (1356625323,), (1356625330,), (1356625343,), (1356625441,), (1356625469,), (1356625473,), (1356625527,), (1356625530,), (1356625531,), (1356625534,), (1356625536,), (1356625542,), (1356625580,), (1356625586,), (1356625591,), (1356625602,), (1356625606,), (1356625730,), (1356625723,), (1356625724,), (1356625727,), (1356625781,), (1356625793,), (1356625798,), (1356625801,), (1356625804,), (1356625845,), (1356625847,), (1356625850,), (1356625856,), (1356625925,), (1356625927,), (1356625932,), (1356625937,), (1356626066,), (1356626099,), (1356626129,), (1356626160,), (1356626195,), (1356626223,), (1356626473,), (1356626477,), (1356626480,), (1356626483,), (1356626765,), (1356626773,), (1356626782,), (1356626790,), (1356626842,), (1356626845,), (1356626849,), (1356626854,), (1356626859,), (1356626864,), (1356626893,), (1356626896,), (1356626899,), (1356626950,), (1356626953,), (1356626959,), (1356626962,), (1356626967,), (1356626972,), (1356627044,), (1356627050,), (1356627065,), (1356627068,), (1356627073,), (1356627076,), (1356627137,), (1356627140,), (1356627147,), (1356627151,), (1356627238,), (1356627254,), (1356627257,), (1356627265,), (1356627286,), (1356627310,), (1356627470,), (1356627474,), (1356627477,), (1356627483,), (1356627491,), (1356627497,), (1356627570,), (1356627577,), (1356627579,), (1356627738,), (1356627623,), (1356627626,), (1356627651,), (1356627678,), (1356627709,), (1356627966,), (1356627968,), (1356627970,), (1356628011,), (1356628017,), (1356628022,), (1356628027,), (1356628028,), (1356628031,), (1356628194,), (1356628202,), (1356628204,), (1356628206,), (1356628209,), (1356628263,), (1356628271,), (1356628281,), (1356628287,), (1356628291,), (1356628408,), (1356628410,), (1356628411,), (1356628413,), (1356628416,), (1356628468,), (1356628472,), (1356628475,), (1356628479,), (1356628506,), (1356628628,), (1356628631,), (1356628633,), (1356628635,), (1356628638,), (1356628692,), (1356628697,), (1356628700,), (1356628703,), (1356628705,), (1356628708,), (1356628748,), (1356628752,), (1356628756,), (1356628759,), (1356628761,), (1356628789,), (1356628796,), (1356628798,), (1356628801,), (1356628804,), (1356628807,), (1356628831,), (1356628834,), (1356628837,), (1356628841,), (1356628845,), (1356628868,), (1356628870,), (1356628873,), (1356628882,), (1356628887,), (1356628941,), (1356628947,), (1356628953,), (1356628960,), (1356628967,), (1356628971,), (1356629011,), (1356632675,), (1356632720,), (1356632723,), (1356632726,), (1356632728,), (1356632732,), (1356632735,), (1356632768,), (1356632773,), (1356632777,), (1356632782,), (1356632849,), (1356632873,), (1356632878,), (1356632881,), (1356632883,), (1356632887,), (1356632890,), (1356633048,), (1356633051,), (1356633055,), (1356633058,), (1356633102,), (1356633104,), (1356633107,), (1356633110,), (1356633113,), (1356633142,), (1356633145,), (1356633147,), (1356633151,), (1356633154,), (1356633165,), (1356633203,), (1356633218,), (1356633229,), (1356633264,), (1356633267,), (1356633269,), (1356633270,), (1356633272,), (1356633274,), (1356633309,), (1356633311,), (1356633319,), (1356633323,), (1356633423,), (1356633432,), (1356633439,), (1356633449,), (1356633454,), (1356633477,), (1356633782,), (1356633783,), (1356633787,), (1356633792,), (1356633802,), (1356633803,), (1356633867,), (1356633869,), (1356633870,), (1356633872,), (1356633873,), (1356633876,), (1356633911,), (1356633913,), (1356633915,), (1356633917,), (1356633922,), (1356633977,), (1356633979,), (1356633981,), (1356633982,), (1356633985,), (1356633987,), (1356634032,), (1356634015,), (1356634019,), (1356634021,), (1356634024,), (1356634028,), (1356634118,), (1356634125,), (1356634129,), (1356634132,), (1356634136,), (1356634140,), (1356634195,), (1356634197,), (1356634200,), (1356634203,), (1356634206,), (1356634230,), (1356634232,), (1356634235,), (1356634238,), (1356634240,), (1356634242,), (1356634275,), (1356634277,), (1356634279,), (1356634281,), (1356634347,), (1356634357,), (1356634361,), (1356634366,), (1356634368,), (1356634370,), (1356634538,), (1356634563,), (1356634590,), (1356634616,), (1356634643,), (1356634965,), (1356634997,), (1356635024,), (1356635054,), (1356635080,), (1356635108,), (1356635343,), (1356635366,), (1356635395,), (1356635727,), (1356635733,), (1356635735,), (1356635737,), (1356635740,), (1356635742,), (1356635770,), (1356635772,), (1356635773,), (1356635774,), (1356635776,), (1356635790,), (1356635813,), (1356635814,), (1356635819,), (1356636174,), (1356636223,), (1356636274,), (1356636324,), (1356637736,), (1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,), (1356640565,), (1356640570,), (1356640575,), (1356640580,), (1356640583,), (1356640589,), (1356640618,), (1356640621,), (1356640625,), (1356640628,), (1356640691,), (1356640671,), (1356640675,), (1356640678,), (1356640683,), (1356640687,), (1356640732,), (1356640735,), (1356640773,), (1356640982,), (1356641088,), (1356641091,), (1356641094,), (1356641098,), (1356641103,), (1356641106,), (1356641144,), (1356641147,), (1356641150,), (1356641153,), (1356641155,), (1356641209,), (1356641212,), (1356641215,), (1356641218,), (1356641222,), (1356641302,), (1356641306,), (1356641308,), (1356641311,), (1356641314,), (1356641363,), (1356641368,), (1356641372,), (1356641375,), (1356641414,), (1356641421,), (1356641429,), (1356641477,), (1356641482,), (1356641486,), (1356641520,), (1356641524,), (1356641526,), (1356641529,), (1356641572,), (1356641578,), (1356641581,), (1356641585,), (1356641589,), (1356641592,), (1356641635,), (1356641638,), (1356641642,), (1356641692,), (1356641700,), (1356641708,), (1356641710,), (1356641715,), (1356641719,), (1356641828,), (1356641875,), (1356641878,), (1356641882,), (1356641924,), (1356641926,), (1356641929,), (1356641932,), (1356641936,), (1356641941,), (1356641991,), (1356641996,), (1356642003,), (1356642014,), (1356642019,), (1356642103,), (1356642086,), (1356642090,), (1356642093,), (1356642098,), (1356642147,), (1356642151,), (1356642156,), (1356642164,), (1356642172,), (1356642175,), (1356642234,), (1356642238,), (1356642242,), (1356642245,), (1356642249,), (1356642289,), (1356642293,), (1356642298,), (1356642303,), (1356642306,), (1356642310,), (1356642349,), (1356642369,), (1356642374,), (1356642380,), (1356642599,), (1356642602,), (1356642605,), (1356642608,), (1356642612,), (1356642617,), (1356642640,), (1356642654,), (1356642658,), (1356642663,), (1356642666,), (1356642710,), (1356642715,), (1356642720,), (1356642725,), (1356642731,), (1356642806,), (1356642813,), (1356642816,), (1356642820,), (1356642825,), (1356642863,), (1356642867,), (1356642870,), (1356642875,), (1356642881,), (1356642885,), (1356642959,), (1356642967,), (1356642970,), (1356642993,), (1356643121,), (1356643156,), (1356643187,), (1356643213,), (1356643238,), (1356643264,), (1356643562,), (1356643583,), (1356643594,), (1356643855,), (1356643857,), (1356643860,), (1356643862,), (1356643985,), (1356643989,), (1356643992,), (1356643995,), (1356643999,), (1356644003,), (1356644049,), (1356644037,), (1356644043,), (1356644044,), (1356644046,), (1356644086,), (1356644088,), (1356644090,), (1356644142,), (1356644146,), (1356644162,), (1356644165,), (1356644167,), (1356644169,), (1356644222,), (1356644225,), (1356644236,), (1356644564,), (1356644578,), (1356644580,), (1356644597,), (1356644622,), (1356644641,), (1356644792,), (1356644797,), (1356644801,), (1356644803,), (1356644891,), (1356644897,), (1356644900,), (1356644904,), (1356644910,), (1356644914,), (1356645010,), (1356645015,), (1356645017,), (1356645021,), (1356645315,), (1356645320,), (1356645323,), (1356645328,), (1356645331,), (1356645335,), (1356645413,), (1356645416,), (1356645420,), (1356645423,), (1356645427,), (1356645430,), (1356645445,), (1356645454,), (1356645472,), (1356645475,), (1356645478,), (1356645485,), (1356645487,), (1356645490,), (1356645493,), (1356645507,), (1356645518,), (1356645521,), (1356645524,), (1356645527,), (1356645530,), (1356645540,), (1356645598,), (1356645608,), (1356645614,), (1356645621,), (1356645816,), (1356645781,), (1356645786,), (1356646291,), (1356646445,), (1356646549,), (1356646615,), (1356646729,), (1356646806,), (1356647479,), (1356647532,), (1356647585,), (1356648019,), (1356648095,), (1356648175,), (1356648251,), (1356648347,), (1356648413,), (1356648936,), (1356649156,), (1356649187,), (1356649201,), (1356649394,), (1356649398,), (1356649402,), (1356649421,), (1356649454,), (1356649776,), (1356649800,), (1356650035,), (1356650045,), (1356650075,), (1356650170,), (1356650173,), (1356650177,), (1356650181,), (1356650184,), (1356650224,), (1356650228,), (1356650233,), (1356650324,), (1356650329,), (1356650332,), (1356650340,), (1356650345,), (1356650396,), (1356650399,), (1356650402,), (1356650405,), (1356650408,), (1356650412,), (1356650432,), (1356650435,), (1356650438,), (1356650442,), (1356650482,), (1356650487,), (1356650497,), (1356650502,), (1356650506,), (1356650510,), (1356650536,), (1356650542,), (1356650548,), (1356650553,), (1356650558,), (1356650620,), (1356650594,), (1356650598,), (1356650613,), (1356650616,), (1356650643,), (1356650647,), (1356650649,), (1356650652,), (1356650656,), (1356650659,), (1356650685,), (1356650688,), (1356650690,), (1356650694,), (1356650737,), (1356650739,), (1356650742,), (1356650745,), (1356650750,), (1356650755,), (1356650801,), (1356650805,), (1356650807,), (1356650810,), (1356650816,), (1356650875,), (1356650876,), (1356650879,), (1356650882,), (1356650929,), (1356650931,), (1356650935,), (1356650937,), (1356650939,), (1356650971,), (1356650981,), (1356650983,), (1356650989,), (1356651038,), (1356651042,), (1356651045,), (1356651049,), (1356651054,), (1356651058,), (1356651083,), (1356651087,), (1356651092,), (1356651097,), (1356651144,), (1356651148,), (1356651152,), (1356651155,), (1356651158,), (1356651160,), (1356651178,), (1356651182,), (1356651185,), (1356651187,), (1356651221,), (1356651224,), (1356651227,), (1356651231,), (1356651236,), (1356651240,), (1356651259,), (1356651262,), (1356651264,), (1356651318,), (1356651323,), (1356651328,), (1356651333,), (1356651340,), (1356651344,), (1356651420,), (1356651408,), (1356651411,), (1356651474,), (1356651477,), (1356651481,), (1356651485,), (1356651489,), (1356651492,), (1356651694,), (1356651713,), (1356651718,), (1356651723,), (1356651734,), (1356651737,), (1356651885,), (1356651889,), (1356651894,), (1356651907,), (1356652063,), (1356652066,), (1356652068,), (1356652070,), (1356652071,), (1356652132,), (1356652172,), (1356652176,), (1356652179,), (1356652183,), (1356652362,), (1356652404,), (1356652430,), (1356652468,), (1356652518,), (1356652545,), (1356652839,), (1356652892,), (1356652944,), (1356652983,), (1356653015,), (1356653277,), (1356653299,), (1356653302,), (1356653619,), (1356653622,), (1356653624,), (1356653627,), (1356653629,), (1356653790,), (1356653816,), (1356653844,), (1356653871,), (1356653903,), (1356653996,), (1356654000,), (1356654002,), (1356654006,), (1356654097,), (1356654121,), (1356654160,), (1356654184,), (1356654211,), (1356654229,), (1356654453,), (1356654475,), (1356654483,), (1356654499,), (1356654540,), (1356654567,), (1356654682,), (1356654685,), (1356654687,), (1356654690,), (1356654755,), (1356654738,), (1356654742,), (1356654747,), (1356654749,), (1356654752,), (1356654830,), (1356654856,), (1356654868,), (1356654872,), (1356654946,), (1356654949,), (1356654951,), (1356654953,), (1356654957,), (1356654961,), (1356655220,), (1356655244,), (1356655272,), (1356655294,), (1356655499,), (1356655785,), (1356655915,), (1356655939,), (1356656290,), (1356656292,), (1356656295,), (1356656298,), (1356656301,), (1356656464,), (1356656470,), (1356656472,), (1356656474,), (1356656608,), (1356656642,), (1356657137,), (1356657175,), (1356657218,), (1356657363,), (1356657371,), (1356657396,), (1356657413,), (1356657416,), (1356657419,), (1356657451,), (1356657455,), (1356657459,), (1356657463,), (1356657514,), (1356657516,), (1356657523,), (1356657527,), (1356657529,), (1356657532,), (1356657690,), (1356657702,), (1356657706,), (1356657734,), (1356657785,), (1356657787,), (1356657789,), (1356657832,), (1356657859,), (1356657886,), (1356658979,), (1356659582,), (1356659677,), (1356659752,), (1356659828,), (1356660135,), (1356660231,), (1356660287,), (1356660375,), (1356660413,), (1356660691,), (1356660577,), (1356660610,), (1356660674,), (1356661004,), (1356661016,), (1356661051,), (1356661082,), (1356661135,), (1356661459,), (1356661488,), (1356661512,), (1356661545,), (1356661549,), (1356661552,), (1356661593,), (1356661598,), (1356661602,), (1356661606,), (1356661642,), (1356661649,), (1356661653,), (1356661657,), (1356661663,), (1356661667,), (1356661698,), (1356661701,), (1356661708,), (1356661711,), (1356661759,), (1356662101,), (1356662108,), (1356662112,), (1356662115,), (1356662148,), (1356662152,), (1356662157,), (1356662159,), (1356662162,), (1356662310,), (1356662408,), (1356662434,), (1356662462,), (1356662598,), (1356662625,), (1356662649,), (1356662850,), (1356662853,), (1356677767,), (1356681891,), (1356681894,), (1356681898,), (1356681902,), (1356682135,), (1356682248,), (1356682472,), (1356682533,), (1356682569,), (1356683199,), (1356683272,), (1356683316,), (1356683365,), (1356683904,), (1356683953,), (1356684544,), (1356684574,), (1356684616,), (1356684642,), (1356684648,), (1356684665,), (1356684775,), (1356684804,), (1356684836,), (1356684862,), (1356685250,), (1356685284,), (1356685349,), (1356685416,), (1356685470,), (1356685932,), (1356685977,), (1356685981,), (1356686533,), (1356686560,), (1356686587,), (1356686593,), (1356686595,), (1356686640,), (1356686642,), (1356686644,), (1356686646,), (1356686649,), (1356686651,), (1356686891,), (1356686925,), (1356686953,), (1356686980,), (1356687302,), (1356687329,), (1356687385,), (1356687437,), (1356687636,), (1356687674,), (1356687701,), (1356688324,), (1356688350,), (1356688376,), (1356688384,), (1356688388,), (1356688544,), (1356688539,), (1356688887,), (1356688921,), (1356688953,), (1356689003,), (1356689078,), (1356689134,), (1356689468,), (1356689496,), (1356689507,), (1356689511,), (1356689513,), (1356689517,), (1356689921,), (1356689925,), (1356689928,), (1356690747,), (1356690764,), (1356690792,), (1356690797,), (1356691208,), (1356691224,), (1356691254,), (1356691283,), (1356691713,), (1356691772,), (1356691822,), (1356691860,), (1356691877,), (1356692020,), (1356692034,), (1356692040,), (1356692044,), (1356692047,), (1356692051,), (1356692152,), (1356692166,), (1356692198,), (1356692226,), (1356692490,), (1356692493,), (1356692498,), (1356692504,), (1356692587,), (1356692643,), (1356692695,), (1356692804,), (1356692835,), (1356693113,), (1356693143,), (1356697911,), (1356698407,), (1356698435,), (1356699095,), (1356699746,), (1356699748,), (1356699753,), (1356699778,), (1356700263,), (1356700313,), (1356700944,), (1356700948,), (1356700953,), (1356700956,), (1356700974,), (1356701022,), (1356701311,), (1356701380,), (1356701449,), (1356702506,), (1356702536,), (1356702571,), (1356702762,), (1356702766,), (1356702768,), (1356702771,), (1356702776,), (1356702779,), (1356703035,), (1356703065,), (1356703095,), (1356703123,), (1356703152,), (1356703182,), (1356703704,), (1356703740,), (1356703773,), (1356704248,), (1356704115,), (1356704167,), (1356704200,), (1356704214,), (1356704243,), (1356704842,), (1356704917,), (1356704969,), (1356705014,), (1356705266,), (1356705274,), (1356705292,), (1356705295,), (1356705301,), (1356705695,), (1356705697,), (1356705700,), (1356705703,), (1356705708,), (1356705966,), (1356705968,), (1356705972,), (1356706159,), (1356706162,), (1356706165,), (1356706167,), (1356706169,), (1356706173,), (1356706441,), (1356706444,), (1356706464,), (1356706552,), (1356706556,), (1356706586,), (1356706865,), (1356706893,), (1356707330,), (1356707342,), (1356707371,), (1356707400,), (1356707761,), (1356707765,), (1356707766,), (1356707794,), (1356707896,), (1356707928,), (1356707982,), (1356708022,), (1356708059,), (1356708255,), (1356708258,), (1356708260,), (1356708479,), (1356708507,), (1356708537,), (1356708567,), (1356708597,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22769438]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] map_info['map_portfolio_photo'] : {22769438: [1356708597, 1356708567, 1356708537, 1356708507, 1356708479, 1356708260, 1356708258, 1356708255, 1356708059, 1356708022, 1356707982, 1356707928, 1356707896, 1356707794, 1356707766, 1356707765, 1356707761, 1356707400, 1356707371, 1356707342, 1356707330, 1356706893, 1356706865, 1356706586, 1356706556, 1356706552, 1356706464, 1356706444, 1356706441, 1356706173, 1356706169, 1356706167, 1356706165, 1356706162, 1356706159, 1356705972, 1356705968, 1356705966, 1356705708, 1356705703, 1356705700, 1356705697, 1356705695, 1356705301, 1356705295, 1356705292, 1356705274, 1356705266, 1356705014, 1356704969, 1356704917, 1356704842, 1356704243, 1356704214, 1356704200, 1356704167, 1356704115]} final : True mtd_id 4302 list_pids : [1356708597, 1356708567, 1356708537, 1356708507, 1356708479] Looping around the photos to save general results len do output : 1 /22769438Didn'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, '2803189') ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189') ('4302', None, None, None, None, None, None, None, '2803189') ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22769438', 'None', None, None, None, None, '2803189'), ('4302', '22769438', '1356708597', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708567', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708537', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708507', None, None, None, None, None, '2803189'), ('4302', '22769438', '1356708479', None, None, None, None, None, '2803189')] time used for this insertion : 0.012125253677368164 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.751650094985962 time spend to save output : 0.012329578399658203 total time spend for step 5 : 2.76397967338562 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 (2803189) 2.15user 2.27system 0:10.12elapsed 43%CPU (0avgtext+0avgdata 159164maxresident)k 160inputs+12680outputs (18major+76198minor)pagefaults 0swaps