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 List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (23412231) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2974963 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (23412231) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361463874, 'portfolio_id': 23412231}, {'photo_id': 1361463858, 'portfolio_id': 23412231}, {'photo_id': 1361463854, 'portfolio_id': 23412231}, {'photo_id': 1361463808, 'portfolio_id': 23412231}, {'photo_id': 1361463700, 'portfolio_id': 23412231}, {'photo_id': 1361463685, 'portfolio_id': 23412231}, {'photo_id': 1361463676, 'portfolio_id': 23412231}, {'photo_id': 1361463660, 'portfolio_id': 23412231}, {'photo_id': 1361463478, 'portfolio_id': 23412231}, {'photo_id': 1361463440, 'portfolio_id': 23412231}, {'photo_id': 1361463266, 'portfolio_id': 23412231}, {'photo_id': 1361463257, 'portfolio_id': 23412231}, {'photo_id': 1361463236, 'portfolio_id': 23412231}, {'photo_id': 1361463230, 'portfolio_id': 23412231}, {'photo_id': 1361463115, 'portfolio_id': 23412231}, {'photo_id': 1361463103, 'portfolio_id': 23412231}, {'photo_id': 1361463087, 'portfolio_id': 23412231}, {'photo_id': 1361463068, 'portfolio_id': 23412231}, {'photo_id': 1361463062, 'portfolio_id': 23412231}, {'photo_id': 1361462931, 'portfolio_id': 23412231}, {'photo_id': 1361462909, 'portfolio_id': 23412231}, {'photo_id': 1361462906, 'portfolio_id': 23412231}, {'photo_id': 1361462890, 'portfolio_id': 23412231}, {'photo_id': 1361462880, 'portfolio_id': 23412231}, {'photo_id': 1361462653, 'portfolio_id': 23412231}, {'photo_id': 1361462613, 'portfolio_id': 23412231}, {'photo_id': 1361462563, 'portfolio_id': 23412231}, {'photo_id': 1361462521, 'portfolio_id': 23412231}, {'photo_id': 1361462485, 'portfolio_id': 23412231}, {'photo_id': 1361462261, 'portfolio_id': 23412231}, {'photo_id': 1361462244, 'portfolio_id': 23412231}, {'photo_id': 1361462216, 'portfolio_id': 23412231}, {'photo_id': 1361462200, 'portfolio_id': 23412231}, {'photo_id': 1361462170, 'portfolio_id': 23412231}, {'photo_id': 1361462155, 'portfolio_id': 23412231}, {'photo_id': 1361462009, 'portfolio_id': 23412231}, {'photo_id': 1361461986, 'portfolio_id': 23412231}, {'photo_id': 1361461945, 'portfolio_id': 23412231}, {'photo_id': 1361461795, 'portfolio_id': 23412231}, {'photo_id': 1361461791, 'portfolio_id': 23412231}, {'photo_id': 1361461775, 'portfolio_id': 23412231}, {'photo_id': 1361461519, 'portfolio_id': 23412231}, {'photo_id': 1361461479, 'portfolio_id': 23412231}, {'photo_id': 1361461157, 'portfolio_id': 23412231}, {'photo_id': 1361461142, 'portfolio_id': 23412231}, {'photo_id': 1361461127, 'portfolio_id': 23412231}, {'photo_id': 1361461112, 'portfolio_id': 23412231}] map_portfolio_id_photo_id: {23412231: [1361463874, 1361463858, 1361463854, 1361463808, 1361463700, 1361463685, 1361463676, 1361463660, 1361463478, 1361463440, 1361463266, 1361463257, 1361463236, 1361463230, 1361463115, 1361463103, 1361463087, 1361463068, 1361463062, 1361462931, 1361462909, 1361462906, 1361462890, 1361462880, 1361462653, 1361462613, 1361462563, 1361462521, 1361462485, 1361462261, 1361462244, 1361462216, 1361462200, 1361462170, 1361462155, 1361462009, 1361461986, 1361461945, 1361461795, 1361461791, 1361461775, 1361461519, 1361461479, 1361461157, 1361461142, 1361461127, 1361461112]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.015651702880859375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 28 11:08: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23412231) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 23412231 get user id for portfolio 23412231 get sub ptf for main ptf 23412231, type 3726 and hashtags ['plastique', 'autre_refus', 'cartonnette', 'kraft', 'papier', 'metal', 'Carton_brun', 'Carton_gris', 'mal_croppe', 'Teint_Dans_La_Masse', 'environnement', 'flou'] 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`=23412231 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','kraft','papier','metal','Carton_brun','Carton_gris','mal_croppe','Teint_Dans_La_Masse','environnement','flou')) 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`=23412231 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','kraft','papier','metal','Carton_brun','Carton_gris','mal_croppe','Teint_Dans_La_Masse','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 23412231, 'sub_port_id': 23412265, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621125, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'metal': {'main_port_id': 23412231, 'sub_port_id': 23412266, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621126, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'Carton_brun': {'main_port_id': 23412231, 'sub_port_id': 23412267, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621127, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'kraft': {'main_port_id': 23412231, 'sub_port_id': 23412268, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621128, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'plastique': {'main_port_id': 23412231, 'sub_port_id': 23412269, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621129, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'papier': {'main_port_id': 23412231, 'sub_port_id': 23412270, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621130, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'environnement': {'main_port_id': 23412231, 'sub_port_id': 23412271, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621131, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'autre_refus': {'main_port_id': 23412231, 'sub_port_id': 23412272, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621132, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'Carton_gris': {'main_port_id': 23412231, 'sub_port_id': 23412273, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621133, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 23412231, 'sub_port_id': 23412274, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621134, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'flou': {'main_port_id': 23412231, 'sub_port_id': 23412275, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621135, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}, 'mal_croppe': {'main_port_id': 23412231, 'sub_port_id': 23412276, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621136, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412265 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412265) result : ((1361462169,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412266 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412266) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412267 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412267) result : ((1361462182,), (1361462183,), (1361463302,), (1361463303,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412268 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412268) result : ((1361462185,), (1361462186,), (1361463305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412269 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412270 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412271 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412272 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412272) result : ((1361462163,), (1361462165,), (1361463289,), (1361463291,), (1361463292,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412273 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412273) result : ((1361462166,), (1361463297,), (1361463301,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412274 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412274) result : ((1361462156,), (1361463268,), (1361463269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412275 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23412276 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=23412231 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23412231) result : ((1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1361463700,1361462200) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23412231 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','kraft','papier','metal','Carton_brun','Carton_gris','mal_croppe','Teint_Dans_La_Masse','environnement','flou')) 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`=23412231 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','cartonnette','kraft','papier','metal','Carton_brun','Carton_gris','mal_croppe','Teint_Dans_La_Masse','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 23412231, 'sub_port_id': 23412277, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621137, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'metal': {'main_port_id': 23412231, 'sub_port_id': 23412278, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621138, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'Carton_brun': {'main_port_id': 23412231, 'sub_port_id': 23412279, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621139, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'kraft': {'main_port_id': 23412231, 'sub_port_id': 23412280, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621140, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'plastique': {'main_port_id': 23412231, 'sub_port_id': 23412281, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621141, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'papier': {'main_port_id': 23412231, 'sub_port_id': 23412282, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621142, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'environnement': {'main_port_id': 23412231, 'sub_port_id': 23412283, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621143, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'autre_refus': {'main_port_id': 23412231, 'sub_port_id': 23412284, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621144, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'Carton_gris': {'main_port_id': 23412231, 'sub_port_id': 23412285, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621145, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23412231, 'sub_port_id': 23412286, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621146, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'flou': {'main_port_id': 23412231, 'sub_port_id': 23412287, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621147, 'last_updated_at': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 10, 57, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}, 'mal_croppe': {'main_port_id': 23412231, 'sub_port_id': 23412288, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15621148, 'last_updated_at': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 11, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 10, 57, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412277,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412265 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23412288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23412276 lien utilise dans velours : https://www.fotonower.com/velours/23412277,23412278,23412279,23412280,23412281,23412282,23412283,23412284,23412285,23412286,23412287,23412288?tags=cartonnette,metal,Carton_brun,kraft,plastique,papier,environnement,autre_refus,Carton_gris,Teint_Dans_La_Masse,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23412231]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361463874, 1361463858, 1361463854, 1361463808] map_info['map_portfolio_photo'] : {23412231: [1361463874, 1361463858, 1361463854, 1361463808, 1361463700, 1361463685, 1361463676, 1361463660, 1361463478, 1361463440, 1361463266, 1361463257, 1361463236, 1361463230, 1361463115, 1361463103, 1361463087, 1361463068, 1361463062, 1361462931, 1361462909, 1361462906, 1361462890, 1361462880, 1361462653, 1361462613, 1361462563, 1361462521, 1361462485, 1361462261, 1361462244, 1361462216, 1361462200, 1361462170, 1361462155, 1361462009, 1361461986, 1361461945, 1361461795, 1361461791, 1361461775, 1361461519, 1361461479, 1361461157, 1361461142, 1361461127, 1361461112]} final : False mtd_id 4302 list_pids : [1361463874, 1361463858, 1361463854, 1361463808] Looping around the photos to save general results len do output : 1 /23412231. 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, '2974963') ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963') 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', None, '23412231', "{'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276}", None, None, None, None, '2974963'), ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963')] time used for this insertion : 0.02273273468017578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.421459436416626 time spend to save output : 0.0230100154876709 total time spend for step 1 : 0.4444694519042969 step2:final Wed May 28 11:08: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 ! 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 (23412231) 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 23412231 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361461157,1361461142,1361461127,1361461112,1361461519,1361461479,1361461795,1361461791,1361461775,1361462009,1361461986,1361461945,1361462261,1361462244,1361462216,1361462200,1361462170,1361462155,1361462653,1361462613,1361462563,1361462521,1361462485,1361462931,1361462909,1361462906,1361462890,1361462880,1361463115,1361463103,1361463087,1361463068,1361463062,1361463266,1361463257,1361463236,1361463230,1361463478,1361463440,1361463700,1361463685,1361463676,1361463660,1361463808,1361463874,1361463858,1361463854); 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([23412231]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} new output for save of step final : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} [1361463874, 1361463858, 1361463854, 1361463808] map_info['map_portfolio_photo'] : {23412231: [1361463874, 1361463858, 1361463854, 1361463808, 1361463700, 1361463685, 1361463676, 1361463660, 1361463478, 1361463440, 1361463266, 1361463257, 1361463236, 1361463230, 1361463115, 1361463103, 1361463087, 1361463068, 1361463062, 1361462931, 1361462909, 1361462906, 1361462890, 1361462880, 1361462653, 1361462613, 1361462563, 1361462521, 1361462485, 1361462261, 1361462244, 1361462216, 1361462200, 1361462170, 1361462155, 1361462009, 1361461986, 1361461945, 1361461795, 1361461791, 1361461775, 1361461519, 1361461479, 1361461157, 1361461142, 1361461127, 1361461112]} final : False mtd_id 4302 list_pids : [1361463874, 1361463858, 1361463854, 1361463808] Looping around the photos to save general results len do output : 4 /1361463874.Didn't retrieve data . /1361463858.Didn't retrieve data . /1361463854.Didn't retrieve data . /1361463808.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, '2974963') ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '23412231', '1361463874', '0.03247002646978069', None, None, None, None, '2974963'), ('4302', '23412231', '1361463858', '0.03247002646978069', None, None, None, None, '2974963'), ('4302', '23412231', '1361463854', '0.03247002646978069', None, None, None, None, '2974963'), ('4302', '23412231', '1361463808', '0.03247002646978069', None, None, None, None, '2974963')] time used for this insertion : 0.016951322555541992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08084893226623535 time spend to save output : 0.017231225967407227 total time spend for step 2 : 0.09808015823364258 step3:velours_tree Wed May 28 11:08: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 complete output_args for input 0 : {23412231: [{'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276}]} input_args_next_step : {23412231: ()} output_args : {23412231: [{'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276}]} args : 23412231 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23412231) 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([23412231]) 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.3083333969116211 time spend to save output : 7.176399230957031e-05 total time spend for step 3 : 0.30840516090393066 step4:send_mail_cod Wed May 28 11:08: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 : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} input_args_next_step : {1361463874: ()} output_args : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} args : 1361463874 depend.output_id : 0 input_args_next_step : {1361463874: ('0.03247002646978069',), 1361463858: ()} output_args : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} args : 1361463858 depend.output_id : 0 input_args_next_step : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ()} output_args : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} args : 1361463854 depend.output_id : 0 input_args_next_step : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ()} output_args : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',)} args : 1361463808 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 : {23412231: [{'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276}]} input_args_next_step : {1361463874: ('0.03247002646978069',), 1361463858: ('0.03247002646978069',), 1361463854: ('0.03247002646978069',), 1361463808: ('0.03247002646978069',), 23412231: ()} output_args : {23412231: [{'cartonnette': 23412265, 'metal': 23412266, 'Carton_brun': 23412267, 'kraft': 23412268, 'plastique': 23412269, 'papier': 23412270, 'environnement': 23412271, 'autre_refus': 23412272, 'Carton_gris': 23412273, 'Teint_Dans_La_Masse': 23412274, 'flou': 23412275, 'mal_croppe': 23412276}]} args : 23412231 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 :5, first value : ('0.03247002646978069',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23412231) 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 (1361463874,1361463858,1361463854,1361463808) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361463808 begin to download photo : 1361463854 begin to download photo : 1361463874 begin to download photo : 1361463858 download finish for photo 1361463858 download finish for photo 1361463874 download finish for photo 1361463808 download finish for photo 1361463854 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P23412231_28-05-2025_11_08_58.pdf 23412265 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=23412265 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462169: '1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760870_0.png'} change filename to text .imagette234122651748423338/ imagette234122651748423338/1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760870_0.png.png imagette234122661748423338/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/63c0c3dfc835ec8aafd45db3e1f19620_69003128.png imagette234122651748423338 23412266 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=23412266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234122661748423338 23412268 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=23412268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462185: '1748422765_1260332_1361461142_cd4ed9e2144e331b5208340c28338401_rle_crop_3814760882_0.png', 1361462186: '1748422765_1260332_1361461127_84fe2fa08a42c8a575ae42edf46805ad_rle_crop_3814760900_0.png', 1361463305: '1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/f083461e8b80212d71948ebb5cab972f_44012478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/ce990410c19e778dafaa8a1700f792b8_45459007.png change filename to text .imagette234122681748423338/ imagette234122681748423338/1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761551_0.png.png imagette234122681748423338/1748422765_1260332_1361461142_cd4ed9e2144e331b5208340c28338401_rle_crop_3814760882_0.png.png imagette234122681748423338/1748422765_1260332_1361461127_84fe2fa08a42c8a575ae42edf46805ad_rle_crop_3814760900_0.png.png imagette234122691748423338/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/39ffc3c4df97e555341303691cdcd7e3_94719487.png imagette234122681748423338 23412269 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=23412269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234122691748423338 23412272 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=23412272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462163: '1748422765_1260332_1361461519_3ff808296202177a3763498c51fdc8a8_rle_crop_3814760850_0.png', 1361462165: '1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760867_0.png', 1361463289: '1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761546_0.png', 1361463291: '1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761591_0.png', 1361463292: '1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761588_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/9d646dee5897f3f211b7ccc3deed7f04_19057969.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/4a2c3c52655f41a28b522d9b31c69cc0_31428070.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/760c9459a2170b3d1c2e9bd06548e998_45433717.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/ba91baa327a4e5bc10b430236373335c_98674110.png change filename to text .imagette234122721748423338/ imagette234122721748423338/1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760867_0.png.png imagette234122721748423338/1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761546_0.png.png imagette234122721748423338/1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761591_0.png.png imagette234122721748423338/1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761588_0.png.png imagette234122721748423338/1748422765_1260332_1361461519_3ff808296202177a3763498c51fdc8a8_rle_crop_3814760850_0.png.png imagette234122751748423338/ imagette234122761748423338/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/977be380d58a4928857c4dd2dc5bc4cf_80020450.png imagette234122721748423338 23412275 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=23412275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234122751748423338 23412276 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=23412276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234122761748423338 23412267 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=23412267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462182: '1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760871_0.png', 1361462183: '1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760873_0.png', 1361463302: '1748423008_1264872_1361462653_0c9924948b3647ea13138ba75746ed99_rle_crop_3814761523_0.png', 1361463303: '1748423008_1264872_1361462244_b21c8bb73a175601f60078a792ffb7ac_rle_crop_3814761533_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/d82ede9f57e977cb45f5831ac887ed20_28102924.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/3f442e62a19eb22e2ec06299ea115050_27310626.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/218ce67c76ee89f33f4a707fc1535217_72251273.png change filename to text .imagette234122671748423338/ imagette234122671748423338/1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760871_0.png.png imagette234122671748423338/1748423008_1264872_1361462244_b21c8bb73a175601f60078a792ffb7ac_rle_crop_3814761533_0.png.png imagette234122671748423338/1748422765_1260332_1361461157_f431a72a7f4ca8e54c92cf56b1738e2f_rle_crop_3814760873_0.png.png imagette234122671748423338/1748423008_1264872_1361462653_0c9924948b3647ea13138ba75746ed99_rle_crop_3814761523_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/4a43ecb74340418e3c9aef2802fbdff0_84778321.png imagette234122671748423338 23412273 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=23412273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462166: '1748422765_1260332_1361461127_84fe2fa08a42c8a575ae42edf46805ad_rle_crop_3814760896_0.png', 1361463297: '1748423008_1264872_1361462244_b21c8bb73a175601f60078a792ffb7ac_rle_crop_3814761528_0.png', 1361463301: '1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761544_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/b702e81dac27abc0699328d1b4dd0915_93310053.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/aae0f5246ae20d8acf92f28a08f6deb5_61270524.png change filename to text .imagette234122731748423338/ imagette234122731748423338/1748423008_1264872_1361462244_b21c8bb73a175601f60078a792ffb7ac_rle_crop_3814761528_0.png.png imagette234122731748423338/1748422765_1260332_1361461127_84fe2fa08a42c8a575ae42edf46805ad_rle_crop_3814760896_0.png.png imagette234122731748423338/1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761544_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/5ffcaf27ddece5a6fa99f30811914749_5671954.png imagette234122731748423338 23412274 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=23412274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361462156: '1748422765_1260332_1361461112_4fb44b8a7db826cc591f3a63688cf253_rle_crop_3814760920_0.png', 1361463268: '1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761560_0.png', 1361463269: '1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761592_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/38fc51d0b27116acf89bfca01eb65ab4_1704672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/766d24fd8ab6f5dc20dd09071ba35c79_12461052.png change filename to text .imagette234122741748423339/ imagette234122741748423339/1748422765_1260332_1361461112_4fb44b8a7db826cc591f3a63688cf253_rle_crop_3814760920_0.png.png imagette234122741748423339/1748423008_1264872_1361462216_f8eb8e375d2b07bd5e3e83a4adbf8c9d_rle_crop_3814761560_0.png.png imagette234122741748423339/1748423008_1264872_1361462155_374fbead94a3a517ca0a6215a72c13b4_rle_crop_3814761592_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/1bbd23f3a45830c8c8d7a517e3ef4b08_82019738.png imagette234122741748423339 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23412231 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23412277,23412278,23412279,23412280,23412281,23412282,23412283,23412284,23412285,23412286,23412287,23412288?tags=cartonnette,metal,Carton_brun,kraft,plastique,papier,environnement,autre_refus,Carton_gris,Teint_Dans_La_Masse,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1361463874] : ('0.03247002646978069',) no score found for photo 1361463874 We are sending mail with results at report@fotonower.com args[1361463858] : ('0.03247002646978069',) no score found for photo 1361463858 We are sending mail with results at report@fotonower.com args[1361463854] : ('0.03247002646978069',) no score found for photo 1361463854 We are sending mail with results at report@fotonower.com args[1361463808] : ('0.03247002646978069',) no score found for photo 1361463808 We are sending mail with results at report@fotonower.com refus_total : 0.03247002646978069 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=23412231 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_P23412231_28-05-2025_11_08_58.pdf results_Auto_P23412231_28-05-2025_11_08_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_28-05-2025_11_08_58.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','23412231','results_Auto_P23412231_28-05-2025_11_08_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_28-05-2025_11_08_58.pdf','pdf','','0.1','0.03247002646978069') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23412231]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361463874, 1361463858, 1361463854, 1361463808] map_info['map_portfolio_photo'] : {23412231: [1361463874, 1361463858, 1361463854, 1361463808, 1361463700, 1361463685, 1361463676, 1361463660, 1361463478, 1361463440, 1361463266, 1361463257, 1361463236, 1361463230, 1361463115, 1361463103, 1361463087, 1361463068, 1361463062, 1361462931, 1361462909, 1361462906, 1361462890, 1361462880, 1361462653, 1361462613, 1361462563, 1361462521, 1361462485, 1361462261, 1361462244, 1361462216, 1361462200, 1361462170, 1361462155, 1361462009, 1361461986, 1361461945, 1361461795, 1361461791, 1361461775, 1361461519, 1361461479, 1361461157, 1361461142, 1361461127, 1361461112]} final : False mtd_id 4302 list_pids : [1361463874, 1361463858, 1361463854, 1361463808] 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, '2974963') ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '23412231', '1361463874', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963')] time used for this insertion : 0.017841100692749023 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8971245288848877 time spend to save output : 0.018036365509033203 total time spend for step 4 : 2.915160894393921 step5:split_time_score Wed May 28 11:09:00 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 : ['23412231'] 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 : [('23412231',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23412231) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361463858: {'path': 'temp/1748423337_831915_1361463858_77206530ae1e7ba3284821aa1efd0f71.jpg', 'extension': 'jpg'}, 1361463874: {'path': 'temp/1748423337_831915_1361463874_e68c6db03d0c820875f50c53ee415f56.jpg', 'extension': 'jpg'}, 1361463808: {'path': 'temp/1748423337_831915_1361463808_4a008d5372073e569a6055033ee1263b.jpg', 'extension': 'jpg'}, 1361463854: {'path': 'temp/1748423337_831915_1361463854_fc8bbd529b2569e080bec61a22b8fda6.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 = 23412231; (('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 = 23412231 group by h (('10', 47),) 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=23412231 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 (23412231) 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 (23412231) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28052025 23412231 Nombre de photos uploadées : 47 / 23040 (0%) 28052025 23412231 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 28052025 23412231 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1361461157, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/f431a72a7f4ca8e54c92cf56b1738e2f.jpg', 'username': None, 'uploaded_at': 1748422545, 'text': 'image_28052025_10_30_05_010154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361461142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/cd4ed9e2144e331b5208340c28338401.jpg', 'username': None, 'uploaded_at': 1748422545, 'text': 'image_28052025_10_30_15_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361461127, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/84fe2fa08a42c8a575ae42edf46805ad.jpg', 'username': None, 'uploaded_at': 1748422545, 'text': 'image_28052025_10_30_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361461112, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/4fb44b8a7db826cc591f3a63688cf253.jpg', 'username': None, 'uploaded_at': 1748422545, 'text': 'image_28052025_10_30_34_009133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 7.3909759521484375e-06 elapsed_time : order_list_meta_photo_and_scores 1.6689300537109375e-05 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0042247772216796875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23412231, '2025-05-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1841518,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0247039794921875 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= 1841518 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23397772, 'dashboard_result_id': 10985174, '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_P23397772_28-05-2025_06_17_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23398051, 'dashboard_result_id': 10985175, '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_P23398051_28-05-2025_06_18_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23398303, 'dashboard_result_id': 10985176, '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_P23398303_28-05-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23399179, 'dashboard_result_id': 10985177, '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_P23399179_28-05-2025_06_20_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23399344, 'dashboard_result_id': 10985178, '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_P23399344_28-05-2025_06_20_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23399686, 'dashboard_result_id': 10985179, '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_P23399686_28-05-2025_06_21_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23400106, 'dashboard_result_id': 10985180, '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_P23400106_28-05-2025_06_22_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23400427, 'dashboard_result_id': 10985181, '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_P23400427_28-05-2025_06_22_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23400761, 'dashboard_result_id': 10985182, '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_P23400761_28-05-2025_06_23_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23401154, 'dashboard_result_id': 10985183, '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_P23401154_28-05-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23401510, 'dashboard_result_id': 10985184, '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_P23401510_28-05-2025_06_24_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23401873, 'dashboard_result_id': 10985185, '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_P23401873_28-05-2025_03_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23402106, 'dashboard_result_id': 10985186, '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_P23402106_28-05-2025_03_57_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23402440, 'dashboard_result_id': 10985187, '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_P23402440_28-05-2025_04_13_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23402734, 'dashboard_result_id': 10985188, '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_P23402734_28-05-2025_06_25_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23403490, 'dashboard_result_id': 10985189, '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_P23403490_28-05-2025_05_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23403648, 'dashboard_result_id': 10985190, '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_P23403648_28-05-2025_05_26_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23403911, 'dashboard_result_id': 10985191, '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_P23403911_28-05-2025_05_42_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23404230, 'dashboard_result_id': 10985192, '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_P23404230_28-05-2025_05_57_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23404712, 'dashboard_result_id': 10985193, '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_P23404712_28-05-2025_06_13_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23405129, 'dashboard_result_id': 10985194, '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_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23405492, 'dashboard_result_id': 10985195, '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_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23405806, 'dashboard_result_id': 10985196, '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_P23405806_28-05-2025_06_56_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23406291, 'dashboard_result_id': 10985197, '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_P23406291_28-05-2025_07_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23406782, 'dashboard_result_id': 10985198, '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_P23406782_28-05-2025_07_27_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23407058, 'dashboard_result_id': 10985199, '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_P23407058_28-05-2025_07_41_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23407390, 'dashboard_result_id': 10985200, '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_P23407390_28-05-2025_07_57_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23407757, 'dashboard_result_id': 10985202, '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_P23407757_28-05-2025_08_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23408183, 'dashboard_result_id': 10985203, '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_P23408183_28-05-2025_08_26_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23408565, 'dashboard_result_id': 10985204, '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_P23408565_28-05-2025_08_42_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23408918, 'dashboard_result_id': 10985205, '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_P23408918_28-05-2025_08_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23409657, 'dashboard_result_id': 10985206, '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_P23409657_28-05-2025_10_24_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23410368, 'dashboard_result_id': 10985208, '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_P23410368_28-05-2025_09_42_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23411041, 'dashboard_result_id': 10985209, '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_P23411041_28-05-2025_10_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23411222, 'dashboard_result_id': 10985210, '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_P23411222_28-05-2025_10_24_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23411947, 'dashboard_result_id': 10985211, '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_P23411947_28-05-2025_10_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1850321, 'mtr_portfolio_id': 23412231, 'dashboard_result_id': 10985212, '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_P23412231_28-05-2025_11_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, '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 = 23397772 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': 2972603, 'mtr_portfolio_id': 23397772, 'created_at': datetime.datetime(2025, 5, 28, 6, 17, 57), 'result': '0.06446729513318857', 'result_long': None, 'result_double': None}] Qualite : 0.06446729513318857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23397772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_28-05-2025_06_17_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23397772 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_P23397772_28-05-2025_06_17_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}" where mtr_portfolio_id = 23397772 and dashboard_run_id = 1850321 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`=23397772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985174, 0.06446729513318857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_28-05-2025_06_17_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, '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 = 23398051 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': 2972604, 'mtr_portfolio_id': 23398051, 'created_at': datetime.datetime(2025, 5, 28, 6, 18, 29), 'result': '0.04410996982505767', 'result_long': None, 'result_double': None}] Qualite : 0.04410996982505767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_28-05-2025_06_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398051 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_P23398051_28-05-2025_06_18_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}" where mtr_portfolio_id = 23398051 and dashboard_run_id = 1850321 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`=23398051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985175, 0.04410996982505767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_28-05-2025_06_18_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, '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 = 23398303 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': 2972605, 'mtr_portfolio_id': 23398303, 'created_at': datetime.datetime(2025, 5, 28, 6, 19, 32), 'result': '0.046167851128557896', 'result_long': None, 'result_double': None}] Qualite : 0.046167851128557896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_28-05-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398303 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_P23398303_28-05-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}" where mtr_portfolio_id = 23398303 and dashboard_run_id = 1850321 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`=23398303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985176, 0.046167851128557896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_28-05-2025_06_19_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, '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 = 23399179 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': 2972606, 'mtr_portfolio_id': 23399179, 'created_at': datetime.datetime(2025, 5, 28, 6, 20), 'result': '0.04962887737365328', 'result_long': None, 'result_double': None}] Qualite : 0.04962887737365328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_28-05-2025_06_20_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399179 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_P23399179_28-05-2025_06_20_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}" where mtr_portfolio_id = 23399179 and dashboard_run_id = 1850321 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`=23399179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985177, 0.04962887737365328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_28-05-2025_06_20_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, '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 = 23399344 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': 2972607, 'mtr_portfolio_id': 23399344, 'created_at': datetime.datetime(2025, 5, 28, 6, 20, 29), 'result': '0.039297003774858966', 'result_long': None, 'result_double': None}] Qualite : 0.039297003774858966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_28-05-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399344 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_P23399344_28-05-2025_06_20_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}" where mtr_portfolio_id = 23399344 and dashboard_run_id = 1850321 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`=23399344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985178, 0.039297003774858966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_28-05-2025_06_20_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, '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 = 23399686 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': 2972608, 'mtr_portfolio_id': 23399686, 'created_at': datetime.datetime(2025, 5, 28, 6, 21, 29), 'result': '0.057971602056583645', 'result_long': None, 'result_double': None}] Qualite : 0.057971602056583645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_28-05-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399686 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_P23399686_28-05-2025_06_21_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}" where mtr_portfolio_id = 23399686 and dashboard_run_id = 1850321 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`=23399686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985179, 0.057971602056583645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_28-05-2025_06_21_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, '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 = 23400106 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': 2972609, 'mtr_portfolio_id': 23400106, 'created_at': datetime.datetime(2025, 5, 28, 6, 22), 'result': '0.040960003672391186', 'result_long': None, 'result_double': None}] Qualite : 0.040960003672391186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_28-05-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400106 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_P23400106_28-05-2025_06_22_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}" where mtr_portfolio_id = 23400106 and dashboard_run_id = 1850321 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`=23400106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985180, 0.040960003672391186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_28-05-2025_06_22_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, '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 = 23400427 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': 2972610, 'mtr_portfolio_id': 23400427, 'created_at': datetime.datetime(2025, 5, 28, 6, 22, 27), 'result': '0.03527445439329575', 'result_long': None, 'result_double': None}] Qualite : 0.03527445439329575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_28-05-2025_06_22_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400427 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_P23400427_28-05-2025_06_22_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, 'pht': 3726}}" where mtr_portfolio_id = 23400427 and dashboard_run_id = 1850321 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`=23400427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985181, 0.03527445439329575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400427_28-05-2025_06_22_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400439, '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 = 23400761 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': 2972611, 'mtr_portfolio_id': 23400761, 'created_at': datetime.datetime(2025, 5, 28, 6, 23, 28), 'result': '0.04834556117046673', 'result_long': None, 'result_double': None}] Qualite : 0.04834556117046673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_28-05-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400761 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_P23400761_28-05-2025_06_23_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}" where mtr_portfolio_id = 23400761 and dashboard_run_id = 1850321 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`=23400761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985182, 0.04834556117046673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_28-05-2025_06_23_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, '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 = 23401154 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': 2972612, 'mtr_portfolio_id': 23401154, 'created_at': datetime.datetime(2025, 5, 28, 6, 23, 59), 'result': '0.05209534912863307', 'result_long': None, 'result_double': None}] Qualite : 0.05209534912863307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401154 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_P23401154_28-05-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}" where mtr_portfolio_id = 23401154 and dashboard_run_id = 1850321 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`=23401154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985183, 0.05209534912863307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, '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 = 23401510 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': 2972613, 'mtr_portfolio_id': 23401510, 'created_at': datetime.datetime(2025, 5, 28, 6, 24, 32), 'result': '0.05398372108806439', 'result_long': None, 'result_double': None}] Qualite : 0.05398372108806439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_28-05-2025_06_24_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401510 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_P23401510_28-05-2025_06_24_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, 'pht': 3726}}" where mtr_portfolio_id = 23401510 and dashboard_run_id = 1850321 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`=23401510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985184, 0.05398372108806439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401510_28-05-2025_06_24_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401546, '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 = 23401873 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': 2972025, 'mtr_portfolio_id': 23401873, 'created_at': datetime.datetime(2025, 5, 28, 3, 42, 59), 'result': '0.04021070389351016', 'result_long': None, 'result_double': None}] Qualite : 0.04021070389351016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_28-05-2025_03_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401873 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_P23401873_28-05-2025_03_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, 'pht': 3726}}" where mtr_portfolio_id = 23401873 and dashboard_run_id = 1850321 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`=23401873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985185, 0.04021070389351016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401873_28-05-2025_03_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23401889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401897, '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 = 23402106 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': 2972081, 'mtr_portfolio_id': 23402106, 'created_at': datetime.datetime(2025, 5, 28, 3, 57, 27), 'result': '0.05672851177612197', 'result_long': None, 'result_double': None}] Qualite : 0.05672851177612197 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_28-05-2025_03_57_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402106 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_P23402106_28-05-2025_03_57_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, 'pht': 3726}}" where mtr_portfolio_id = 23402106 and dashboard_run_id = 1850321 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`=23402106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985186, 0.05672851177612197, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402106_28-05-2025_03_57_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402143, '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 = 23402440 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': 2972166, 'mtr_portfolio_id': 23402440, 'created_at': datetime.datetime(2025, 5, 28, 4, 13, 1), 'result': '0.05438098123552571', 'result_long': None, 'result_double': None}] Qualite : 0.05438098123552571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_28-05-2025_04_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402440 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_P23402440_28-05-2025_04_13_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, 'pht': 3726}}" where mtr_portfolio_id = 23402440 and dashboard_run_id = 1850321 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`=23402440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985187, 0.05438098123552571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402440_28-05-2025_04_13_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402452, '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 = 23402734 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': 2972276, 'mtr_portfolio_id': 23402734, 'created_at': datetime.datetime(2025, 5, 28, 6, 25, 58), 'result': '0.09731431259366337', 'result_long': None, 'result_double': None}] Qualite : 0.09731431259366337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23402734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_28-05-2025_06_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23402734 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_P23402734_28-05-2025_06_25_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, 'pht': 3726}}" where mtr_portfolio_id = 23402734 and dashboard_run_id = 1850321 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`=23402734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985188, 0.09731431259366337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23402734_28-05-2025_06_25_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23402739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23402740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23402741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23402742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23402743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23402744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23402745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23402746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23402747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23402748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23402749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23402750, '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 = 23403490 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': 2972449, 'mtr_portfolio_id': 23403490, 'created_at': datetime.datetime(2025, 5, 28, 5, 12, 59), 'result': '0.04955018673178034', 'result_long': None, 'result_double': None}] Qualite : 0.04955018673178034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403490 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_28-05-2025_05_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403490 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_P23403490_28-05-2025_05_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, 'pht': 3726}}" where mtr_portfolio_id = 23403490 and dashboard_run_id = 1850321 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`=23403490 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985189, 0.04955018673178034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403490_28-05-2025_05_12_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23403495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403506, '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 = 23403648 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': 2972470, 'mtr_portfolio_id': 23403648, 'created_at': datetime.datetime(2025, 5, 28, 5, 26, 58), 'result': '0.049993162076642075', 'result_long': None, 'result_double': None}] Qualite : 0.049993162076642075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_28-05-2025_05_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403648 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_P23403648_28-05-2025_05_26_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, 'pht': 3726}}" where mtr_portfolio_id = 23403648 and dashboard_run_id = 1850321 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`=23403648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985190, 0.049993162076642075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403648_28-05-2025_05_26_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403685, '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 = 23403911 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': 2972507, 'mtr_portfolio_id': 23403911, 'created_at': datetime.datetime(2025, 5, 28, 5, 42, 30), 'result': '0.05266520664912532', 'result_long': None, 'result_double': None}] Qualite : 0.05266520664912532 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23403911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_28-05-2025_05_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23403911 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_P23403911_28-05-2025_05_42_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, 'pht': 3726}}" where mtr_portfolio_id = 23403911 and dashboard_run_id = 1850321 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`=23403911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985191, 0.05266520664912532, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23403911_28-05-2025_05_42_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23403960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23403961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23403962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23403963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23403964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23403965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23403966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23403967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23403968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23403969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23403970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23403971, '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 = 23404230 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': 2972706, 'mtr_portfolio_id': 23404230, 'created_at': datetime.datetime(2025, 5, 28, 5, 57, 28), 'result': '0.05097279130524394', 'result_long': None, 'result_double': None}] Qualite : 0.05097279130524394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23404230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_28-05-2025_05_57_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23404230 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_P23404230_28-05-2025_05_57_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, 'pht': 3726}}" where mtr_portfolio_id = 23404230 and dashboard_run_id = 1850321 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`=23404230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985192, 0.05097279130524394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404230_28-05-2025_05_57_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404272, '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 = 23404712 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': 2972811, 'mtr_portfolio_id': 23404712, 'created_at': datetime.datetime(2025, 5, 28, 6, 13, 29), 'result': '0.036027923835725895', 'result_long': None, 'result_double': None}] Qualite : 0.036027923835725895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23404712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_28-05-2025_06_13_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23404712 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_P23404712_28-05-2025_06_13_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, 'pht': 3726}}" where mtr_portfolio_id = 23404712 and dashboard_run_id = 1850321 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`=23404712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985193, 0.036027923835725895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23404712_28-05-2025_06_13_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23404713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23404714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23404715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23404716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23404717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23404718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23404719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23404720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23404721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23404722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23404723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23404724, '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 = 23405129 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': 2972939, 'mtr_portfolio_id': 23405129, 'created_at': datetime.datetime(2025, 5, 28, 6, 28, 57), 'result': '0.04081889728704884', 'result_long': None, 'result_double': None}] Qualite : 0.04081889728704884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_28-05-2025_06_28_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405129 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_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}" where mtr_portfolio_id = 23405129 and dashboard_run_id = 1850321 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`=23405129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985194, 0.04081889728704884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, '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 = 23405492 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': 2973055, 'mtr_portfolio_id': 23405492, 'created_at': datetime.datetime(2025, 5, 28, 6, 42, 58), 'result': '0.02725474068078971', 'result_long': None, 'result_double': None}] Qualite : 0.02725474068078971 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_28-05-2025_06_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405492 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_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}" where mtr_portfolio_id = 23405492 and dashboard_run_id = 1850321 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`=23405492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985195, 0.02725474068078971, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, '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 = 23405806 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': 2973125, 'mtr_portfolio_id': 23405806, 'created_at': datetime.datetime(2025, 5, 28, 6, 56, 57), 'result': '0.06708666312804809', 'result_long': None, 'result_double': None}] Qualite : 0.06708666312804809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_28-05-2025_06_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405806 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_P23405806_28-05-2025_06_56_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, 'pht': 3726}}" where mtr_portfolio_id = 23405806 and dashboard_run_id = 1850321 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`=23405806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985196, 0.06708666312804809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_28-05-2025_06_56_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405821, '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 = 23406291 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': 2973264, 'mtr_portfolio_id': 23406291, 'created_at': datetime.datetime(2025, 5, 28, 7, 12, 58), 'result': '0.06374104795743006', 'result_long': None, 'result_double': None}] Qualite : 0.06374104795743006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23406291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_28-05-2025_07_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23406291 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_P23406291_28-05-2025_07_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, 'pht': 3726}}" where mtr_portfolio_id = 23406291 and dashboard_run_id = 1850321 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`=23406291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985197, 0.06374104795743006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406291_28-05-2025_07_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406310, '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 = 23406782 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': 2973411, 'mtr_portfolio_id': 23406782, 'created_at': datetime.datetime(2025, 5, 28, 7, 27, 1), 'result': '0.019177732219553417', 'result_long': None, 'result_double': None}] Qualite : 0.019177732219553417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23406782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_28-05-2025_07_27_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23406782 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_P23406782_28-05-2025_07_27_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, 'pht': 3726}}" where mtr_portfolio_id = 23406782 and dashboard_run_id = 1850321 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`=23406782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985198, 0.019177732219553417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23406782_28-05-2025_07_27_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23406789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23406790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23406791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23406792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23406793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23406794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23406795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23406796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23406797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23406798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23406799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23406800, '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 = 23407058 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': 2973492, 'mtr_portfolio_id': 23407058, 'created_at': datetime.datetime(2025, 5, 28, 7, 41, 59), 'result': '0.054476055759263356', 'result_long': None, 'result_double': None}] Qualite : 0.054476055759263356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_28-05-2025_07_41_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407058 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_P23407058_28-05-2025_07_41_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, 'pht': 3726}}" where mtr_portfolio_id = 23407058 and dashboard_run_id = 1850321 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`=23407058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985199, 0.054476055759263356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407058_28-05-2025_07_41_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407099, '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 = 23407390 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': 2973594, 'mtr_portfolio_id': 23407390, 'created_at': datetime.datetime(2025, 5, 28, 7, 57, 28), 'result': '0.04847069595700611', 'result_long': None, 'result_double': None}] Qualite : 0.04847069595700611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_28-05-2025_07_57_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407390 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_P23407390_28-05-2025_07_57_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, 'pht': 3726}}" where mtr_portfolio_id = 23407390 and dashboard_run_id = 1850321 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`=23407390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985200, 0.04847069595700611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407390_28-05-2025_07_57_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23407406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407417, '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 = 23407757 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': 2973721, 'mtr_portfolio_id': 23407757, 'created_at': datetime.datetime(2025, 5, 28, 8, 12, 58), 'result': '0.02672414858219496', 'result_long': None, 'result_double': None}] Qualite : 0.02672414858219496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23407757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_28-05-2025_08_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23407757 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_P23407757_28-05-2025_08_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, 'pht': 3726}}" where mtr_portfolio_id = 23407757 and dashboard_run_id = 1850321 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`=23407757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985202, 0.02672414858219496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23407757_28-05-2025_08_12_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23407764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23407765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23407766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23407767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23407768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23407769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23407770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23407771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23407772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23407773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23407774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23407775, '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 = 23408183 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': 2973847, 'mtr_portfolio_id': 23408183, 'created_at': datetime.datetime(2025, 5, 28, 8, 26, 57), 'result': '0.07011804811678078', 'result_long': None, 'result_double': None}] Qualite : 0.07011804811678078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_28-05-2025_08_26_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408183 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_P23408183_28-05-2025_08_26_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, 'pht': 3726}}" where mtr_portfolio_id = 23408183 and dashboard_run_id = 1850321 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`=23408183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985203, 0.07011804811678078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408183_28-05-2025_08_26_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408186, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408195, '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 = 23408565 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': 2973943, 'mtr_portfolio_id': 23408565, 'created_at': datetime.datetime(2025, 5, 28, 8, 42, 30), 'result': '0.019760012924640535', 'result_long': None, 'result_double': None}] Qualite : 0.019760012924640535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_28-05-2025_08_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408565 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_P23408565_28-05-2025_08_42_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, 'pht': 3726}}" where mtr_portfolio_id = 23408565 and dashboard_run_id = 1850321 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`=23408565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985204, 0.019760012924640535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408565_28-05-2025_08_42_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408581, '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 = 23408918 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': 2974054, 'mtr_portfolio_id': 23408918, 'created_at': datetime.datetime(2025, 5, 28, 8, 56, 57), 'result': '0.03467600148529702', 'result_long': None, 'result_double': None}] Qualite : 0.03467600148529702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23408918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_28-05-2025_08_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23408918 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_P23408918_28-05-2025_08_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, 'pht': 3726}}" where mtr_portfolio_id = 23408918 and dashboard_run_id = 1850321 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`=23408918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985205, 0.03467600148529702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23408918_28-05-2025_08_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23408930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23408931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23408932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23408933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23408934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23408935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23408936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23408937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23408938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23408939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23408940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23408941, '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 = 23409657 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': 2974283, 'mtr_portfolio_id': 23409657, 'created_at': datetime.datetime(2025, 5, 28, 10, 24, 59), 'result': '0.03510958973830518', 'result_long': None, 'result_double': None}] Qualite : 0.03510958973830518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23409657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_28-05-2025_10_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23409657 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_P23409657_28-05-2025_10_24_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, 'pht': 3726}}" where mtr_portfolio_id = 23409657 and dashboard_run_id = 1850321 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`=23409657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985206, 0.03510958973830518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23409657_28-05-2025_10_24_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23409663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23409664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23409665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23409666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23409667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23409668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23409669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23409670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23409671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23409672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23409673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23409674, '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 = 23410368 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': 2974454, 'mtr_portfolio_id': 23410368, 'created_at': datetime.datetime(2025, 5, 28, 9, 42, 58), 'result': '0.11432077951680243', 'result_long': None, 'result_double': None}] Qualite : 0.11432077951680243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23410368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_28-05-2025_09_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23410368 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_P23410368_28-05-2025_09_42_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, 'pht': 3726}}" where mtr_portfolio_id = 23410368 and dashboard_run_id = 1850321 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`=23410368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985208, 0.11432077951680243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23410368_28-05-2025_09_42_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23410369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23410370, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23410371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23410372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23410373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23410374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23410375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23410376, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23410377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23410378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23410379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23410380, '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 = 23411041 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': 2974604, 'mtr_portfolio_id': 23411041, 'created_at': datetime.datetime(2025, 5, 28, 10, 12, 1), 'result': '0.031174662776264066', 'result_long': None, 'result_double': None}] Qualite : 0.031174662776264066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_28-05-2025_10_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411041 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_P23411041_28-05-2025_10_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, 'pht': 3726}}" where mtr_portfolio_id = 23411041 and dashboard_run_id = 1850321 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`=23411041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985209, 0.031174662776264066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411041_28-05-2025_10_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411065, '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 = 23411222 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': 2974643, 'mtr_portfolio_id': 23411222, 'created_at': datetime.datetime(2025, 5, 28, 10, 26, 28), 'result': '0.03327898579568169', 'result_long': None, 'result_double': None}] Qualite : 0.03327898579568169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_28-05-2025_10_26_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411222 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_P23411222_28-05-2025_10_26_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, 'pht': 3726}}" where mtr_portfolio_id = 23411222 and dashboard_run_id = 1850321 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`=23411222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985210, 0.03327898579568169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411222_28-05-2025_10_26_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411242, '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 = 23411947 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': 2974846, 'mtr_portfolio_id': 23411947, 'created_at': datetime.datetime(2025, 5, 28, 10, 56, 58), 'result': '0.020884600403872355', 'result_long': None, 'result_double': None}] Qualite : 0.020884600403872355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23411947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_28-05-2025_10_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23411947 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_P23411947_28-05-2025_10_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, 'pht': 3726}}" where mtr_portfolio_id = 23411947 and dashboard_run_id = 1850321 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`=23411947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985211, 0.020884600403872355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23411947_28-05-2025_10_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23411954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23411955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23411956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23411957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23411958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23411959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23411960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23411961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23411962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23411964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23411965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23411966, '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 = 23412231 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': 2974963, 'mtr_portfolio_id': 23412231, 'created_at': datetime.datetime(2025, 5, 28, 11, 8, 57), 'result': '0.03247002646978069', 'result_long': None, 'result_double': None}] Qualite : 0.03247002646978069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23412231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_28-05-2025_11_08_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23412231 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_P23412231_28-05-2025_11_08_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, 'pht': 3726}}" where mtr_portfolio_id = 23412231 and dashboard_run_id = 1850321 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`=23412231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10985212, 0.03247002646978069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23412231_28-05-2025_11_08_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23412265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23412266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23412267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23412268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23412269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23412270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23412271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23412272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23412273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23412274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23412275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23412276, '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 (23397772,23398051,23398303,23399179,23399344,23399686,23400106,23400427,23400761,23401154,23401510,23401873,23402106,23402440,23402734,23403490,23403648,23403911,23404230,23404712,23405129,23405492,23405806,23406291,23406782,23407058,23407390,23407757,23408183,23408565,23408918,23409657,23410368,23411041,23411222,23411947,23412231) result : ((1361412970,), (1361412973,), (1361412976,), (1361412978,), (1361413011,), (1361413012,), (1361413014,), (1361413016,), (1361413018,), (1361413022,), (1361413044,), (1361413046,), (1361413048,), (1361413081,), (1361413083,), (1361413086,), (1361413089,), (1361413094,), (1361413097,), (1361413115,), (1361413117,), (1361413120,), (1361413121,), (1361413124,), (1361413128,), (1361413147,), (1361413149,), (1361413151,), (1361413152,), (1361413154,), (1361413187,), (1361413195,), (1361413197,), (1361413199,), (1361413201,), (1361413203,), (1361413219,), (1361413221,), (1361413223,), (1361413225,), (1361413255,), (1361413258,), (1361413261,), (1361413264,), (1361413266,), (1361413268,), (1361413287,), (1361413291,), (1361413292,), (1361413315,), (1361413316,), (1361413317,), (1361413318,), (1361413340,), (1361413512,), (1361413509,), (1361413511,), (1361413543,), (1361413545,), (1361413546,), (1361413547,), (1361413548,), (1361413550,), (1361413572,), (1361413573,), (1361413574,), (1361413575,), (1361413576,), (1361413578,), (1361413603,), (1361413604,), (1361413605,), (1361413606,), (1361413640,), (1361413641,), (1361413642,), (1361413643,), (1361413647,), (1361413654,), (1361413678,), (1361413680,), (1361413682,), (1361413684,), (1361413686,), (1361413710,), (1361413712,), (1361413714,), (1361413716,), (1361413722,), (1361413758,), (1361413759,), (1361413760,), (1361413761,), (1361413762,), (1361413763,), (1361413786,), (1361413787,), (1361413788,), (1361413789,), (1361413818,), (1361413819,), (1361413820,), (1361413821,), (1361413822,), (1361413823,), (1361413847,), (1361413850,), (1361413852,), (1361413854,), (1361413878,), (1361413879,), (1361413880,), (1361413881,), (1361413905,), (1361413908,), (1361413909,), (1361413911,), (1361413913,), (1361413916,), (1361413937,), (1361413935,), (1361413936,), (1361413961,), (1361413962,), (1361413963,), (1361413992,), (1361413993,), (1361413994,), (1361413995,), (1361413996,), (1361414019,), (1361414020,), (1361414021,), (1361414022,), (1361414023,), (1361414032,), (1361414035,), (1361414037,), (1361419067,), (1361420894,), (1361420897,), (1361420919,), (1361420945,), (1361420966,), (1361420978,), (1361420984,), (1361420986,), (1361420987,), (1361420988,), (1361421007,), (1361421009,), (1361421012,), (1361421015,), (1361421037,), (1361421041,), (1361421044,), (1361421047,), (1361421050,), (1361421054,), (1361421081,), (1361421083,), (1361421084,), (1361421101,), (1361421105,), (1361421107,), (1361421110,), (1361421113,), (1361421115,), (1361421132,), (1361421134,), (1361421136,), (1361421138,), (1361421139,), (1361421157,), (1361421159,), (1361421161,), (1361421164,), (1361421165,), (1361421167,), (1361421183,), (1361421186,), (1361421224,), (1361421215,), (1361421217,), (1361421219,), (1361421250,), (1361421258,), (1361421260,), (1361421261,), (1361421262,), (1361421276,), (1361421279,), (1361421282,), (1361421306,), (1361421308,), (1361421331,), (1361421332,), (1361421335,), (1361421337,), (1361421338,), (1361421359,), (1361421361,), (1361421363,), (1361421365,), (1361421393,), (1361421395,), (1361421397,), (1361421400,), (1361421401,), (1361421408,), (1361421429,), (1361421431,), (1361421447,), (1361421449,), (1361421454,), (1361421460,), (1361421482,), (1361421485,), (1361421488,), (1361421492,), (1361421720,), (1361421819,), (1361421848,), (1361421874,), (1361421897,), (1361421928,), (1361422150,), (1361422175,), (1361422202,), (1361422439,), (1361422441,), (1361422443,), (1361422445,), (1361422446,), (1361422576,), (1361422603,), (1361422627,), (1361422654,), (1361422681,), (1361422750,), (1361422752,), (1361422775,), (1361422801,), (1361422827,), (1361422915,), (1361422883,), (1361422885,), (1361422887,), (1361422892,), (1361423170,), (1361423172,), (1361423174,), (1361423176,), (1361423197,), (1361423200,), (1361423203,), (1361423206,), (1361423227,), (1361423229,), (1361423231,), (1361423244,), (1361423249,), (1361423253,), (1361423255,), (1361423276,), (1361423314,), (1361423319,), (1361423322,), (1361423325,), (1361423339,), (1361423360,), (1361423407,), (1361423409,), (1361423411,), (1361423444,), (1361423446,), (1361423448,), (1361423450,), (1361423476,), (1361423479,), (1361423481,), (1361423483,), (1361423485,), (1361423503,), (1361423509,), (1361423511,), (1361423513,), (1361423527,), (1361423529,), (1361423531,), (1361423559,), (1361423563,), (1361423566,), (1361423568,), (1361423595,), (1361423588,), (1361423590,), (1361423592,), (1361423594,), (1361423615,), (1361423618,), (1361423621,), (1361423624,), (1361423626,), (1361423648,), (1361423649,), (1361423655,), (1361423682,), (1361423685,), (1361423687,), (1361423709,), (1361423711,), (1361423713,), (1361423714,), (1361423716,), (1361423718,), (1361423742,), (1361423744,), (1361423746,), (1361423748,), (1361423750,), (1361423776,), (1361423778,), (1361423780,), (1361423812,), (1361423820,), (1361423822,), (1361423824,), (1361423825,), (1361423826,), (1361424021,), (1361424048,), (1361424073,), (1361424099,), (1361424126,), (1361424149,), (1361424406,), (1361424434,), (1361424464,), (1361424494,), (1361424811,), (1361424814,), (1361424816,), (1361424818,), (1361424820,), (1361424821,), (1361424844,), (1361424861,), (1361424887,), (1361424940,), (1361425202,), (1361425204,), (1361425205,), (1361425207,), (1361425480,), (1361425510,), (1361425533,), (1361425558,), (1361425585,), (1361425646,), (1361425647,), (1361425649,), (1361425650,), (1361425653,), (1361425654,), (1361425658,), (1361425659,), (1361425662,), (1361425664,), (1361425673,), (1361425671,), (1361425697,), (1361425699,), (1361425700,), (1361425720,), (1361425727,), (1361425729,), (1361425731,), (1361425732,), (1361425734,), (1361425750,), (1361425753,), (1361425760,), (1361425761,), (1361425763,), (1361425764,), (1361425784,), (1361425786,), (1361425788,), (1361425812,), (1361425815,), (1361425817,), (1361425819,), (1361425820,), (1361425857,), (1361425860,), (1361425862,), (1361425869,), (1361425875,), (1361425877,), (1361425896,), (1361425898,), (1361425902,), (1361425908,), (1361425909,), (1361425929,), (1361425932,), (1361425935,), (1361425957,), (1361425960,), (1361425964,), (1361425968,), (1361425969,), (1361425971,), (1361425989,), (1361425991,), (1361425998,), (1361426001,), (1361426003,), (1361426026,), (1361426029,), (1361426032,), (1361426054,), (1361426057,), (1361426058,), (1361426060,), (1361426062,), (1361426063,), (1361426082,), (1361426084,), (1361426086,), (1361426088,), (1361426089,), (1361426108,), (1361426111,), (1361426113,), (1361426148,), (1361426135,), (1361426139,), (1361426142,), (1361426146,), (1361426147,), (1361426179,), (1361426181,), (1361426182,), (1361426183,), (1361426184,), (1361426185,), (1361426199,), (1361426201,), (1361426203,), (1361426204,), (1361426219,), (1361426220,), (1361426226,), (1361426232,), (1361426248,), (1361426249,), (1361426255,), (1361426258,), (1361426259,), (1361426260,), (1361426278,), (1361426281,), (1361426284,), (1361426285,), (1361426301,), (1361426313,), (1361426340,), (1361426366,), (1361426381,), (1361426390,), (1361426479,), (1361426480,), (1361426484,), (1361426491,), (1361426507,), (1361426508,), (1361426554,), (1361426555,), (1361426556,), (1361426584,), (1361426590,), (1361426592,), (1361426594,), (1361426596,), (1361426598,), (1361426614,), (1361426615,), (1361426616,), (1361426617,), (1361426645,), (1361426646,), (1361426648,), (1361426652,), (1361426659,), (1361426664,), (1361426666,), (1361426668,), (1361426714,), (1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,), (1361426921,), (1361426923,), (1361426928,), (1361426930,), (1361426947,), (1361426948,), (1361426949,), (1361426950,), (1361426951,), (1361426952,), (1361426980,), (1361426982,), (1361426983,), (1361426984,), (1361427002,), (1361427004,), (1361427005,), (1361427029,), (1361427032,), (1361427036,), (1361427037,), (1361427038,), (1361427050,), (1361427052,), (1361427053,), (1361427055,), (1361427056,), (1361427074,), (1361427071,), (1361427072,), (1361427073,), (1361427098,), (1361427107,), (1361427110,), (1361427111,), (1361427127,), (1361427131,), (1361427133,), (1361427134,), (1361427135,), (1361427136,), (1361427147,), (1361427148,), (1361427149,), (1361427150,), (1361427167,), (1361427169,), (1361427190,), (1361427192,), (1361427193,), (1361427194,), (1361427201,), (1361427205,), (1361427222,), (1361427223,), (1361427226,), (1361427249,), (1361427250,), (1361427251,), (1361427252,), (1361427254,), (1361427272,), (1361427273,), (1361427274,), (1361427275,), (1361427276,), (1361427293,), (1361427297,), (1361427301,), (1361427317,), (1361427318,), (1361427319,), (1361427321,), (1361427329,), (1361427331,), (1361427351,), (1361427353,), (1361427355,), (1361427357,), (1361427373,), (1361427374,), (1361427375,), (1361427376,), (1361427377,), (1361427378,), (1361427411,), (1361427412,), (1361427413,), (1361427414,), (1361427415,), (1361427416,), (1361427434,), (1361427561,), (1361427562,), (1361427563,), (1361427564,), (1361427580,), (1361427583,), (1361427585,), (1361427586,), (1361427587,), (1361427598,), (1361427601,), (1361427603,), (1361427604,), (1361427605,), (1361427624,), (1361427625,), (1361427630,), (1361427650,), (1361427651,), (1361427652,), (1361427653,), (1361427654,), (1361427676,), (1361427677,), (1361427678,), (1361427679,), (1361427704,), (1361427706,), (1361427709,), (1361427715,), (1361427716,), (1361427768,), (1361427772,), (1361427778,), (1361427801,), (1361427804,), (1361427805,), (1361427806,), (1361427807,), (1361427808,), (1361427831,), (1361427827,), (1361427829,), (1361427830,), (1361427849,), (1361427850,), (1361427851,), (1361427898,), (1361427899,), (1361427900,), (1361427906,), (1361427907,), (1361427908,), (1361427926,), (1361427927,), (1361427928,), (1361427929,), (1361427930,), (1361427950,), (1361427952,), (1361427953,), (1361427974,), (1361427975,), (1361427979,), (1361427980,), (1361428004,), (1361428005,), (1361428006,), (1361428007,), (1361428009,), (1361428017,), (1361428034,), (1361428036,), (1361428038,), (1361428058,), (1361428060,), (1361428062,), (1361428078,), (1361428081,), (1361428085,), (1361428095,), (1361428098,), (1361428100,), (1361428115,), (1361428116,), (1361428118,), (1361428149,), (1361428150,), (1361428151,), (1361428152,), (1361428153,), (1361428154,), (1361428171,), (1361428172,), (1361428173,), (1361428174,), (1361428175,), (1361428176,), (1361428197,), (1361428199,), (1361428201,), (1361428202,), (1361428220,), (1361428221,), (1361428222,), (1361428223,), (1361428224,), (1361428261,), (1361428254,), (1361428256,), (1361428258,), (1361428259,), (1361428260,), (1361428278,), (1361428279,), (1361428280,), (1361428297,), (1361428298,), (1361428299,), (1361428329,), (1361428330,), (1361428331,), (1361428332,), (1361428333,), (1361428353,), (1361428355,), (1361428357,), (1361428359,), (1361428361,), (1361428363,), (1361428380,), (1361428384,), (1361428387,), (1361428389,), (1361428390,), (1361428413,), (1361428416,), (1361428419,), (1361428422,), (1361428451,), (1361428455,), (1361428458,), (1361428461,), (1361428463,), (1361428481,), (1361428483,), (1361428485,), (1361428487,), (1361428508,), (1361428510,), (1361428512,), (1361428513,), (1361428515,), (1361428517,), (1361428537,), (1361428539,), (1361428541,), (1361428543,), (1361428562,), (1361428564,), (1361428566,), (1361428573,), (1361428576,), (1361428598,), (1361428601,), (1361428603,), (1361428605,), (1361428607,), (1361428626,), (1361428629,), (1361428631,), (1361428633,), (1361428635,), (1361428637,), (1361428657,), (1361428659,), (1361428661,), (1361428695,), (1361428684,), (1361428687,), (1361428689,), (1361428691,), (1361428693,), (1361428708,), (1361428763,), (1361430035,), (1361430064,), (1361430066,), (1361430090,), (1361430093,), (1361430096,), (1361430098,), (1361430118,), (1361430121,), (1361430143,), (1361430145,), (1361430215,), (1361430220,), (1361430269,), (1361430297,), (1361430294,), (1361430322,), (1361430326,), (1361430383,), (1361430386,), (1361430389,), (1361430391,), (1361430408,), (1361430572,), (1361430575,), (1361430578,), (1361430580,), (1361430615,), (1361430617,), (1361430619,), (1361430621,), (1361430623,), (1361430643,), (1361430645,), (1361430647,), (1361430651,), (1361430654,), (1361430692,), (1361430694,), (1361430696,), (1361430700,), (1361430710,), (1361430715,), (1361430739,), (1361430733,), (1361430735,), (1361430737,), (1361430774,), (1361430776,), (1361430779,), (1361430781,), (1361430782,), (1361430800,), (1361430802,), (1361430804,), (1361430806,), (1361430808,), (1361430824,), (1361430826,), (1361430828,), (1361430830,), (1361430832,), (1361430866,), (1361430869,), (1361430893,), (1361430896,), (1361430899,), (1361430901,), (1361430924,), (1361430927,), (1361430948,), (1361430952,), (1361430954,), (1361430976,), (1361430979,), (1361430981,), (1361430983,), (1361431001,), (1361431003,), (1361431034,), (1361431037,), (1361431039,), (1361431042,), (1361431046,), (1361431063,), (1361431065,), (1361431067,), (1361431069,), (1361431094,), (1361431097,), (1361431100,), (1361431103,), (1361431124,), (1361431126,), (1361431156,), (1361431158,), (1361431185,), (1361431179,), (1361431181,), (1361431183,), (1361431218,), (1361431221,), (1361431224,), (1361431227,), (1361431229,), (1361431247,), (1361431249,), (1361431251,), (1361431252,), (1361431255,), (1361431295,), (1361431298,), (1361431301,), (1361431303,), (1361431325,), (1361431545,), (1361431568,), (1361431603,), (1361431614,), (1361431686,), (1361431718,), (1361431752,), (1361431755,), (1361431759,), (1361431783,), (1361431785,), (1361431787,), (1361431806,), (1361431810,), (1361431812,), (1361431814,), (1361431843,), (1361431845,), (1361431962,), (1361431986,), (1361431988,), (1361431990,), (1361432014,), (1361432016,), (1361432018,), (1361432021,), (1361432047,), (1361432048,), (1361432051,), (1361432057,), (1361432059,), (1361432061,), (1361432157,), (1361432186,), (1361432320,), (1361432322,), (1361432351,), (1361432343,), (1361432345,), (1361432347,), (1361432349,), (1361432369,), (1361432371,), (1361432376,), (1361432408,), (1361432410,), (1361432413,), (1361432416,), (1361432435,), (1361432436,), (1361432440,), (1361432452,), (1361432454,), (1361432456,), (1361432458,), (1361432647,), (1361432656,), (1361432675,), (1361432682,), (1361432703,), (1361432711,), (1361432745,), (1361432748,), (1361432750,), (1361432752,), (1361432754,), (1361432772,), (1361432775,), (1361432778,), (1361432780,), (1361432782,), (1361432784,), (1361432800,), (1361432802,), (1361432805,), (1361432833,), (1361432834,), (1361432836,), (1361432839,), (1361432841,), (1361432843,), (1361432867,), (1361432869,), (1361432870,), (1361432872,), (1361432874,), (1361432893,), (1361432899,), (1361432902,), (1361432904,), (1361432905,), (1361432926,), (1361432930,), (1361432933,), (1361432935,), (1361432938,), (1361432945,), (1361432964,), (1361432966,), (1361432968,), (1361432970,), (1361432984,), (1361432987,), (1361432989,), (1361432993,), (1361432997,), (1361433030,), (1361433017,), (1361433019,), (1361433021,), (1361433049,), (1361433051,), (1361433053,), (1361433055,), (1361433057,), (1361433062,), (1361433095,), (1361433100,), (1361433103,), (1361433107,), (1361433110,), (1361433112,), (1361433128,), (1361433130,), (1361433132,), (1361433152,), (1361433155,), (1361433158,), (1361433160,), (1361433162,), (1361433180,), (1361433187,), (1361433189,), (1361433191,), (1361433193,), (1361433196,), (1361433218,), (1361433226,), (1361433230,), (1361433232,), (1361433258,), (1361433260,), (1361433262,), (1361433264,), (1361433266,), (1361433289,), (1361433292,), (1361433294,), (1361433297,), (1361433301,), (1361433322,), (1361433325,), (1361433328,), (1361433331,), (1361433333,), (1361433365,), (1361433367,), (1361433370,), (1361433373,), (1361433374,), (1361433394,), (1361433396,), (1361433398,), (1361433400,), (1361433401,), (1361433404,), (1361433424,), (1361433426,), (1361433428,), (1361433429,), (1361433480,), (1361433483,), (1361433486,), (1361433487,), (1361433493,), (1361433494,), (1361433496,), (1361433497,), (1361433499,), (1361433501,), (1361433503,), (1361433506,), (1361433509,), (1361433512,), (1361433527,), (1361433520,), (1361433522,), (1361433524,), (1361433526,), (1361433547,), (1361433549,), (1361433551,), (1361433573,), (1361433576,), (1361433578,), (1361433600,), (1361433602,), (1361433604,), (1361433606,), (1361433609,), (1361433631,), (1361433634,), (1361433636,), (1361433639,), (1361433641,), (1361433662,), (1361433664,), (1361433666,), (1361433687,), (1361433690,), (1361433692,), (1361433694,), (1361433701,), (1361433702,), (1361433721,), (1361433723,), (1361433725,), (1361433731,), (1361433751,), (1361433753,), (1361433755,), (1361433757,), (1361433777,), (1361433779,), (1361433781,), (1361433782,), (1361433785,), (1361433786,), (1361433805,), (1361433807,), (1361433809,), (1361433811,), (1361433820,), (1361433852,), (1361433855,), (1361433856,), (1361433858,), (1361433860,), (1361433862,), (1361433897,), (1361433901,), (1361433903,), (1361433906,), (1361433908,), (1361433933,), (1361433937,), (1361433941,), (1361433943,), (1361433946,), (1361433965,), (1361433967,), (1361433970,), (1361433973,), (1361433976,), (1361434013,), (1361434001,), (1361434004,), (1361434006,), (1361434007,), (1361434011,), (1361434035,), (1361434037,), (1361434039,), (1361434044,), (1361434062,), (1361434064,), (1361434066,), (1361434068,), (1361434089,), (1361434092,), (1361434094,), (1361434096,), (1361434098,), (1361434125,), (1361434127,), (1361434129,), (1361434131,), (1361434342,), (1361434366,), (1361434393,), (1361434419,), (1361434433,), (1361434533,), (1361434535,), (1361434537,), (1361434779,), (1361434789,), (1361434820,), (1361434832,), (1361434912,), (1361434915,), (1361434917,), (1361434919,), (1361434953,), (1361434957,), (1361435118,), (1361435146,), (1361435264,), (1361435267,), (1361435270,), (1361435297,), (1361435303,), (1361435305,), (1361435307,), (1361435309,), (1361435311,), (1361435330,), (1361435335,), (1361435358,), (1361435360,), (1361435362,), (1361435367,), (1361435371,), (1361435679,), (1361435623,), (1361435653,), (1361435811,), (1361435813,), (1361435815,), (1361435845,), (1361435871,), (1361435983,), (1361436000,), (1361436030,), (1361436059,), (1361436081,), (1361436083,), (1361436180,), (1361436208,), (1361436236,), (1361436255,), (1361436258,), (1361436261,), (1361436270,), (1361436277,), (1361436281,), (1361436306,), (1361436312,), (1361436316,), (1361436321,), (1361436324,), (1361436326,), (1361436350,), (1361436353,), (1361436355,), (1361436385,), (1361436388,), (1361436390,), (1361436392,), (1361436394,), (1361436429,), (1361436431,), (1361436433,), (1361436476,), (1361436479,), (1361436482,), (1361436532,), (1361436538,), (1361436541,), (1361436549,), (1361436571,), (1361436573,), (1361436575,), (1361436604,), (1361436606,), (1361436608,), (1361436610,), (1361436612,), (1361436637,), (1361436640,), (1361436643,), (1361436645,), (1361436647,), (1361436674,), (1361436676,), (1361436678,), (1361436680,), (1361436682,), (1361436684,), (1361436730,), (1361436725,), (1361436727,), (1361436761,), (1361436765,), (1361436767,), (1361436795,), (1361436798,), (1361436801,), (1361436946,), (1361436950,), (1361436953,), (1361436988,), (1361436990,), (1361436992,), (1361436994,), (1361437019,), (1361437022,), (1361437023,), (1361437049,), (1361437051,), (1361437114,), (1361437117,), (1361437149,), (1361437151,), (1361437153,), (1361437155,), (1361437157,), (1361437159,), (1361437222,), (1361437226,), (1361437232,), (1361437235,), (1361437236,), (1361437244,), (1361437274,), (1361437263,), (1361437265,), (1361437267,), (1361437269,), (1361437272,), (1361437300,), (1361437311,), (1361437339,), (1361437341,), (1361437345,), (1361437347,), (1361437395,), (1361437398,), (1361437401,), (1361437404,), (1361437437,), (1361437440,), (1361437443,), (1361437481,), (1361437483,), (1361437485,), (1361437487,), (1361437489,), (1361437524,), (1361437529,), (1361437533,), (1361437535,), (1361437564,), (1361437566,), (1361437568,), (1361437570,), (1361437572,), (1361437574,), (1361437604,), (1361437610,), (1361437615,), (1361437652,), (1361437656,), (1361437658,), (1361437660,), (1361437663,), (1361437667,), (1361437695,), (1361437698,), (1361437700,), (1361437747,), (1361437750,), (1361437753,), (1361437755,), (1361437757,), (1361437759,), (1361437789,), (1361437792,), (1361437795,), (1361437798,), (1361437800,), (1361437828,), (1361437831,), (1361437833,), (1361437866,), (1361437870,), (1361437874,), (1361437877,), (1361437879,), (1361437882,), (1361437943,), (1361437923,), (1361437933,), (1361437935,), (1361437938,), (1361437940,), (1361437971,), (1361437974,), (1361437977,), (1361437980,), (1361438015,), (1361438019,), (1361438022,), (1361438025,), (1361438027,), (1361438029,), (1361438060,), (1361438063,), (1361438065,), (1361438105,), (1361438107,), (1361438109,), (1361438151,), (1361438153,), (1361438194,), (1361438205,), (1361438211,), (1361438271,), (1361438274,), (1361438280,), (1361438334,), (1361438376,), (1361438379,), (1361438382,), (1361438385,), (1361438388,), (1361438432,), (1361438437,), (1361438475,), (1361438479,), (1361438481,), (1361438483,), (1361438485,), (1361438487,), (1361438512,), (1361438515,), (1361438517,), (1361438519,), (1361438522,), (1361438557,), (1361438559,), (1361438562,), (1361438586,), (1361438768,), (1361438771,), (1361438775,), (1361438804,), (1361438834,), (1361438858,), (1361439049,), (1361439024,), (1361439033,), (1361439035,), (1361439038,), (1361439042,), (1361439079,), (1361439083,), (1361439086,), (1361439088,), (1361439090,), (1361439119,), (1361439123,), (1361439127,), (1361439130,), (1361439168,), (1361439173,), (1361439175,), (1361439177,), (1361439179,), (1361439196,), (1361439200,), (1361439203,), (1361439207,), (1361439214,), (1361439221,), (1361439264,), (1361439272,), (1361439278,), (1361439324,), (1361439329,), (1361439331,), (1361439334,), (1361439337,), (1361439341,), (1361439372,), (1361439377,), (1361439380,), (1361439384,), (1361439387,), (1361439656,), (1361439686,), (1361439711,), (1361439738,), (1361439766,), (1361439793,), (1361440076,), (1361440109,), (1361440138,), (1361440403,), (1361440408,), (1361440411,), (1361440413,), (1361440420,), (1361440547,), (1361440552,), (1361440554,), (1361440557,), (1361440602,), (1361440605,), (1361440609,), (1361440611,), (1361440612,), (1361440892,), (1361440919,), (1361441461,), (1361441445,), (1361441450,), (1361441454,), (1361441458,), (1361441494,), (1361441508,), (1361441536,), (1361441562,), (1361441605,), (1361441638,), (1361441836,), (1361441840,), (1361441844,), (1361441848,), (1361441901,), (1361441909,), (1361441914,), (1361441943,), (1361441950,), (1361441953,), (1361441957,), (1361441994,), (1361441998,), (1361442001,), (1361442045,), (1361442049,), (1361442051,), (1361442054,), (1361442057,), (1361442093,), (1361442097,), (1361442099,), (1361442101,), (1361442103,), (1361442141,), (1361442146,), (1361442183,), (1361442187,), (1361442323,), (1361442326,), (1361442331,), (1361442408,), (1361442411,), (1361442414,), (1361442417,), (1361442420,), (1361442423,), (1361442453,), (1361442446,), (1361442449,), (1361442451,), (1361442488,), (1361442491,), (1361442492,), (1361442495,), (1361442499,), (1361442503,), (1361442524,), (1361442527,), (1361442531,), (1361442533,), (1361442573,), (1361442577,), (1361442580,), (1361442583,), (1361442586,), (1361442589,), (1361442615,), (1361442619,), (1361442622,), (1361442625,), (1361442628,), (1361442675,), (1361442679,), (1361442682,), (1361442684,), (1361442685,), (1361442715,), (1361442718,), (1361442721,), (1361442724,), (1361442726,), (1361442760,), (1361442763,), (1361442766,), (1361442769,), (1361442772,), (1361442807,), (1361442810,), (1361442813,), (1361442816,), (1361442877,), (1361442881,), (1361442884,), (1361442887,), (1361442890,), (1361442923,), (1361442927,), (1361442929,), (1361442932,), (1361442935,), (1361442975,), (1361442980,), (1361442982,), (1361442984,), (1361442986,), (1361442989,), (1361443022,), (1361443026,), (1361443028,), (1361443030,), (1361443033,), (1361443070,), (1361443073,), (1361443075,), (1361443077,), (1361443079,), (1361443108,), (1361443111,), (1361443114,), (1361443117,), (1361443156,), (1361443151,), (1361443154,), (1361443250,), (1361443391,), (1361443436,), (1361443438,), (1361443440,), (1361443448,), (1361443453,), (1361443569,), (1361443573,), (1361443576,), (1361443578,), (1361443587,), (1361443677,), (1361443681,), (1361443684,), (1361443738,), (1361443742,), (1361443781,), (1361443789,), (1361443792,), (1361443857,), (1361443902,), (1361443907,), (1361443910,), (1361444073,), (1361444099,), (1361444128,), (1361444365,), (1361444411,), (1361444449,), (1361444583,), (1361444900,), (1361444995,), (1361445024,), (1361445043,), (1361445156,), (1361445162,), (1361445165,), (1361445296,), (1361445324,), (1361445349,), (1361445362,), (1361445364,), (1361445592,), (1361445586,), (1361445589,), (1361445636,), (1361445640,), (1361445673,), (1361445676,), (1361445678,), (1361445680,), (1361445683,), (1361445711,), (1361445714,), (1361445717,), (1361445723,), (1361445724,), (1361445737,), (1361445741,), (1361445745,), (1361445747,), (1361445791,), (1361447382,), (1361450528,), (1361449920,), (1361450517,), (1361450521,), (1361450523,), (1361450525,), (1361450562,), (1361450566,), (1361450569,), (1361450607,), (1361450612,), (1361450616,), (1361450618,), (1361450648,), (1361450652,), (1361450655,), (1361450658,), (1361450660,), (1361450706,), (1361450708,), (1361450710,), (1361450751,), (1361450754,), (1361450757,), (1361450762,), (1361450768,), (1361450790,), (1361450792,), (1361450794,), (1361450801,), (1361450804,), (1361450813,), (1361450837,), (1361450841,), (1361450844,), (1361450847,), (1361450908,), (1361450911,), (1361450913,), (1361450952,), (1361451614,), (1361451657,), (1361451661,), (1361451666,), (1361451672,), (1361451720,), (1361451724,), (1361451770,), (1361451779,), (1361451782,), (1361451787,), (1361451791,), (1361451821,), (1361451823,), (1361451828,), (1361451830,), (1361451832,), (1361451859,), (1361451864,), (1361451867,), (1361451909,), (1361451913,), (1361451915,), (1361451917,), (1361451920,), (1361451954,), (1361451957,), (1361451960,), (1361451964,), (1361452002,), (1361452006,), (1361452009,), (1361452042,), (1361452048,), (1361452050,), (1361452056,), (1361452060,), (1361452091,), (1361452099,), (1361452103,), (1361452107,), (1361452177,), (1361452135,), (1361452138,), (1361452151,), (1361452174,), (1361452204,), (1361452209,), (1361452213,), (1361452216,), (1361452246,), (1361452250,), (1361452255,), (1361452301,), (1361452311,), (1361452315,), (1361452328,), (1361452340,), (1361452390,), (1361452394,), (1361452427,), (1361452524,), (1361452527,), (1361452570,), (1361452586,), (1361452597,), (1361452600,), (1361452632,), (1361452636,), (1361452640,), (1361452643,), (1361452680,), (1361452683,), (1361452684,), (1361452688,), (1361452691,), (1361452744,), (1361452747,), (1361452749,), (1361452752,), (1361452816,), (1361452820,), (1361452822,), (1361453013,), (1361453037,), (1361453041,), (1361453050,), (1361453057,), (1361453145,), (1361453153,), (1361453161,), (1361453177,), (1361453518,), (1361453530,), (1361453733,), (1361456657,), (1361456870,), (1361456887,), (1361456903,), (1361456919,), (1361456929,), (1361457021,), (1361457043,), (1361457201,), (1361457211,), (1361457219,), (1361457339,), (1361457362,), (1361457388,), (1361457400,), (1361457414,), (1361457618,), (1361457642,), (1361457657,), (1361457873,), (1361457901,), (1361457928,), (1361457957,), (1361457981,), (1361457991,), (1361458188,), (1361458215,), (1361458249,), (1361458271,), (1361458562,), (1361458578,), (1361458586,), (1361458600,), (1361458876,), (1361458899,), (1361458934,), (1361460010,), (1361460029,), (1361460058,), (1361460368,), (1361460418,), (1361460440,), (1361460482,), (1361460791,), (1361460821,), (1361461194,), (1361461112,), (1361461127,), (1361461142,), (1361461157,), (1361461479,), (1361461519,), (1361461775,), (1361461791,), (1361461795,), (1361461945,), (1361461986,), (1361462009,), (1361462155,), (1361462170,), (1361462200,), (1361462216,), (1361462244,), (1361462261,), (1361462485,), (1361462521,), (1361462563,), (1361462613,), (1361462653,), (1361462880,), (1361462890,), (1361462906,), (1361462909,), (1361462931,), (1361463062,), (1361463068,), (1361463087,), (1361463103,), (1361463115,), (1361463230,), (1361463236,), (1361463257,), (1361463266,), (1361463440,), (1361463478,), (1361463660,), (1361463676,), (1361463685,), (1361463700,), (1361463808,), (1361463854,), (1361463858,), (1361463874,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28052025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23412231]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361463874, 1361463858, 1361463854, 1361463808] map_info['map_portfolio_photo'] : {23412231: [1361463874, 1361463858, 1361463854, 1361463808, 1361463700, 1361463685, 1361463676, 1361463660, 1361463478, 1361463440, 1361463266, 1361463257, 1361463236, 1361463230, 1361463115, 1361463103, 1361463087, 1361463068, 1361463062, 1361462931, 1361462909, 1361462906, 1361462890, 1361462880, 1361462653, 1361462613, 1361462563, 1361462521, 1361462485, 1361462261, 1361462244, 1361462216, 1361462200, 1361462170, 1361462155, 1361462009, 1361461986, 1361461945, 1361461795, 1361461791, 1361461775, 1361461519, 1361461479, 1361461157, 1361461142, 1361461127, 1361461112]} final : True mtd_id 4302 list_pids : [1361463874, 1361463858, 1361463854, 1361463808] Looping around the photos to save general results len do output : 1 /23412231Didn'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, '2974963') ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963') ('4302', None, None, None, None, None, None, None, '2974963') ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963') 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', None, '23412231', 'None', None, None, None, None, '2974963'), ('4302', '23412231', '1361463874', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463858', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463854', None, None, None, None, None, '2974963'), ('4302', '23412231', '1361463808', None, None, None, None, None, '2974963')] time used for this insertion : 0.012624502182006836 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.442553997039795 time spend to save output : 0.012814760208129883 total time spend for step 5 : 2.455368757247925 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 (2974963) 2.03user 2.35system 0:07.98elapsed 54%CPU (0avgtext+0avgdata 160324maxresident)k 80inputs+4960outputs (0major+64540minor)pagefaults 0swaps