4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751260) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751260) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312446 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751260'] with mtr_portfolio_ids : ['22312446'] and first list_photo_ids : [] new path : /proc/3843376/ Name: python3 Umask: 0002 State: R (running) Tgid: 3843376 Ngid: 0 Pid: 3843376 PPid: 3843375 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3843376 NSpid: 3843376 NSpgid: 3839385 NSsid: 3839385 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97184 kB VmRSS: 97184 kB RssAnon: 59776 kB RssFile: 37408 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 62 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3843376', 'Ngid': '0', 'Pid': '3843376', 'PPid': '3843375', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3843376', 'NSpid': '3843376', 'NSpgid': '3839385', 'NSsid': '3839385', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97184 kB', 'VmRSS': '97184 kB', 'RssAnon': '59776 kB', 'RssFile': '37408 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '62'} ('datou_batch_current', '3843376', '1106936', '0', '1106936', '865684', '97184', b'', 'marlene', '2751260') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou 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 (22312446) 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 (2751260 ) ) 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 (22312446) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352743674, 'portfolio_id': 22312446}, {'photo_id': 1352743494, 'portfolio_id': 22312446}, {'photo_id': 1352743467, 'portfolio_id': 22312446}, {'photo_id': 1352743244, 'portfolio_id': 22312446}, {'photo_id': 1352743214, 'portfolio_id': 22312446}, {'photo_id': 1352742695, 'portfolio_id': 22312446}, {'photo_id': 1352742657, 'portfolio_id': 22312446}, {'photo_id': 1352742424, 'portfolio_id': 22312446}, {'photo_id': 1352742019, 'portfolio_id': 22312446}, {'photo_id': 1352741982, 'portfolio_id': 22312446}, {'photo_id': 1352740974, 'portfolio_id': 22312446}, {'photo_id': 1352740938, 'portfolio_id': 22312446}, {'photo_id': 1352739693, 'portfolio_id': 22312446}] map_portfolio_id_photo_id: {22312446: [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693]} ##### 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.025896549224853516 #### 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 Apr 23 05:52: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 (22312446) 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 : 22312446 get user id for portfolio 22312446 get sub ptf for main ptf 22312446, type 3726 and hashtags ['metal', 'cartonnette', 'papier', 'mal_croppe', 'plastique', 'autre_refus', 'kraft', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'Carton_gris'] 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`=22312446 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','papier','mal_croppe','plastique','autre_refus','kraft','flou','Teint_Dans_La_Masse','Carton_brun','environnement','Carton_gris')) 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`=22312446 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','papier','mal_croppe','plastique','autre_refus','kraft','flou','Teint_Dans_La_Masse','Carton_brun','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22312446, 'sub_port_id': 22312471, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772644, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'papier': {'main_port_id': 22312446, 'sub_port_id': 22312472, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772645, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'cartonnette': {'main_port_id': 22312446, 'sub_port_id': 22312473, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772646, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'flou': {'main_port_id': 22312446, 'sub_port_id': 22312474, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772647, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'Carton_gris': {'main_port_id': 22312446, 'sub_port_id': 22312475, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772648, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'environnement': {'main_port_id': 22312446, 'sub_port_id': 22312476, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772649, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'mal_croppe': {'main_port_id': 22312446, 'sub_port_id': 22312477, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772650, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'Carton_brun': {'main_port_id': 22312446, 'sub_port_id': 22312478, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772651, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'autre_refus': {'main_port_id': 22312446, 'sub_port_id': 22312479, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772652, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'plastique': {'main_port_id': 22312446, 'sub_port_id': 22312480, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772653, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22312446, 'sub_port_id': 22312481, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772654, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}, 'kraft': {'main_port_id': 22312446, 'sub_port_id': 22312482, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772655, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312471 , 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=22312446 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 (22312471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312472 , 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=22312446 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 (22312472) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312473 , 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=22312446 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 (22312473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312474 , 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=22312446 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 (22312474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312475 , 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=22312446 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 (22312475) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312476 , 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=22312446 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 (22312476) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312477 , 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=22312446 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 (22312477) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312478 , 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=22312446 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 (22312478) result : ((1352742780,), (1352742836,), (1352743640,), (1352743904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312479 , 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=22312446 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 (22312479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312480 , 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=22312446 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 (22312480) result : ((1352743423,), (1352743424,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312481 , 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=22312446 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 (22312481) result : ((1352742835,), (1352743415,), (1352743416,), (1352743417,), (1352743418,), (1352743419,), (1352743630,), (1352743631,), (1352743632,), (1352743633,), (1352743634,), (1352743635,), (1352743636,), (1352743900,), (1352743901,), (1352743902,), (1352743903,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22312482 , 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=22312446 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 (22312482) result : ((1352742837,), (1352742838,), (1352743425,), (1352743426,), (1352743905,), (1352743906,), (1352743907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22312446) result : ((1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22312446 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','papier','mal_croppe','plastique','autre_refus','kraft','flou','Teint_Dans_La_Masse','Carton_brun','environnement','Carton_gris')) 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`=22312446 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','papier','mal_croppe','plastique','autre_refus','kraft','flou','Teint_Dans_La_Masse','Carton_brun','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22312446, 'sub_port_id': 22312483, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772656, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'papier': {'main_port_id': 22312446, 'sub_port_id': 22312484, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772657, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'cartonnette': {'main_port_id': 22312446, 'sub_port_id': 22312485, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772658, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'flou': {'main_port_id': 22312446, 'sub_port_id': 22312486, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772659, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'Carton_gris': {'main_port_id': 22312446, 'sub_port_id': 22312487, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772660, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'environnement': {'main_port_id': 22312446, 'sub_port_id': 22312488, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772661, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'mal_croppe': {'main_port_id': 22312446, 'sub_port_id': 22312489, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772662, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'Carton_brun': {'main_port_id': 22312446, 'sub_port_id': 22312490, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772663, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'autre_refus': {'main_port_id': 22312446, 'sub_port_id': 22312491, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772664, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'plastique': {'main_port_id': 22312446, 'sub_port_id': 22312492, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772665, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'Teint_Dans_La_Masse': {'main_port_id': 22312446, 'sub_port_id': 22312493, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772666, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 9), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}, 'kraft': {'main_port_id': 22312446, 'sub_port_id': 22312494, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14772667, 'last_updated_at': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 4, 22, 19, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 4, 22, 19, 9)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312473 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22312494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22312482 lien utilise dans velours : https://www.fotonower.com/velours/22312483,22312484,22312485,22312486,22312487,22312488,22312489,22312490,22312491,22312492,22312493,22312494?tags=metal,papier,cartonnette,flou,Carton_gris,environnement,mal_croppe,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22312446]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] map_info['map_portfolio_photo'] : {22312446: [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693]} final : False mtd_id 4302 list_pids : [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] Looping around the photos to save general results len do output : 1 /22312446. 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, '2751260') ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22312446', "{'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482}", None, None, None, None, '2751260'), ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260')] time used for this insertion : 0.014617204666137695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.450747013092041 time spend to save output : 0.014971733093261719 total time spend for step 1 : 1.4657187461853027 step2:final Wed Apr 23 05:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22312446) 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 22312446 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352739693,1352740974,1352740938,1352742019,1352741982,1352742424,1352742695,1352742657,1352743244,1352743214,1352743494,1352743467,1352743674); 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([22312446]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} new output for save of step final : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] map_info['map_portfolio_photo'] : {22312446: [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693]} final : False mtd_id 4302 list_pids : [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] Looping around the photos to save general results len do output : 13 /1352743674.Didn't retrieve data . /1352743494.Didn't retrieve data . /1352743467.Didn't retrieve data . /1352743244.Didn't retrieve data . /1352743214.Didn't retrieve data . /1352742695.Didn't retrieve data . /1352742657.Didn't retrieve data . /1352742424.Didn't retrieve data . /1352742019.Didn't retrieve data . /1352741982.Didn't retrieve data . /1352740974.Didn't retrieve data . /1352740938.Didn't retrieve data . /1352739693.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, '2751260') ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22312446', '1352743674', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352743494', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352743467', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352743244', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352743214', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352742695', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352742657', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352742424', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352742019', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352741982', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352740974', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352740938', '0.10432914903297445', None, None, None, None, '2751260'), ('4302', '22312446', '1352739693', '0.10432914903297445', None, None, None, None, '2751260')] time used for this insertion : 0.014631271362304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0647883415222168 time spend to save output : 0.015358448028564453 total time spend for step 2 : 0.08014678955078125 step3:velours_tree Wed Apr 23 05:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22312446: [{'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482}]} input_args_next_step : {22312446: ()} output_args : {22312446: [{'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482}]} args : 22312446 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22312446) 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([22312446]) 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.3034806251525879 time spend to save output : 5.245208740234375e-05 total time spend for step 3 : 0.30353307723999023 step4:send_mail_cod Wed Apr 23 05:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} input_args_next_step : {1352743674: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352743674 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352743494 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352743467 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352743244 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352743214 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352742695 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352742657 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352742424 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352742019 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352741982 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352740974 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352740938 depend.output_id : 0 input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ()} output_args : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',)} args : 1352739693 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 : {22312446: [{'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482}]} input_args_next_step : {1352743674: ('0.10432914903297445',), 1352743494: ('0.10432914903297445',), 1352743467: ('0.10432914903297445',), 1352743244: ('0.10432914903297445',), 1352743214: ('0.10432914903297445',), 1352742695: ('0.10432914903297445',), 1352742657: ('0.10432914903297445',), 1352742424: ('0.10432914903297445',), 1352742019: ('0.10432914903297445',), 1352741982: ('0.10432914903297445',), 1352740974: ('0.10432914903297445',), 1352740938: ('0.10432914903297445',), 1352739693: ('0.10432914903297445',), 22312446: ()} output_args : {22312446: [{'metal': 22312471, 'papier': 22312472, 'cartonnette': 22312473, 'flou': 22312474, 'Carton_gris': 22312475, 'environnement': 22312476, 'mal_croppe': 22312477, 'Carton_brun': 22312478, 'autre_refus': 22312479, 'plastique': 22312480, 'Teint_Dans_La_Masse': 22312481, 'kraft': 22312482}]} args : 22312446 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 :14, first value : ('0.10432914903297445',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22312446) 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 (1352743674,1352743494,1352743467,1352743244,1352743214,1352742695,1352742657,1352742424,1352742019,1352741982,1352740974,1352740938,1352739693) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352739693 begin to download photo : 1352741982 begin to download photo : 1352742657 begin to download photo : 1352743244 begin to download photo : 1352743674 download finish for photo 1352742657 begin to download photo : 1352742695 download finish for photo 1352743244 begin to download photo : 1352743467 download finish for photo 1352739693 begin to download photo : 1352740938 download finish for photo 1352743674 download finish for photo 1352741982 begin to download photo : 1352742019 download finish for photo 1352742695 begin to download photo : 1352743214 download finish for photo 1352743467 begin to download photo : 1352743494 download finish for photo 1352740938 begin to download photo : 1352740974 download finish for photo 1352742019 begin to download photo : 1352742424 download finish for photo 1352743214 download finish for photo 1352743494 download finish for photo 1352740974 download finish for photo 1352742424 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223124711745380380/ imagette223124731745380380/ imagette223124741745380380/ imagette223124771745380380/ imagette223124791745380380/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22312446_23-04-2025_05_53_00.pdf 22312471 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=22312471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124711745380380 22312473 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=22312473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124731745380380 22312474 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=22312474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124741745380380 22312477 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=22312477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124771745380380 22312479 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=22312479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124791745380380 22312480 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=22312480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352743423: '1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763324_0.png', 1352743424: '1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/bb6b4cc06167a2cdb8149683852e13ea_6283773.png change filename to text .imagette223124801745380380/ imagette223124801745380380/1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763324_0.png.png imagette223124801745380380/1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763336_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8ed0c5614b731a6de2fca583f1a7dadc_33035972.png imagette223124801745380380 22312482 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=22312482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352742837: '1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758783_0.png', 1352742838: '1745341692_3421128_1352741982_0d44cdc37a4ddb8cd76fec1fc5d414e5_rle_crop_3763759024_0.png', 1352743425: '1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763315_0.png', 1352743426: '1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763332_0.png', 1352743905: '1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765478_0.png', 1352743906: '1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765481_0.png', 1352743907: '1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765493_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/c3366a3035122789ef8dd688a164a66b_31183900.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/230a729a82c09c656e99b02911c151d0_99682564.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b071e0a089ac628947d6629b160cd0aa_93172772.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/928521ce0b3ece3a917ceff81502c088_91518268.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3c2846b8ab70ecfd90a6312b63317826_1738564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3d5fdcb728c93924d4c0be1b0ddc7b04_92375585.png change filename to text .imagette223124821745380380/ imagette223124821745380380/1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765481_0.png.png imagette223124821745380380/1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765493_0.png.png imagette223124821745380380/1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763315_0.png.png imagette223124821745380380/1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758783_0.png.png imagette223124821745380380/1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765478_0.png.png imagette223124821745380380/1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763332_0.png.png imagette223124821745380380/1745341692_3421128_1352741982_0d44cdc37a4ddb8cd76fec1fc5d414e5_rle_crop_3763759024_0.png.png imagette223124751745380381/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/1947493b68471a74812a13ba0b1f5b2f_92137296.png imagette223124821745380380 22312475 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=22312475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223124751745380381 22312478 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=22312478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352742780: '1745341631_3420567_1352742019_6262c68694c98f75366c10198f13ed3d_rle_crop_3763757694_0.png', 1352742836: '1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758785_0.png', 1352743640: '1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763918_0.png', 1352743904: '1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/ed8d6fbe1ad550ab9fec887632f102a3_58466095.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/93b4d285e3d2153f43234d9112265cab_14855882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/193d767fb4d0f1c8efef898bfba97e4e_8855591.png change filename to text .imagette223124781745380381/ imagette223124781745380381/1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763918_0.png.png imagette223124781745380381/1745341631_3420567_1352742019_6262c68694c98f75366c10198f13ed3d_rle_crop_3763757694_0.png.png imagette223124781745380381/1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765476_0.png.png imagette223124781745380381/1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758785_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/bac88942966f01627c765e38cad18e1f_71773080.png imagette223124781745380381 22312481 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=22312481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352743632: '1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763921_0.png', 1352743903: '1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765498_0.png', 1352743902: '1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765495_0.png', 1352743901: '1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765501_0.png', 1352743900: '1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765474_0.png', 1352743636: '1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763937_0.png', 1352743635: '1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763936_0.png', 1352743634: '1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763931_0.png', 1352743633: '1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763934_0.png', 1352742835: '1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758793_0.png', 1352743631: '1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763915_0.png', 1352743630: '1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763922_0.png', 1352743419: '1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763337_0.png', 1352743418: '1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763339_0.png', 1352743417: '1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763317_0.png', 1352743416: '1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763322_0.png', 1352743415: '1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763326_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8cf9e507d0a86201754553c272eafe44_38367198.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/3259578cafd770588a20e0d82d3b2abe_93324140.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/9be8a6ce7bbd4aa5bf28e911b4e1cab7_73191503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/85d6fd46e87094c4a8b52b8c67f5e8ed_62825950.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/a0a02412fbffbcfade0436acccde727b_3408006.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5f56099d846c0bb56ed2b555331fe237_64972049.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/58ff7adf04497b4b32c54a9ce6e04fd4_62355151.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/8f0f8214834ef6634134887c91c509d8_61823020.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/292c99549f55d3b4599e5409e1c5926d_89784194.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/88592e7385d33672476e10b3a3e92452_22574461.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b60a4c6eeb07445ca8d710298db1a494_79279392.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/73810d7331170c705aa19d4d96a570c0_39797707.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6d85e2abbe59d645ab183607f5332e26_12169649.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d234c5459ae7fc7622567e5f36507079_97574023.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/d8411b62737cc5643af72f4576c36088_76456644.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/b5ab98a043c3117afac60298490396ee_67185432.png change filename to text .imagette223124811745380381/ imagette223124811745380381/1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763326_0.png.png imagette223124811745380381/1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763936_0.png.png imagette223124811745380381/1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765495_0.png.png imagette223124811745380381/1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763922_0.png.png imagette223124811745380381/1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763921_0.png.png imagette223124811745380381/1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763931_0.png.png imagette223124811745380381/1745342232_3425607_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea_rle_crop_3763765474_0.png.png imagette223124811745380381/1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763317_0.png.png imagette223124811745380381/1745341692_3421128_1352742424_699b30ee981e238f1df64a73d30a015b_rle_crop_3763758793_0.png.png imagette223124811745380381/1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765498_0.png.png imagette223124811745380381/1745342232_3425607_1352743467_7a603d7dcd2ffe45d76d7e70309504e8_rle_crop_3763765501_0.png.png imagette223124811745380381/1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763937_0.png.png imagette223124811745380381/1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763339_0.png.png imagette223124811745380381/1745341991_3423475_1352742657_9b8e24e112fe68184ce904cd98f36f76_rle_crop_3763763337_0.png.png imagette223124811745380381/1745342112_3424377_1352743494_d7169d258e3426a4c9495967a493dcf6_rle_crop_3763763915_0.png.png imagette223124811745380381/1745342112_3424377_1352743214_03939cd4cd26f7e22f10c2dbd927ee62_rle_crop_3763763934_0.png.png imagette223124811745380381/1745341991_3423475_1352743244_dbc85796ac3fa9bca33998ef33b647d9_rle_crop_3763763322_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/bb12994eeb2c3eef771830622d43dd05_25726972.png imagette223124811745380381 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22312446 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22312483,22312484,22312485,22312486,22312487,22312488,22312489,22312490,22312491,22312492,22312493,22312494?tags=metal,papier,cartonnette,flou,Carton_gris,environnement,mal_croppe,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1352743674] : ('0.10432914903297445',) no score found for photo 1352743674 We are sending mail with results at report@fotonower.com args[1352743494] : ('0.10432914903297445',) no score found for photo 1352743494 We are sending mail with results at report@fotonower.com args[1352743467] : ('0.10432914903297445',) no score found for photo 1352743467 We are sending mail with results at report@fotonower.com args[1352743244] : ('0.10432914903297445',) no score found for photo 1352743244 We are sending mail with results at report@fotonower.com args[1352743214] : ('0.10432914903297445',) no score found for photo 1352743214 We are sending mail with results at report@fotonower.com args[1352742695] : ('0.10432914903297445',) no score found for photo 1352742695 We are sending mail with results at report@fotonower.com args[1352742657] : ('0.10432914903297445',) no score found for photo 1352742657 We are sending mail with results at report@fotonower.com args[1352742424] : ('0.10432914903297445',) no score found for photo 1352742424 We are sending mail with results at report@fotonower.com args[1352742019] : ('0.10432914903297445',) no score found for photo 1352742019 We are sending mail with results at report@fotonower.com args[1352741982] : ('0.10432914903297445',) no score found for photo 1352741982 We are sending mail with results at report@fotonower.com args[1352740974] : ('0.10432914903297445',) no score found for photo 1352740974 We are sending mail with results at report@fotonower.com args[1352740938] : ('0.10432914903297445',) no score found for photo 1352740938 We are sending mail with results at report@fotonower.com args[1352739693] : ('0.10432914903297445',) no score found for photo 1352739693 We are sending mail with results at report@fotonower.com refus_total : 0.10432914903297445 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=22312446 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_P22312446_23-04-2025_05_53_00.pdf results_Auto_P22312446_23-04-2025_05_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22312446','results_Auto_P22312446_23-04-2025_05_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf','pdf','','0.2','0.10432914903297445') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22312446]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] map_info['map_portfolio_photo'] : {22312446: [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693]} final : False mtd_id 4302 list_pids : [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] 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, '2751260') ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22312446', '1352743674', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260')] time used for this insertion : 0.013936996459960938 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.797716379165649 time spend to save output : 0.014180421829223633 total time spend for step 4 : 4.811896800994873 step5:split_time_score Wed Apr 23 05:53:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22312446'] 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 : [('22312446',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22312446) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352743674: {'path': 'temp/1745380379_3843376_1352743674_2fa93778aecb7eaa1c15746b4c9d20ea.jpg', 'extension': 'jpg'}, 1352742657: {'path': 'temp/1745380379_3843376_1352742657_9b8e24e112fe68184ce904cd98f36f76.jpg', 'extension': 'jpg'}, 1352742695: {'path': 'temp/1745380379_3843376_1352742695_2fafb8d8d7f852eac39aedcbdb9c53ec.jpg', 'extension': 'jpg'}, 1352743214: {'path': 'temp/1745380379_3843376_1352743214_03939cd4cd26f7e22f10c2dbd927ee62.jpg', 'extension': 'jpg'}, 1352743244: {'path': 'temp/1745380379_3843376_1352743244_dbc85796ac3fa9bca33998ef33b647d9.jpg', 'extension': 'jpg'}, 1352743467: {'path': 'temp/1745380379_3843376_1352743467_7a603d7dcd2ffe45d76d7e70309504e8.jpg', 'extension': 'jpg'}, 1352743494: {'path': 'temp/1745380379_3843376_1352743494_d7169d258e3426a4c9495967a493dcf6.jpg', 'extension': 'jpg'}, 1352739693: {'path': 'temp/1745380379_3843376_1352739693_5fe44c35d89871a03d9ded558283f10e.jpg', 'extension': 'jpg'}, 1352740938: {'path': 'temp/1745380379_3843376_1352740938_2cff1a7826fb156a9524de31eb328613.jpg', 'extension': 'jpg'}, 1352740974: {'path': 'temp/1745380379_3843376_1352740974_79a82e57239a6b3242e8506b2145e5da.jpg', 'extension': 'jpg'}, 1352741982: {'path': 'temp/1745380379_3843376_1352741982_0d44cdc37a4ddb8cd76fec1fc5d414e5.jpg', 'extension': 'jpg'}, 1352742019: {'path': 'temp/1745380379_3843376_1352742019_6262c68694c98f75366c10198f13ed3d.jpg', 'extension': 'jpg'}, 1352742424: {'path': 'temp/1745380379_3843376_1352742424_699b30ee981e238f1df64a73d30a015b.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 = 22312446; (('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 = 22312446 group by h (('19', 13),) 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=22312446 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 (22312446) 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 (22312446) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22042025 22312446 Nombre de photos uploadées : 13 / 23040 (0%) 22042025 22312446 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 22042025 22312446 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1352739693, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/5fe44c35d89871a03d9ded558283f10e.jpg', 'username': None, 'uploaded_at': 1745341328, 'text': 'image_22042025_19_00_14_10135.jpg'}, {'photo_id': 1352740974, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/79a82e57239a6b3242e8506b2145e5da.jpg', 'username': None, 'uploaded_at': 1745341387, 'text': 'image_22042025_19_01_04_10140.jpg'}, {'photo_id': 1352740938, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/2cff1a7826fb156a9524de31eb328613.jpg', 'username': None, 'uploaded_at': 1745341387, 'text': 'image_22042025_19_02_04_010155m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352742019, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/22/6262c68694c98f75366c10198f13ed3d.jpg', 'username': None, 'uploaded_at': 1745341507, 'text': 'image_22042025_19_02_14_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005311965942382812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22312446, '2025-04-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1735821,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024210691452026367 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= 1735821 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22283193, 'dashboard_result_id': 10036073, '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_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22283528, 'dashboard_result_id': 10036074, '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_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22284061, 'dashboard_result_id': 10036075, '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_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22284551, 'dashboard_result_id': 10036076, '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_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285051, 'dashboard_result_id': 10036077, '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_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285528, 'dashboard_result_id': 10036078, '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_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22285832, 'dashboard_result_id': 10036079, '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_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22286020, 'dashboard_result_id': 10036080, '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_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22286721, 'dashboard_result_id': 10036081, '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_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22287212, 'dashboard_result_id': 10036082, '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_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22288002, 'dashboard_result_id': 10036083, '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_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22288420, 'dashboard_result_id': 10036084, '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_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22289161, 'dashboard_result_id': 10036085, '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_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22289960, 'dashboard_result_id': 10036086, '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_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22290784, 'dashboard_result_id': 10036087, '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_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22291519, 'dashboard_result_id': 10036088, '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_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22293115, 'dashboard_result_id': 10036089, '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_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22293696, 'dashboard_result_id': 10036090, '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_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22294121, 'dashboard_result_id': 10036091, '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_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22294892, 'dashboard_result_id': 10036092, '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_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22295521, 'dashboard_result_id': 10036093, '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_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22296368, 'dashboard_result_id': 10036094, '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_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22296833, 'dashboard_result_id': 10036095, '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_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22297501, 'dashboard_result_id': 10036096, '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_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22298134, 'dashboard_result_id': 10036097, '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_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22298962, 'dashboard_result_id': 10036098, '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_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22299585, 'dashboard_result_id': 10036099, '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_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22307186, 'dashboard_result_id': 10036100, '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_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312258, 'dashboard_result_id': 10036101, '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_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312446, 'dashboard_result_id': 10036102, '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_P22312446_22-04-2025_19_16_52.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22312886, 'dashboard_result_id': 10036103, '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_P22312886_22-04-2025_19_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22313109, 'dashboard_result_id': 10036104, '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_P22313109_22-04-2025_19_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22316204, 'dashboard_result_id': 10036105, '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_P22316204_22-04-2025_21_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22318358, 'dashboard_result_id': 10036106, '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_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, 'pht': 3726}}"}, {'dashboat_entry_day': 1735821, 'dashboard_run_id': 1747698, 'mtr_portfolio_id': 22319618, 'dashboard_result_id': 10036107, '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_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, '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 = 22283193 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': 2751231, 'mtr_portfolio_id': 22283193, 'created_at': datetime.datetime(2025, 4, 23, 5, 34, 30), 'result': '0.06962585916446648', 'result_long': None, 'result_double': None}] Qualite : 0.06962585916446648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22283193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22283193 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_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, 'pht': 3726}}" where mtr_portfolio_id = 22283193 and dashboard_run_id = 1747698 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`=22283193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036073, 0.06962585916446648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283193_23-04-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283198, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283206, '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 = 22283528 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': 2751232, 'mtr_portfolio_id': 22283528, 'created_at': datetime.datetime(2025, 4, 23, 5, 35, 30), 'result': '0.03793785543376423', 'result_long': None, 'result_double': None}] Qualite : 0.03793785543376423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22283528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22283528 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_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, 'pht': 3726}}" where mtr_portfolio_id = 22283528 and dashboard_run_id = 1747698 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`=22283528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036074, 0.03793785543376423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22283528_23-04-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22283570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22283571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22283572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22283573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22283574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22283575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22283576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22283577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22283578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22283579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22283580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22283581, '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 = 22284061 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': 2751233, 'mtr_portfolio_id': 22284061, 'created_at': datetime.datetime(2025, 4, 23, 5, 36), 'result': '0.05867734234964999', 'result_long': None, 'result_double': None}] Qualite : 0.05867734234964999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22284061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22284061 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_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, 'pht': 3726}}" where mtr_portfolio_id = 22284061 and dashboard_run_id = 1747698 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`=22284061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036075, 0.05867734234964999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284061_23-04-2025_05_36_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284073, '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 = 22284551 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': 2751234, 'mtr_portfolio_id': 22284551, 'created_at': datetime.datetime(2025, 4, 23, 5, 36, 29), 'result': '0.05282893047066502', 'result_long': None, 'result_double': None}] Qualite : 0.05282893047066502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22284551 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_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, 'pht': 3726}}" where mtr_portfolio_id = 22284551 and dashboard_run_id = 1747698 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`=22284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036076, 0.05282893047066502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22284551_23-04-2025_05_36_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22284553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22284554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22284556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22284557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22284558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22284559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22284560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22284563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22284564, '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 = 22285051 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': 2751235, 'mtr_portfolio_id': 22285051, 'created_at': datetime.datetime(2025, 4, 23, 5, 37), 'result': '0.04822730406897405', 'result_long': None, 'result_double': None}] Qualite : 0.04822730406897405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285051 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_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, 'pht': 3726}}" where mtr_portfolio_id = 22285051 and dashboard_run_id = 1747698 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`=22285051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036077, 0.04822730406897405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285051_23-04-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285063, '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 = 22285528 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': 2751236, 'mtr_portfolio_id': 22285528, 'created_at': datetime.datetime(2025, 4, 23, 5, 37, 29), 'result': '0.046087788564791024', 'result_long': None, 'result_double': None}] Qualite : 0.046087788564791024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285528 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_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, 'pht': 3726}}" where mtr_portfolio_id = 22285528 and dashboard_run_id = 1747698 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`=22285528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036078, 0.046087788564791024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285528_23-04-2025_05_37_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285564, '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 = 22285832 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': 2751237, 'mtr_portfolio_id': 22285832, 'created_at': datetime.datetime(2025, 4, 23, 5, 37, 59), 'result': '0.056055445977496024', 'result_long': None, 'result_double': None}] Qualite : 0.056055445977496024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22285832 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22285832 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_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, 'pht': 3726}}" where mtr_portfolio_id = 22285832 and dashboard_run_id = 1747698 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`=22285832 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036079, 0.056055445977496024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22285832_23-04-2025_05_38_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22285857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22285858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22285859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22285860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22285861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22285862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22285863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22285864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22285865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22285866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22285867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22285868, '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 = 22286020 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': 2751238, 'mtr_portfolio_id': 22286020, 'created_at': datetime.datetime(2025, 4, 23, 5, 39, 59), 'result': '0.062093377337052245', 'result_long': None, 'result_double': None}] Qualite : 0.062093377337052245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22286020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22286020 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_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, 'pht': 3726}}" where mtr_portfolio_id = 22286020 and dashboard_run_id = 1747698 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`=22286020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036080, 0.062093377337052245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286020_23-04-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286048, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286056, '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 = 22286721 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': 2751239, 'mtr_portfolio_id': 22286721, 'created_at': datetime.datetime(2025, 4, 23, 5, 40, 32), 'result': '0.06932375115098806', 'result_long': None, 'result_double': None}] Qualite : 0.06932375115098806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22286721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22286721 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_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, 'pht': 3726}}" where mtr_portfolio_id = 22286721 and dashboard_run_id = 1747698 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`=22286721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036081, 0.06932375115098806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22286721_23-04-2025_05_40_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22286727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22286728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22286729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22286730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22286731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22286732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22286733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22286734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22286735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22286736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22286737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22286738, '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 = 22287212 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': 2751240, 'mtr_portfolio_id': 22287212, 'created_at': datetime.datetime(2025, 4, 23, 5, 40, 40), 'result': '0.036085302809219594', 'result_long': None, 'result_double': None}] Qualite : 0.036085302809219594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22287212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22287212 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_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, 'pht': 3726}}" where mtr_portfolio_id = 22287212 and dashboard_run_id = 1747698 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`=22287212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036082, 0.036085302809219594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22287212_23-04-2025_05_40_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22287250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22287251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22287252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22287253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22287254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22287255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22287256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22287257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22287258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22287259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22287260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22287261, '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 = 22288002 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': 2751241, 'mtr_portfolio_id': 22288002, 'created_at': datetime.datetime(2025, 4, 23, 5, 41), 'result': '0.06437147384994373', 'result_long': None, 'result_double': None}] Qualite : 0.06437147384994373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288002 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_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, 'pht': 3726}}" where mtr_portfolio_id = 22288002 and dashboard_run_id = 1747698 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`=22288002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036083, 0.06437147384994373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288002_23-04-2025_05_41_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22288005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22288006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288016, '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 = 22288420 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': 2751242, 'mtr_portfolio_id': 22288420, 'created_at': datetime.datetime(2025, 4, 23, 5, 41, 29), 'result': '0.04747768583885379', 'result_long': None, 'result_double': None}] Qualite : 0.04747768583885379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22288420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22288420 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_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, 'pht': 3726}}" where mtr_portfolio_id = 22288420 and dashboard_run_id = 1747698 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`=22288420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036084, 0.04747768583885379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22288420_23-04-2025_05_41_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22288451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22288452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22288453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22288454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22288455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22288456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22288457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22288458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22288459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22288460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22288461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22288462, '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 = 22289161 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': 2751243, 'mtr_portfolio_id': 22289161, 'created_at': datetime.datetime(2025, 4, 23, 5, 41, 58), 'result': '0.06031934622027948', 'result_long': None, 'result_double': None}] Qualite : 0.06031934622027948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289161 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_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, 'pht': 3726}}" where mtr_portfolio_id = 22289161 and dashboard_run_id = 1747698 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`=22289161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036085, 0.06031934622027948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289161_23-04-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22289191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22289193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22289197, '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 = 22289960 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': 2751244, 'mtr_portfolio_id': 22289960, 'created_at': datetime.datetime(2025, 4, 23, 5, 42, 30), 'result': '0.0664285835238874', 'result_long': None, 'result_double': None}] Qualite : 0.0664285835238874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22289960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22289960 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_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, 'pht': 3726}}" where mtr_portfolio_id = 22289960 and dashboard_run_id = 1747698 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`=22289960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036086, 0.0664285835238874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22289960_23-04-2025_05_42_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22289990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22289991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22289992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22289993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22289994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22289995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22289996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22289997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22289998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22289999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290001, '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 = 22290784 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': 2751245, 'mtr_portfolio_id': 22290784, 'created_at': datetime.datetime(2025, 4, 23, 5, 42, 59), 'result': '0.07256011865599683', 'result_long': None, 'result_double': None}] Qualite : 0.07256011865599683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22290784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22290784 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_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, 'pht': 3726}}" where mtr_portfolio_id = 22290784 and dashboard_run_id = 1747698 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`=22290784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036087, 0.07256011865599683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22290784_23-04-2025_05_43_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22290806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22290807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22290808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22290809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22290810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22290811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22290812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22290813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22290814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22290815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22290816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22290817, '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 = 22291519 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': 2751246, 'mtr_portfolio_id': 22291519, 'created_at': datetime.datetime(2025, 4, 23, 5, 43, 28), 'result': '0.06857737511311014', 'result_long': None, 'result_double': None}] Qualite : 0.06857737511311014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22291519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22291519 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_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, 'pht': 3726}}" where mtr_portfolio_id = 22291519 and dashboard_run_id = 1747698 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`=22291519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036088, 0.06857737511311014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22291519_23-04-2025_05_43_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22291583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22291584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22291585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22291586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22291587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22291588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22291589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22291590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22291591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22291592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22291593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22291594, '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 = 22293115 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': 2751247, 'mtr_portfolio_id': 22293115, 'created_at': datetime.datetime(2025, 4, 23, 5, 43, 58), 'result': '0.049755792495785454', 'result_long': None, 'result_double': None}] Qualite : 0.049755792495785454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293115 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_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, 'pht': 3726}}" where mtr_portfolio_id = 22293115 and dashboard_run_id = 1747698 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`=22293115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036089, 0.049755792495785454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293115_23-04-2025_05_44_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293131, '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 = 22293696 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': 2751248, 'mtr_portfolio_id': 22293696, 'created_at': datetime.datetime(2025, 4, 23, 5, 44, 30), 'result': '0.052695905350806656', 'result_long': None, 'result_double': None}] Qualite : 0.052695905350806656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22293696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22293696 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_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, 'pht': 3726}}" where mtr_portfolio_id = 22293696 and dashboard_run_id = 1747698 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`=22293696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036090, 0.052695905350806656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22293696_23-04-2025_05_44_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22293718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22293719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22293720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22293721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22293722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22293723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22293724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22293725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22293726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22293727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22293728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22293729, '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 = 22294121 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': 2751249, 'mtr_portfolio_id': 22294121, 'created_at': datetime.datetime(2025, 4, 23, 5, 44, 59), 'result': '0.0619362016745457', 'result_long': None, 'result_double': None}] Qualite : 0.0619362016745457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294121 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_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, 'pht': 3726}}" where mtr_portfolio_id = 22294121 and dashboard_run_id = 1747698 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`=22294121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036091, 0.0619362016745457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294121_23-04-2025_05_45_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294168, '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 = 22294892 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': 2751250, 'mtr_portfolio_id': 22294892, 'created_at': datetime.datetime(2025, 4, 23, 5, 45, 30), 'result': '0.053395757547631026', 'result_long': None, 'result_double': None}] Qualite : 0.053395757547631026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22294892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22294892 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_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, 'pht': 3726}}" where mtr_portfolio_id = 22294892 and dashboard_run_id = 1747698 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`=22294892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036092, 0.053395757547631026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22294892_23-04-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22294959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22294960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22294961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22294962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22294963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22294964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22294965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22294966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22294967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22294968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22294969, '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 = 22295521 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': 2751251, 'mtr_portfolio_id': 22295521, 'created_at': datetime.datetime(2025, 4, 23, 5, 45, 59), 'result': '0.05736137361763881', 'result_long': None, 'result_double': None}] Qualite : 0.05736137361763881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22295521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22295521 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_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, 'pht': 3726}}" where mtr_portfolio_id = 22295521 and dashboard_run_id = 1747698 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`=22295521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036093, 0.05736137361763881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22295521_23-04-2025_05_46_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22295524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22295525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22295526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22295527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22295528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22295529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22295530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22295531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22295532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22295533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22295534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22295535, '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 = 22296368 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': 2751252, 'mtr_portfolio_id': 22296368, 'created_at': datetime.datetime(2025, 4, 23, 5, 48, 58), 'result': '0.05021747237311406', 'result_long': None, 'result_double': None}] Qualite : 0.05021747237311406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296368 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_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, 'pht': 3726}}" where mtr_portfolio_id = 22296368 and dashboard_run_id = 1747698 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`=22296368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036094, 0.05021747237311406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296368_23-04-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296381, '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 = 22296833 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': 2751253, 'mtr_portfolio_id': 22296833, 'created_at': datetime.datetime(2025, 4, 23, 5, 49, 30), 'result': '0.06545087457382659', 'result_long': None, 'result_double': None}] Qualite : 0.06545087457382659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22296833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22296833 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_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, 'pht': 3726}}" where mtr_portfolio_id = 22296833 and dashboard_run_id = 1747698 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`=22296833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036095, 0.06545087457382659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22296833_23-04-2025_05_49_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22296839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22296840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22296841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22296842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22296843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22296844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22296845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22296846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22296847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22296848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22296849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22296850, '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 = 22297501 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': 2751254, 'mtr_portfolio_id': 22297501, 'created_at': datetime.datetime(2025, 4, 23, 5, 50), 'result': '0.0603003139045279', 'result_long': None, 'result_double': None}] Qualite : 0.0603003139045279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22297501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22297501 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_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, 'pht': 3726}}" where mtr_portfolio_id = 22297501 and dashboard_run_id = 1747698 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`=22297501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036096, 0.0603003139045279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22297501_23-04-2025_05_50_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22297551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22297552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22297553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22297554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22297555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22297556, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22297557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22297558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22297559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22297560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22297561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22297562, '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 = 22298134 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': 2751255, 'mtr_portfolio_id': 22298134, 'created_at': datetime.datetime(2025, 4, 23, 5, 51), 'result': '0.04102069891365551', 'result_long': None, 'result_double': None}] Qualite : 0.04102069891365551 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22298134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22298134 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_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, 'pht': 3726}}" where mtr_portfolio_id = 22298134 and dashboard_run_id = 1747698 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`=22298134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036097, 0.04102069891365551, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298134_23-04-2025_05_51_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298162, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298166, '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 = 22298962 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': 2751256, 'mtr_portfolio_id': 22298962, 'created_at': datetime.datetime(2025, 4, 23, 5, 51, 50), 'result': '0.06566814647202765', 'result_long': None, 'result_double': None}] Qualite : 0.06566814647202765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22298962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22298962 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_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, 'pht': 3726}}" where mtr_portfolio_id = 22298962 and dashboard_run_id = 1747698 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`=22298962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036098, 0.06566814647202765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22298962_23-04-2025_05_51_55.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22298968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22298969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22298970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22298971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22298972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22298973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22298974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22298975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22298976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22298977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22298978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22298979, '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 = 22299585 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': 2751257, 'mtr_portfolio_id': 22299585, 'created_at': datetime.datetime(2025, 4, 23, 5, 51, 30), 'result': '0.04878292693378914', 'result_long': None, 'result_double': None}] Qualite : 0.04878292693378914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22299585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22299585 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_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, 'pht': 3726}}" where mtr_portfolio_id = 22299585 and dashboard_run_id = 1747698 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`=22299585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036099, 0.04878292693378914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22299585_23-04-2025_05_51_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22299603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22299604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22299605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22299606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22299607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22299608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22299609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22299610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22299611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22299612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22299613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22299614, '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 = 22307186 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': 2751258, 'mtr_portfolio_id': 22307186, 'created_at': datetime.datetime(2025, 4, 23, 5, 52), 'result': '0.0586795616574983', 'result_long': None, 'result_double': None}] Qualite : 0.0586795616574983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22307186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22307186 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_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, 'pht': 3726}}" where mtr_portfolio_id = 22307186 and dashboard_run_id = 1747698 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`=22307186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036100, 0.0586795616574983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22307186_23-04-2025_05_52_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22307211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22307212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22307213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22307214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22307215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22307216, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22307217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22307218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22307219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22307220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22307221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22307222, '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 = 22312258 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': 2751259, 'mtr_portfolio_id': 22312258, 'created_at': datetime.datetime(2025, 4, 23, 5, 52, 28), 'result': '0.03208411424011029', 'result_long': None, 'result_double': None}] Qualite : 0.03208411424011029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312258 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_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, 'pht': 3726}}" where mtr_portfolio_id = 22312258 and dashboard_run_id = 1747698 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`=22312258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036101, 0.03208411424011029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312258_23-04-2025_05_52_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312271, '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 = 22312446 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': 2751260, 'mtr_portfolio_id': 22312446, 'created_at': datetime.datetime(2025, 4, 23, 5, 52, 59), 'result': '0.10432914903297445', 'result_long': None, 'result_double': None}] Qualite : 0.10432914903297445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312446 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_P22312446_23-04-2025_05_53_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, 'pht': 3726}}" where mtr_portfolio_id = 22312446 and dashboard_run_id = 1747698 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`=22312446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036102, 0.10432914903297445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312446_23-04-2025_05_53_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22312471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312482, '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 = 22312886 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': 2749618, 'mtr_portfolio_id': 22312886, 'created_at': datetime.datetime(2025, 4, 22, 19, 35, 1), 'result': '0.02038512892619011', 'result_long': None, 'result_double': None}] Qualite : 0.02038512892619011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22312886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_22-04-2025_19_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22312886 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_P22312886_22-04-2025_19_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, 'pht': 3726}}" where mtr_portfolio_id = 22312886 and dashboard_run_id = 1747698 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`=22312886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036103, 0.02038512892619011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22312886_22-04-2025_19_35_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22312910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22312911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22312912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22312913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22312914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22312915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22312916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22312917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22312918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22312919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22312920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22312921, '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 = 22313109 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': 2749647, 'mtr_portfolio_id': 22313109, 'created_at': datetime.datetime(2025, 4, 22, 19, 49), 'result': '0.026756689145964945', 'result_long': None, 'result_double': None}] Qualite : 0.026756689145964945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22313109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_22-04-2025_19_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22313109 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_P22313109_22-04-2025_19_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, 'pht': 3726}}" where mtr_portfolio_id = 22313109 and dashboard_run_id = 1747698 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`=22313109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036104, 0.026756689145964945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22313109_22-04-2025_19_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22313110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22313111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22313112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22313113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22313114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22313115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22313116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22313117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22313118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22313119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22313120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22313121, '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 = 22316204 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': 2749965, 'mtr_portfolio_id': 22316204, 'created_at': datetime.datetime(2025, 4, 22, 21, 20, 59), 'result': '0.11615919943277475', 'result_long': None, 'result_double': None}] Qualite : 0.11615919943277475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22316204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_22-04-2025_21_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22316204 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_P22316204_22-04-2025_21_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, 'pht': 3726}}" where mtr_portfolio_id = 22316204 and dashboard_run_id = 1747698 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`=22316204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036105, 0.11615919943277475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22316204_22-04-2025_21_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22316206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22316207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22316208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22316209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22316210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22316211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22316212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22316213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22316214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22316215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22316216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22316217, '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 = 22318358 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': 2750151, 'mtr_portfolio_id': 22318358, 'created_at': datetime.datetime(2025, 4, 22, 22, 16, 59), 'result': '0.014501348190915005', 'result_long': None, 'result_double': None}] Qualite : 0.014501348190915005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22318358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22318358 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_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, 'pht': 3726}}" where mtr_portfolio_id = 22318358 and dashboard_run_id = 1747698 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`=22318358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036106, 0.014501348190915005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22318358_22-04-2025_22_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22318359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22318360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22318361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22318362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22318363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22318364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22318365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22318366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22318367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22318368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22318369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22318370, '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 = 22319618 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': 2750242, 'mtr_portfolio_id': 22319618, 'created_at': datetime.datetime(2025, 4, 22, 22, 41, 1), 'result': '0.007249436232774333', 'result_long': None, 'result_double': None}] Qualite : 0.007249436232774333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22319618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22319618 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_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, 'pht': 3726}}" where mtr_portfolio_id = 22319618 and dashboard_run_id = 1747698 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`=22319618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10036107, 0.007249436232774333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22319618_22-04-2025_22_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22319619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22319620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22319621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22319622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22319623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22319624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22319625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22319626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22319627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22319628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22319629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22319630, '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 (22283193,22283528,22284061,22284551,22285051,22285528,22285832,22286020,22286721,22287212,22288002,22288420,22289161,22289960,22290784,22291519,22293115,22293696,22294121,22294892,22295521,22296368,22296833,22297501,22298134,22298962,22299585,22307186,22312258,22312446,22312886,22313109,22316204,22318358,22319618) result : ((1352518726,), (1352518825,), (1352518827,), (1352518963,), (1352518965,), (1352518966,), (1352518967,), (1352518968,), (1352518970,), (1352518994,), (1352519002,), (1352519012,), (1352519016,), (1352519144,), (1352519165,), (1352519167,), (1352519169,), (1352519189,), (1352519301,), (1352519304,), (1352519306,), (1352519326,), (1352519327,), (1352519333,), (1352519360,), (1352519648,), (1352519651,), (1352519656,), (1352519662,), (1352519665,), (1352519789,), (1352519796,), (1352519798,), (1352519826,), (1352519937,), (1352519912,), (1352519915,), (1352519918,), (1352519924,), (1352519928,), (1352520039,), (1352520151,), (1352520155,), (1352520156,), (1352520157,), (1352520161,), (1352520317,), (1352520320,), (1352520332,), (1352520490,), (1352520492,), (1352520493,), (1352520494,), (1352520495,), (1352520671,), (1352520697,), (1352520723,), (1352520748,), (1352520777,), (1352520804,), (1352521087,), (1352521128,), (1352521155,), (1352521184,), (1352521215,), (1352521244,), (1352521505,), (1352521529,), (1352521559,), (1352521635,), (1352521636,), (1352521637,), (1352521638,), (1352521639,), (1352521748,), (1352521756,), (1352521773,), (1352521782,), (1352521784,), (1352521788,), (1352521816,), (1352521818,), (1352522106,), (1352522141,), (1352522171,), (1352522206,), (1352522382,), (1352522384,), (1352522386,), (1352522388,), (1352522391,), (1352522394,), (1352522423,), (1352522425,), (1352522426,), (1352522475,), (1352522478,), (1352522480,), (1352522482,), (1352522484,), (1352522524,), (1352522553,), (1352522581,), (1352522614,), (1352522642,), (1352523193,), (1352523138,), (1352523836,), (1352523838,), (1352523848,), (1352523861,), (1352524066,), (1352524089,), (1352524133,), (1352524390,), (1352524584,), (1352524597,), (1352524598,), (1352524643,), (1352524644,), (1352524645,), (1352524646,), (1352524649,), (1352524680,), (1352524682,), (1352524684,), (1352524686,), (1352524709,), (1352524711,), (1352524712,), (1352524744,), (1352524745,), (1352524746,), (1352524747,), (1352524749,), (1352524754,), (1352524791,), (1352524793,), (1352524795,), (1352524797,), (1352524944,), (1352524999,), (1352525001,), (1352525003,), (1352525005,), (1352525123,), (1352525138,), (1352525263,), (1352525292,), (1352525306,), (1352525476,), (1352525433,), (1352525472,), (1352525514,), (1352525515,), (1352525516,), (1352525520,), (1352525524,), (1352525529,), (1352525561,), (1352525563,), (1352525639,), (1352525644,), (1352525646,), (1352525674,), (1352525675,), (1352525676,), (1352525677,), (1352525679,), (1352525711,), (1352525712,), (1352525843,), (1352525846,), (1352525849,), (1352525852,), (1352526106,), (1352526130,), (1352526156,), (1352526181,), (1352526384,), (1352526401,), (1352526409,), (1352526414,), (1352526418,), (1352526428,), (1352526455,), (1352526457,), (1352526669,), (1352526692,), (1352527020,), (1352527048,), (1352527054,), (1352527061,), (1352527176,), (1352527149,), (1352528950,), (1352528954,), (1352528956,), (1352528959,), (1352528980,), (1352528982,), (1352528984,), (1352528986,), (1352528988,), (1352529021,), (1352529023,), (1352529025,), (1352529056,), (1352529058,), (1352529060,), (1352529062,), (1352529064,), (1352529067,), (1352529086,), (1352529088,), (1352529090,), (1352529092,), (1352529111,), (1352529113,), (1352529115,), (1352529117,), (1352529120,), (1352529405,), (1352529407,), (1352529431,), (1352529434,), (1352529439,), (1352529442,), (1352529446,), (1352529448,), (1352529489,), (1352529474,), (1352529483,), (1352529486,), (1352529511,), (1352529516,), (1352529518,), (1352529522,), (1352529545,), (1352529549,), (1352529551,), (1352529582,), (1352529585,), (1352529587,), (1352529590,), (1352529612,), (1352529615,), (1352529617,), (1352529619,), (1352529647,), (1352529649,), (1352529651,), (1352529653,), (1352529677,), (1352529680,), (1352529683,), (1352529690,), (1352529696,), (1352529699,), (1352529718,), (1352529722,), (1352529724,), (1352529726,), (1352529730,), (1352529732,), (1352529757,), (1352529759,), (1352529761,), (1352529787,), (1352529790,), (1352529792,), (1352529793,), (1352529798,), (1352529823,), (1352529825,), (1352529828,), (1352529831,), (1352529833,), (1352529851,), (1352529853,), (1352529856,), (1352529858,), (1352529890,), (1352529892,), (1352529894,), (1352529914,), (1352529917,), (1352529919,), (1352529923,), (1352529936,), (1352529943,), (1352529969,), (1352529978,), (1352529981,), (1352529984,), (1352529988,), (1352530031,), (1352530029,), (1352530073,), (1352530080,), (1352530083,), (1352530086,), (1352530091,), (1352530126,), (1352530129,), (1352530131,), (1352530133,), (1352530136,), (1352530140,), (1352530176,), (1352530180,), (1352530183,), (1352530187,), (1352530191,), (1352530216,), (1352530219,), (1352530221,), (1352530223,), (1352530226,), (1352530260,), (1352530268,), (1352530274,), (1352530278,), (1352530283,), (1352530302,), (1352530304,), (1352530307,), (1352530310,), (1352530345,), (1352530348,), (1352530351,), (1352530354,), (1352530358,), (1352530363,), (1352530387,), (1352530389,), (1352530391,), (1352530396,), (1352530428,), (1352530431,), (1352530434,), (1352530437,), (1352530484,), (1352530489,), (1352530491,), (1352530493,), (1352530498,), (1352530503,), (1352530537,), (1352530542,), (1352530545,), (1352530548,), (1352530552,), (1352530579,), (1352530581,), (1352530584,), (1352530613,), (1352530617,), (1352530620,), (1352530624,), (1352530628,), (1352530631,), (1352530657,), (1352530660,), (1352530663,), (1352530665,), (1352530712,), (1352530695,), (1352530698,), (1352530702,), (1352530705,), (1352530709,), (1352530730,), (1352530733,), (1352530735,), (1352530737,), (1352530740,), (1352530769,), (1352530774,), (1352530778,), (1352530781,), (1352530785,), (1352530814,), (1352530817,), (1352530819,), (1352530822,), (1352530826,), (1352530857,), (1352530860,), (1352530866,), (1352530872,), (1352530924,), (1352530926,), (1352530928,), (1352530930,), (1352530933,), (1352530936,), (1352530967,), (1352530969,), (1352530971,), (1352530973,), (1352531014,), (1352531016,), (1352531018,), (1352531020,), (1352531065,), (1352531073,), (1352531082,), (1352531094,), (1352531096,), (1352531099,), (1352531135,), (1352531137,), (1352531139,), (1352531141,), (1352531143,), (1352531186,), (1352531193,), (1352531196,), (1352531199,), (1352531203,), (1352531255,), (1352531257,), (1352531259,), (1352531260,), (1352531322,), (1352531328,), (1352531331,), (1352531335,), (1352531621,), (1352531685,), (1352531742,), (1352531804,), (1352531867,), (1352531924,), (1352532092,), (1352532156,), (1352532210,), (1352532264,), (1352532598,), (1352532494,), (1352532544,), (1352532997,), (1352533005,), (1352533036,), (1352533066,), (1352533094,), (1352533876,), (1352533980,), (1352534081,), (1352534097,), (1352534104,), (1352534129,), (1352534269,), (1352534272,), (1352534286,), (1352534292,), (1352534367,), (1352534371,), (1352534375,), (1352534380,), (1352534387,), (1352534391,), (1352534426,), (1352534434,), (1352534445,), (1352534461,), (1352534842,), (1352534847,), (1352534852,), (1352534856,), (1352534869,), (1352534895,), (1352534959,), (1352534968,), (1352534994,), (1352535139,), (1352535144,), (1352535148,), (1352535206,), (1352535212,), (1352535218,), (1352535225,), (1352535229,), (1352535234,), (1352535295,), (1352535316,), (1352535326,), (1352535336,), (1352535344,), (1352535381,), (1352535535,), (1352535572,), (1352535607,), (1352535839,), (1352535771,), (1352535782,), (1352535788,), (1352535796,), (1352535817,), (1352535945,), (1352535946,), (1352535949,), (1352535952,), (1352535996,), (1352536000,), (1352536005,), (1352536011,), (1352536016,), (1352536020,), (1352536072,), (1352536075,), (1352536078,), (1352536091,), (1352536095,), (1352536205,), (1352536209,), (1352536213,), (1352536216,), (1352536267,), (1352536281,), (1352536300,), (1352536313,), (1352536324,), (1352536351,), (1352536421,), (1352536426,), (1352536431,), (1352536491,), (1352536492,), (1352536493,), (1352536496,), (1352536500,), (1352536505,), (1352536544,), (1352536551,), (1352536554,), (1352536597,), (1352536601,), (1352536603,), (1352536605,), (1352536607,), (1352536671,), (1352536675,), (1352536679,), (1352536682,), (1352536686,), (1352536732,), (1352536745,), (1352536752,), (1352536754,), (1352536768,), (1352536976,), (1352536979,), (1352536982,), (1352536985,), (1352536988,), (1352537026,), (1352537034,), (1352537040,), (1352537043,), (1352537089,), (1352537093,), (1352537099,), (1352537107,), (1352537112,), (1352537158,), (1352537146,), (1352537151,), (1352537155,), (1352537203,), (1352537205,), (1352537207,), (1352537209,), (1352537213,), (1352537217,), (1352537254,), (1352537257,), (1352537261,), (1352537265,), (1352537267,), (1352537272,), (1352537306,), (1352537310,), (1352537314,), (1352537317,), (1352537417,), (1352537429,), (1352537436,), (1352537444,), (1352537447,), (1352537460,), (1352537692,), (1352537694,), (1352537698,), (1352537705,), (1352537767,), (1352537769,), (1352537772,), (1352537775,), (1352537779,), (1352537783,), (1352537849,), (1352537859,), (1352537866,), (1352537870,), (1352537880,), (1352537889,), (1352538050,), (1352538054,), (1352538057,), (1352538060,), (1352538108,), (1352538112,), (1352538116,), (1352538117,), (1352538121,), (1352538125,), (1352538169,), (1352538178,), (1352538194,), (1352538197,), (1352538201,), (1352538269,), (1352538305,), (1352538309,), (1352538314,), (1352538335,), (1352538349,), (1352538505,), (1352538524,), (1352538551,), (1352538603,), (1352538844,), (1352538945,), (1352538949,), (1352538962,), (1352538967,), (1352538973,), (1352539224,), (1352539249,), (1352539251,), (1352539253,), (1352539256,), (1352539334,), (1352539302,), (1352539311,), (1352539321,), (1352539328,), (1352539332,), (1352539586,), (1352539587,), (1352539589,), (1352539591,), (1352539595,), (1352539656,), (1352539658,), (1352539661,), (1352539664,), (1352539804,), (1352539810,), (1352539817,), (1352539820,), (1352539899,), (1352539902,), (1352539920,), (1352539927,), (1352539939,), (1352539945,), (1352540043,), (1352540044,), (1352540045,), (1352540048,), (1352540148,), (1352540150,), (1352540153,), (1352540156,), (1352540159,), (1352540220,), (1352540221,), (1352540222,), (1352540224,), (1352540227,), (1352540266,), (1352540268,), (1352540271,), (1352540274,), (1352540365,), (1352540391,), (1352540405,), (1352540407,), (1352540409,), (1352540412,), (1352540497,), (1352540499,), (1352540502,), (1352540505,), (1352540610,), (1352540617,), (1352540622,), (1352540642,), (1352540662,), (1352540674,), (1352540743,), (1352540751,), (1352540756,), (1352540760,), (1352540766,), (1352540772,), (1352541696,), (1352541727,), (1352541759,), (1352541834,), (1352542058,), (1352541987,), (1352542003,), (1352542025,), (1352542047,), (1352542177,), (1352542206,), (1352542248,), (1352542536,), (1352542564,), (1352542577,), (1352542581,), (1352542587,), (1352542592,), (1352543622,), (1352543651,), (1352543679,), (1352543707,), (1352543734,), (1352544044,), (1352544087,), (1352544773,), (1352544776,), (1352544780,), (1352544784,), (1352544789,), (1352545201,), (1352545301,), (1352545322,), (1352545343,), (1352545347,), (1352545353,), (1352545500,), (1352545504,), (1352545508,), (1352545515,), (1352545675,), (1352545678,), (1352545681,), (1352545684,), (1352545691,), (1352545695,), (1352545725,), (1352545731,), (1352545736,), (1352545742,), (1352545845,), (1352545860,), (1352545866,), (1352545869,), (1352545874,), (1352545877,), (1352546046,), (1352546048,), (1352546051,), (1352546057,), (1352546059,), (1352546065,), (1352546107,), (1352546118,), (1352546132,), (1352546137,), (1352546205,), (1352546209,), (1352546213,), (1352546220,), (1352546230,), (1352546235,), (1352546380,), (1352546398,), (1352546404,), (1352546410,), (1352546418,), (1352546611,), (1352546559,), (1352546581,), (1352546773,), (1352546782,), (1352546787,), (1352546799,), (1352546828,), (1352546916,), (1352546936,), (1352546946,), (1352546951,), (1352546953,), (1352547113,), (1352547116,), (1352547119,), (1352547121,), (1352547303,), (1352547349,), (1352547420,), (1352547436,), (1352547447,), (1352547494,), (1352547563,), (1352547573,), (1352547583,), (1352547595,), (1352547598,), (1352547650,), (1352547652,), (1352547657,), (1352547659,), (1352547664,), (1352547669,), (1352547713,), (1352547728,), (1352547918,), (1352547942,), (1352547944,), (1352547946,), (1352547954,), (1352548094,), (1352548098,), (1352548100,), (1352548103,), (1352548108,), (1352548112,), (1352548180,), (1352548182,), (1352548185,), (1352548188,), (1352548404,), (1352548422,), (1352548432,), (1352548436,), (1352548440,), (1352548549,), (1352548559,), (1352548568,), (1352548579,), (1352548584,), (1352548620,), (1352548628,), (1352548633,), (1352548637,), (1352548645,), (1352548683,), (1352548688,), (1352548694,), (1352548698,), (1352548701,), (1352548781,), (1352548754,), (1352548759,), (1352548857,), (1352549014,), (1352549019,), (1352549078,), (1352549286,), (1352549288,), (1352549311,), (1352549317,), (1352549483,), (1352549520,), (1352549554,), (1352549656,), (1352549660,), (1352549664,), (1352549667,), (1352549673,), (1352549678,), (1352549726,), (1352549729,), (1352549732,), (1352549733,), (1352549782,), (1352549786,), (1352549788,), (1352549800,), (1352549813,), (1352549888,), (1352549891,), (1352549894,), (1352549899,), (1352549905,), (1352549954,), (1352549957,), (1352549959,), (1352549962,), (1352550093,), (1352550222,), (1352550267,), (1352550296,), (1352550324,), (1352550355,), (1352550765,), (1352550822,), (1352550921,), (1352550950,), (1352550977,), (1352551670,), (1352551783,), (1352551845,), (1352551900,), (1352551969,), (1352552035,), (1352552594,), (1352552484,), (1352552526,), (1352552551,), (1352552972,), (1352552978,), (1352552982,), (1352552992,), (1352553024,), (1352553068,), (1352553102,), (1352553122,), (1352553148,), (1352553177,), (1352553205,), (1352553237,), (1352553733,), (1352553758,), (1352553784,), (1352554360,), (1352554398,), (1352554442,), (1352554487,), (1352554513,), (1352554547,), (1352554691,), (1352554765,), (1352554829,), (1352554899,), (1352554973,), (1352555592,), (1352555653,), (1352555683,), (1352555949,), (1352555954,), (1352555958,), (1352555972,), (1352555983,), (1352555987,), (1352556028,), (1352556033,), (1352556036,), (1352556039,), (1352556056,), (1352556303,), (1352556314,), (1352556317,), (1352556365,), (1352556367,), (1352556370,), (1352556373,), (1352556376,), (1352556380,), (1352556408,), (1352556411,), (1352556413,), (1352556414,), (1352556417,), (1352556452,), (1352556454,), (1352556456,), (1352556458,), (1352556574,), (1352556580,), (1352556602,), (1352556635,), (1352556666,), (1352556701,), (1352556879,), (1352562519,), (1352562523,), (1352562579,), (1352562583,), (1352562587,), (1352562590,), (1352562608,), (1352562645,), (1352562659,), (1352562689,), (1352562718,), (1352562744,), (1352562915,), (1352562940,), (1352563089,), (1352563091,), (1352563116,), (1352563143,), (1352563144,), (1352563188,), (1352563193,), (1352563197,), (1352563200,), (1352563214,), (1352563313,), (1352563317,), (1352563405,), (1352563411,), (1352563414,), (1352563419,), (1352563426,), (1352563431,), (1352563530,), (1352563536,), (1352563541,), (1352563544,), (1352563548,), (1352563589,), (1352563593,), (1352563595,), (1352563597,), (1352563667,), (1352563673,), (1352563687,), (1352563690,), (1352563692,), (1352563695,), (1352563741,), (1352563744,), (1352563746,), (1352563941,), (1352564545,), (1352564373,), (1352564514,), (1352564523,), (1352564531,), (1352564622,), (1352564651,), (1352564663,), (1352564687,), (1352564695,), (1352564701,), (1352564742,), (1352564752,), (1352564754,), (1352564784,), (1352564790,), (1352564882,), (1352565105,), (1352565108,), (1352565154,), (1352565155,), (1352565158,), (1352565161,), (1352565164,), (1352565169,), (1352565409,), (1352565412,), (1352565420,), (1352565427,), (1352565471,), (1352565478,), (1352565481,), (1352565483,), (1352565485,), (1352565487,), (1352565492,), (1352565496,), (1352565501,), (1352565507,), (1352565527,), (1352565532,), (1352565538,), (1352565544,), (1352565558,), (1352565562,), (1352565565,), (1352565568,), (1352565571,), (1352565617,), (1352565620,), (1352565622,), (1352565625,), (1352565628,), (1352565633,), (1352565685,), (1352565694,), (1352565701,), (1352565728,), (1352565746,), (1352565759,), (1352565788,), (1352565805,), (1352566034,), (1352565913,), (1352565940,), (1352565971,), (1352566001,), (1352566273,), (1352566306,), (1352566341,), (1352566372,), (1352566378,), (1352566532,), (1352566540,), (1352566553,), (1352566579,), (1352566583,), (1352566596,), (1352567342,), (1352567444,), (1352567503,), (1352568333,), (1352568361,), (1352568390,), (1352568420,), (1352568448,), (1352568887,), (1352569017,), (1352569045,), (1352569074,), (1352569103,), (1352569141,), (1352569387,), (1352569391,), (1352569406,), (1352569421,), (1352569543,), (1352569602,), (1352569658,), (1352569717,), (1352569774,), (1352569830,), (1352570101,), (1352570136,), (1352570150,), (1352570389,), (1352570405,), (1352570411,), (1352570414,), (1352570421,), (1352570530,), (1352570534,), (1352570536,), (1352570538,), (1352570584,), (1352570587,), (1352570590,), (1352570724,), (1352570728,), (1352570732,), (1352570735,), (1352570806,), (1352570817,), (1352570948,), (1352570951,), (1352570955,), (1352570957,), (1352570959,), (1352571254,), (1352571319,), (1352571336,), (1352571341,), (1352571363,), (1352571391,), (1352571521,), (1352571494,), (1352571508,), (1352571520,), (1352571693,), (1352571703,), (1352571718,), (1352571722,), (1352571739,), (1352571936,), (1352571941,), (1352571946,), (1352571950,), (1352572037,), (1352572041,), (1352572044,), (1352572047,), (1352572051,), (1352572061,), (1352572154,), (1352572173,), (1352572182,), (1352572195,), (1352572200,), (1352572204,), (1352572385,), (1352572387,), (1352572390,), (1352572392,), (1352572432,), (1352572437,), (1352572441,), (1352572444,), (1352572449,), (1352572484,), (1352572487,), (1352572490,), (1352572493,), (1352572497,), (1352572501,), (1352572545,), (1352572548,), (1352572553,), (1352572563,), (1352572633,), (1352572638,), (1352572695,), (1352572701,), (1352572734,), (1352572739,), (1352572743,), (1352572746,), (1352572791,), (1352572824,), (1352572958,), (1352572969,), (1352572983,), (1352573101,), (1352573110,), (1352573118,), (1352573120,), (1352573248,), (1352573250,), (1352573252,), (1352573322,), (1352573656,), (1352573663,), (1352573669,), (1352573681,), (1352573688,), (1352573695,), (1352573745,), (1352573730,), (1352573734,), (1352573740,), (1352573812,), (1352573818,), (1352573823,), (1352573847,), (1352573850,), (1352573866,), (1352573979,), (1352573998,), (1352574001,), (1352574004,), (1352574008,), (1352574354,), (1352574437,), (1352574469,), (1352574526,), (1352574532,), (1352574537,), (1352574644,), (1352574655,), (1352574676,), (1352574680,), (1352574707,), (1352574827,), (1352574874,), (1352574886,), (1352574914,), (1352574954,), (1352574967,), (1352574993,), (1352574997,), (1352575001,), (1352575005,), (1352575013,), (1352575065,), (1352575068,), (1352575070,), (1352575072,), (1352575073,), (1352575118,), (1352575123,), (1352575126,), (1352575129,), (1352575133,), (1352575180,), (1352575184,), (1352575193,), (1352575200,), (1352575204,), (1352575298,), (1352575301,), (1352575303,), (1352575306,), (1352575386,), (1352575395,), (1352575402,), (1352575408,), (1352575412,), (1352575595,), (1352575598,), (1352575601,), (1352575604,), (1352575609,), (1352575661,), (1352575669,), (1352575677,), (1352575681,), (1352575691,), (1352575764,), (1352575769,), (1352575774,), (1352575779,), (1352575785,), (1352575791,), (1352575854,), (1352575849,), (1352575851,), (1352576188,), (1352576203,), (1352576215,), (1352576216,), (1352576223,), (1352576459,), (1352576467,), (1352576472,), (1352576481,), (1352576542,), (1352576544,), (1352576546,), (1352576548,), (1352576550,), (1352576554,), (1352576599,), (1352576603,), (1352576607,), (1352576633,), (1352576661,), (1352576758,), (1352576763,), (1352576767,), (1352576770,), (1352576771,), (1352576819,), (1352576821,), (1352576823,), (1352576932,), (1352576985,), (1352577000,), (1352577003,), (1352577007,), (1352577022,), (1352577050,), (1352577806,), (1352577851,), (1352577892,), (1352577928,), (1352578385,), (1352578278,), (1352578282,), (1352578321,), (1352578607,), (1352578626,), (1352578630,), (1352578677,), (1352578679,), (1352578681,), (1352578682,), (1352578684,), (1352578690,), (1352578732,), (1352578734,), (1352578737,), (1352578740,), (1352578783,), (1352578784,), (1352578786,), (1352578788,), (1352578791,), (1352578838,), (1352578845,), (1352578853,), (1352578900,), (1352579003,), (1352579056,), (1352579060,), (1352579063,), (1352579067,), (1352579120,), (1352579122,), (1352579239,), (1352579242,), (1352579249,), (1352579250,), (1352579262,), (1352579357,), (1352579358,), (1352579361,), (1352579363,), (1352579367,), (1352579370,), (1352579447,), (1352579450,), (1352579462,), (1352579511,), (1352579513,), (1352579515,), (1352579517,), (1352579520,), (1352579559,), (1352579564,), (1352579572,), (1352579576,), (1352579586,), (1352579590,), (1352579633,), (1352579637,), (1352579641,), (1352579644,), (1352579739,), (1352579719,), (1352579723,), (1352579727,), (1352579730,), (1352579734,), (1352579899,), (1352579928,), (1352579957,), (1352579971,), (1352580012,), (1352580014,), (1352580019,), (1352580030,), (1352580039,), (1352580045,), (1352580117,), (1352580120,), (1352580124,), (1352580128,), (1352580200,), (1352580205,), (1352580210,), (1352580244,), (1352580248,), (1352580269,), (1352580320,), (1352580323,), (1352580326,), (1352580331,), (1352580374,), (1352580379,), (1352580383,), (1352580388,), (1352580400,), (1352580405,), (1352580443,), (1352580447,), (1352580451,), (1352580496,), (1352580594,), (1352580853,), (1352580917,), (1352580929,), (1352581004,), (1352581033,), (1352581038,), (1352581042,), (1352581048,), (1352581105,), (1352581109,), (1352581113,), (1352581116,), (1352581120,), (1352581159,), (1352581165,), (1352581171,), (1352581257,), (1352581236,), (1352581241,), (1352581246,), (1352581250,), (1352581253,), (1352581282,), (1352581287,), (1352581291,), (1352581302,), (1352581312,), (1352581360,), (1352581364,), (1352581368,), (1352581436,), (1352581451,), (1352581460,), (1352581463,), (1352581586,), (1352581589,), (1352581592,), (1352581596,), (1352581662,), (1352581667,), (1352581674,), (1352581754,), (1352581756,), (1352581760,), (1352581762,), (1352581763,), (1352581768,), (1352581925,), (1352581931,), (1352581935,), (1352581939,), (1352581942,), (1352581977,), (1352581995,), (1352582025,), (1352582055,), (1352582223,), (1352582242,), (1352582246,), (1352582250,), (1352582253,), (1352582306,), (1352582308,), (1352582310,), (1352582312,), (1352582509,), (1352582545,), (1352582589,), (1352582891,), (1352582922,), (1352582939,), (1352582946,), (1352582950,), (1352583258,), (1352583296,), (1352583340,), (1352583356,), (1352583363,), (1352583366,), (1352583484,), (1352583492,), (1352583521,), (1352583527,), (1352583801,), (1352583743,), (1352583782,), (1352583787,), (1352583791,), (1352583793,), (1352584033,), (1352584037,), (1352584038,), (1352584042,), (1352584096,), (1352584100,), (1352584108,), (1352584115,), (1352584118,), (1352584122,), (1352584182,), (1352584183,), (1352584185,), (1352584187,), (1352584190,), (1352584237,), (1352584253,), (1352584259,), (1352584274,), (1352584286,), (1352584289,), (1352584425,), (1352584440,), (1352584491,), (1352584543,), (1352584776,), (1352584779,), (1352584782,), (1352584797,), (1352584830,), (1352584961,), (1352584965,), (1352584968,), (1352584972,), (1352585019,), (1352585027,), (1352585033,), (1352585036,), (1352585039,), (1352585042,), (1352585073,), (1352585078,), (1352585081,), (1352585132,), (1352585135,), (1352585139,), (1352585143,), (1352585147,), (1352585150,), (1352585178,), (1352585180,), (1352585182,), (1352585184,), (1352585187,), (1352585305,), (1352585308,), (1352585356,), (1352585382,), (1352586572,), (1352586632,), (1352586725,), (1352586765,), (1352586798,), (1352586834,), (1352587311,), (1352587253,), (1352587258,), (1352587265,), (1352587286,), (1352587521,), (1352587546,), (1352587576,), (1352587713,), (1352587717,), (1352587720,), (1352587724,), (1352587728,), (1352587741,), (1352587925,), (1352587953,), (1352587981,), (1352588337,), (1352588389,), (1352588418,), (1352588447,), (1352588477,), (1352588507,), (1352588702,), (1352588708,), (1352588712,), (1352588992,), (1352589042,), (1352589384,), (1352589395,), (1352589399,), (1352589402,), (1352589415,), (1352589446,), (1352589532,), (1352589535,), (1352589538,), (1352589544,), (1352589550,), (1352589570,), (1352589666,), (1352612910,), (1352674526,), (1352675007,), (1352675807,), (1352676566,), (1352676604,), (1352676861,), (1352677649,), (1352678360,), (1352735304,), (1352735308,), (1352735311,), (1352736569,), (1352737154,), (1352737167,), (1352737264,), (1352737319,), (1352737322,), (1352738718,), (1352739693,), (1352740938,), (1352740974,), (1352741982,), (1352742019,), (1352742424,), (1352742657,), (1352742695,), (1352743214,), (1352743244,), (1352743467,), (1352743494,), (1352743674,), (1352744341,), (1352744493,), (1352744496,), (1352744499,), (1352744629,), (1352744688,), (1352744696,), (1352745338,), (1352745482,), (1352745485,), (1352745535,), (1352745856,), (1352745858,), (1352745861,), (1352746268,), (1352746290,), (1352746832,), (1352746892,), (1352747933,), (1352782991,), (1352783191,), (1352783216,), (1352783243,), (1352783794,), (1352784759,), (1352784762,), (1352784765,), (1352784792,), (1352785050,), (1352785052,), (1352785055,), (1352787366,), (1352805009,), (1352805066,), (1352805774,), (1352805845,), (1352806950,), (1352806969,), (1352809033,), (1352809078,), (1352809204,), (1352809261,), (1352809342,), (1352809347,), (1352809665,), (1352809948,), (1352810084,), (1352810596,), (1352810592,), (1352811861,), (1352813226,), (1352813263,), (1352814779,), (1352814854,), (1352814856,), (1352820532,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22042025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22312446]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] map_info['map_portfolio_photo'] : {22312446: [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693]} final : True mtd_id 4302 list_pids : [1352743674, 1352743494, 1352743467, 1352743244, 1352743214, 1352742695, 1352742657, 1352742424, 1352742019, 1352741982, 1352740974, 1352740938, 1352739693] Looping around the photos to save general results len do output : 1 /22312446Didn'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, '2751260') ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260') ('4302', None, None, None, None, None, None, None, '2751260') ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22312446', 'None', None, None, None, None, '2751260'), ('4302', '22312446', '1352743674', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743494', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743467', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743244', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352743214', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742695', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742657', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742424', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352742019', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352741982', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740974', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352740938', None, None, None, None, None, '2751260'), ('4302', '22312446', '1352739693', None, None, None, None, None, '2751260')] time used for this insertion : 0.01479792594909668 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.068237543106079 time spend to save output : 0.015069723129272461 total time spend for step 5 : 2.0833072662353516 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 (2751260) 2.37user 2.37system 0:11.68elapsed 40%CPU (0avgtext+0avgdata 158676maxresident)k 952inputs+12608outputs (0major+76175minor)pagefaults 0swaps