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 (2755682) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2755682) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361301 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2755682'] with mtr_portfolio_ids : ['22361301'] and first list_photo_ids : [] new path : /proc/2317728/ Name: python3 Umask: 0002 State: R (running) Tgid: 2317728 Ngid: 0 Pid: 2317728 PPid: 2317727 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2317728 NSpid: 2317728 NSpgid: 2316499 NSsid: 2316499 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100160 kB VmRSS: 100160 kB RssAnon: 59804 kB RssFile: 40356 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 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: 42 nonvoluntary_ctxt_switches: 151 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2317728', 'Ngid': '0', 'Pid': '2317728', 'PPid': '2317727', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2317728', 'NSpid': '2317728', 'NSpgid': '2316499', 'NSsid': '2316499', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100160 kB', 'VmRSS': '100160 kB', 'RssAnon': '59804 kB', 'RssFile': '40356 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 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': '42', 'nonvoluntary_ctxt_switches': '151'} ('datou_batch_current', '2317728', '1106936', '0', '1106936', '865684', '100160', b'', 'marlene', '2755682') 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 (22361301) 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 (2755682 ) ) 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 (22361301) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353177629, 'portfolio_id': 22361301}, {'photo_id': 1353175146, 'portfolio_id': 22361301}, {'photo_id': 1353175039, 'portfolio_id': 22361301}, {'photo_id': 1353174780, 'portfolio_id': 22361301}, {'photo_id': 1353170417, 'portfolio_id': 22361301}, {'photo_id': 1353170380, 'portfolio_id': 22361301}, {'photo_id': 1353169917, 'portfolio_id': 22361301}, {'photo_id': 1353169820, 'portfolio_id': 22361301}] map_portfolio_id_photo_id: {22361301: [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820]} ##### 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.0170438289642334 #### 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 Thu Apr 24 05:55:28 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 (22361301) 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 : 22361301 get user id for portfolio 22361301 get sub ptf for main ptf 22361301, type 3726 and hashtags ['cartonnette', 'Carton_brun', 'metal', 'kraft', 'flou', 'environnement', 'Carton_gris', 'plastique', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'autre_refus'] 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`=22361301 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','metal','kraft','flou','environnement','Carton_gris','plastique','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) 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`=22361301 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','metal','kraft','flou','environnement','Carton_gris','plastique','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22361301, 'sub_port_id': 22361312, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815344, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'metal': {'main_port_id': 22361301, 'sub_port_id': 22361313, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815345, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'flou': {'main_port_id': 22361301, 'sub_port_id': 22361314, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815346, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'plastique': {'main_port_id': 22361301, 'sub_port_id': 22361315, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815347, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'kraft': {'main_port_id': 22361301, 'sub_port_id': 22361316, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815348, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'Carton_gris': {'main_port_id': 22361301, 'sub_port_id': 22361317, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815349, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'Carton_brun': {'main_port_id': 22361301, 'sub_port_id': 22361318, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815350, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'cartonnette': {'main_port_id': 22361301, 'sub_port_id': 22361319, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815351, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'environnement': {'main_port_id': 22361301, 'sub_port_id': 22361320, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815352, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22361301, 'sub_port_id': 22361321, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815353, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'mal_croppe': {'main_port_id': 22361301, 'sub_port_id': 22361322, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815354, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}, 'papier': {'main_port_id': 22361301, 'sub_port_id': 22361323, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815355, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22361312 , 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=22361301 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 (22361312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361313 , 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=22361301 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 (22361313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361314 , 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=22361301 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 (22361314) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361315 , 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=22361301 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 (22361315) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361316 , 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=22361301 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 (22361316) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361317 , 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=22361301 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 (22361317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361318 , 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=22361301 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 (22361318) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361319 , 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=22361301 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 (22361319) result : ((1353170859,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361320 , 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=22361301 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 (22361320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361321 , 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=22361301 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 (22361321) result : ((1353170854,), (1353176494,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361322 , 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=22361301 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 (22361322) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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 22361323 , 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=22361301 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 (22361323) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22361301) result : ((1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,)) 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`=22361301 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','metal','kraft','flou','environnement','Carton_gris','plastique','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) 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`=22361301 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','metal','kraft','flou','environnement','Carton_gris','plastique','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22361301, 'sub_port_id': 22361325, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815356, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'metal': {'main_port_id': 22361301, 'sub_port_id': 22361326, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815357, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'flou': {'main_port_id': 22361301, 'sub_port_id': 22361327, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815358, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'plastique': {'main_port_id': 22361301, 'sub_port_id': 22361328, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815359, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'kraft': {'main_port_id': 22361301, 'sub_port_id': 22361329, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815360, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'Carton_gris': {'main_port_id': 22361301, 'sub_port_id': 22361330, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815361, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'Carton_brun': {'main_port_id': 22361301, 'sub_port_id': 22361331, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815362, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'cartonnette': {'main_port_id': 22361301, 'sub_port_id': 22361332, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815363, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'environnement': {'main_port_id': 22361301, 'sub_port_id': 22361333, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815364, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 22361301, 'sub_port_id': 22361334, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815365, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'mal_croppe': {'main_port_id': 22361301, 'sub_port_id': 22361335, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815366, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}, 'papier': {'main_port_id': 22361301, 'sub_port_id': 22361336, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14815367, 'last_updated_at': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 22, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 22, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22361336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22361323 lien utilise dans velours : https://www.fotonower.com/velours/22361325,22361326,22361327,22361328,22361329,22361330,22361331,22361332,22361333,22361334,22361335,22361336?tags=autre_refus,metal,flou,plastique,kraft,Carton_gris,Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22361301]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] map_info['map_portfolio_photo'] : {22361301: [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820]} final : False mtd_id 4302 list_pids : [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] Looping around the photos to save general results len do output : 1 /22361301. 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, '2755682') ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22361301', "{'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323}", None, None, None, None, '2755682'), ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682')] time used for this insertion : 0.019695758819580078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.405395746231079 time spend to save output : 0.019971132278442383 total time spend for step 1 : 1.4253668785095215 step2:final Thu Apr 24 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22361301) 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 22361301 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353169917,1353169820,1353170417,1353170380,1353175146,1353174780,1353175039,1353177629); 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([22361301]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} new output for save of step final : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] map_info['map_portfolio_photo'] : {22361301: [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820]} final : False mtd_id 4302 list_pids : [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] Looping around the photos to save general results len do output : 8 /1353177629.Didn't retrieve data . /1353175146.Didn't retrieve data . /1353175039.Didn't retrieve data . /1353174780.Didn't retrieve data . /1353170417.Didn't retrieve data . /1353170380.Didn't retrieve data . /1353169917.Didn't retrieve data . /1353169820.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, '2755682') ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22361301', '1353177629', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353175146', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353175039', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353174780', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353170417', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353170380', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353169917', '0.007164409179908233', None, None, None, None, '2755682'), ('4302', '22361301', '1353169820', '0.007164409179908233', None, None, None, None, '2755682')] time used for this insertion : 0.01617884635925293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06753897666931152 time spend to save output : 0.016681909561157227 total time spend for step 2 : 0.08422088623046875 step3:velours_tree Thu Apr 24 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22361301: [{'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323}]} input_args_next_step : {22361301: ()} output_args : {22361301: [{'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323}]} args : 22361301 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 : ({'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22361301) 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([22361301]) 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.28082966804504395 time spend to save output : 3.981590270996094e-05 total time spend for step 3 : 0.2808694839477539 step4:send_mail_cod Thu Apr 24 05:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} input_args_next_step : {1353177629: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353177629 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353175146 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353175039 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353174780 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353170417 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353170380 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353169917 depend.output_id : 0 input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ()} output_args : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',)} args : 1353169820 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 : {22361301: [{'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323}]} input_args_next_step : {1353177629: ('0.007164409179908233',), 1353175146: ('0.007164409179908233',), 1353175039: ('0.007164409179908233',), 1353174780: ('0.007164409179908233',), 1353170417: ('0.007164409179908233',), 1353170380: ('0.007164409179908233',), 1353169917: ('0.007164409179908233',), 1353169820: ('0.007164409179908233',), 22361301: ()} output_args : {22361301: [{'autre_refus': 22361312, 'metal': 22361313, 'flou': 22361314, 'plastique': 22361315, 'kraft': 22361316, 'Carton_gris': 22361317, 'Carton_brun': 22361318, 'cartonnette': 22361319, 'environnement': 22361320, 'Teint_Dans_La_Masse': 22361321, 'mal_croppe': 22361322, 'papier': 22361323}]} args : 22361301 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 :9, first value : ('0.007164409179908233',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22361301) 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 (1353177629,1353175146,1353175039,1353174780,1353170417,1353170380,1353169917,1353169820) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353169820 begin to download photo : 1353170380 begin to download photo : 1353174780 begin to download photo : 1353175146 download finish for photo 1353170380 begin to download photo : 1353170417 download finish for photo 1353174780 begin to download photo : 1353175039 download finish for photo 1353169820 begin to download photo : 1353169917 download finish for photo 1353175146 begin to download photo : 1353177629 download finish for photo 1353170417 download finish for photo 1353175039 download finish for photo 1353169917 download finish for photo 1353177629 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223613121745466930/ imagette223613131745466930/ imagette223613141745466930/ imagette223613151745466930/ imagette223613161745466930/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22361301_24-04-2025_05_55_30.pdf 22361312 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=22361312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613121745466930 22361313 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=22361313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613131745466930 22361314 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=22361314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613141745466930 22361315 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=22361315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613151745466930 22361316 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=22361316 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613161745466930 22361319 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=22361319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353170859: '1745439551_366009_1353169820_c2927091d06f2a6a0dae3ac2d9bfadca_rle_crop_3766262185_0.png'} change filename to text .imagette223613191745466930/ imagette223613191745466930/1745439551_366009_1353169820_c2927091d06f2a6a0dae3ac2d9bfadca_rle_crop_3766262185_0.png.png imagette223613221745466931/ imagette223613171745466931/ imagette223613181745466931/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8f4b6e570a66c869ad4eafb7f3af6374_9537191.png imagette223613191745466930 22361322 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=22361322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613221745466931 22361317 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=22361317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613171745466931 22361318 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=22361318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223613181745466931 22361321 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=22361321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353170854: '1745439551_366009_1353170417_8a21686d3fcf68f50fd001b94ea32896_rle_crop_3766262175_0.png', 1353176494: '1745440273_371866_1353170380_526f66a16f94066798fd4661ebb4227a_rle_crop_3766289734_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1d25474e7ad856108d29e2cbb4cdc312_89755145.png change filename to text .imagette223613211745466931/ imagette223613211745466931/1745439551_366009_1353170417_8a21686d3fcf68f50fd001b94ea32896_rle_crop_3766262175_0.png.png imagette223613211745466931/1745440273_371866_1353170380_526f66a16f94066798fd4661ebb4227a_rle_crop_3766289734_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/44ca0cf611e6fcf12f5d834a021142e3_80587118.png imagette223613211745466931 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22361301 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22361325,22361326,22361327,22361328,22361329,22361330,22361331,22361332,22361333,22361334,22361335,22361336?tags=autre_refus,metal,flou,plastique,kraft,Carton_gris,Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1353177629] : ('0.007164409179908233',) no score found for photo 1353177629 We are sending mail with results at report@fotonower.com args[1353175146] : ('0.007164409179908233',) no score found for photo 1353175146 We are sending mail with results at report@fotonower.com args[1353175039] : ('0.007164409179908233',) no score found for photo 1353175039 We are sending mail with results at report@fotonower.com args[1353174780] : ('0.007164409179908233',) no score found for photo 1353174780 We are sending mail with results at report@fotonower.com args[1353170417] : ('0.007164409179908233',) no score found for photo 1353170417 We are sending mail with results at report@fotonower.com args[1353170380] : ('0.007164409179908233',) no score found for photo 1353170380 We are sending mail with results at report@fotonower.com args[1353169917] : ('0.007164409179908233',) no score found for photo 1353169917 We are sending mail with results at report@fotonower.com args[1353169820] : ('0.007164409179908233',) no score found for photo 1353169820 We are sending mail with results at report@fotonower.com refus_total : 0.007164409179908233 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=22361301 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_P22361301_24-04-2025_05_55_30.pdf results_Auto_P22361301_24-04-2025_05_55_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_24-04-2025_05_55_30.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','22361301','results_Auto_P22361301_24-04-2025_05_55_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_24-04-2025_05_55_30.pdf','pdf','','0.09','0.007164409179908233') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22361301]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] map_info['map_portfolio_photo'] : {22361301: [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820]} final : False mtd_id 4302 list_pids : [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] 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, '2755682') ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '22361301', '1353177629', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682')] time used for this insertion : 0.013587474822998047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7821102142333984 time spend to save output : 0.013765573501586914 total time spend for step 4 : 1.7958757877349854 step5:split_time_score Thu Apr 24 05:55:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22361301'] 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 : [('22361301',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22361301) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353170380: {'path': 'temp/1745466930_2317728_1353170380_526f66a16f94066798fd4661ebb4227a.jpg', 'extension': 'jpg'}, 1353170417: {'path': 'temp/1745466930_2317728_1353170417_8a21686d3fcf68f50fd001b94ea32896.jpg', 'extension': 'jpg'}, 1353174780: {'path': 'temp/1745466930_2317728_1353174780_e1a6a8de2a7d6595b72e344471f17360.jpg', 'extension': 'jpg'}, 1353175039: {'path': 'temp/1745466930_2317728_1353175039_43efaf1aee0f167c2b7dbe566c8804ad.jpg', 'extension': 'jpg'}, 1353169820: {'path': 'temp/1745466930_2317728_1353169820_c2927091d06f2a6a0dae3ac2d9bfadca.jpg', 'extension': 'jpg'}, 1353169917: {'path': 'temp/1745466930_2317728_1353169917_e26b617373a3016b5aa7121b8a6e23ce.jpg', 'extension': 'jpg'}, 1353175146: {'path': 'temp/1745466930_2317728_1353175146_1bbd28c53f597c1cd078ba82e4079a88.jpg', 'extension': 'jpg'}, 1353177629: {'path': 'temp/1745466930_2317728_1353177629_21617a5b9f5588b34329d755538028d0.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 = 22361301; (('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 = 22361301 group by h (('22', 8),) 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=22361301 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 (22361301) 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 (22361301) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22361301 Nombre de photos uploadées : 8 / 23040 (0%) 23042025 22361301 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 23042025 22361301 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1353169917, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e26b617373a3016b5aa7121b8a6e23ce.jpg', 'username': None, 'uploaded_at': 1745439433, 'text': 'image_23042025_22_15_25_10134.jpg'}, {'photo_id': 1353169820, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c2927091d06f2a6a0dae3ac2d9bfadca.jpg', 'username': None, 'uploaded_at': 1745439433, 'text': 'image_23042025_22_16_04_010136m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353170417, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8a21686d3fcf68f50fd001b94ea32896.jpg', 'username': None, 'uploaded_at': 1745439487, 'text': 'image_23042025_22_16_35_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353170380, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/526f66a16f94066798fd4661ebb4227a.jpg', 'username': None, 'uploaded_at': 1745439487, 'text': 'image_23042025_22_17_34_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.0005638599395751953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22361301, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024187803268432617 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325236, 'dashboard_result_id': 10061651, '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_P22325236_24-04-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325613, 'dashboard_result_id': 10061652, '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_P22325613_24-04-2025_05_35_51.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22325942, 'dashboard_result_id': 10061653, '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_P22325942_24-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10061654, '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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22326686, 'dashboard_result_id': 10061655, '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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10061656, '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_P22327416_24-04-2025_05_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10061657, '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_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22328173, 'dashboard_result_id': 10061658, '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_P22328173_24-04-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22328867, 'dashboard_result_id': 10061659, '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_P22328867_24-04-2025_05_38_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22329762, 'dashboard_result_id': 10061660, '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_P22329762_24-04-2025_05_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22330414, 'dashboard_result_id': 10061661, '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_P22330414_24-04-2025_05_39_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22331203, 'dashboard_result_id': 10061662, '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_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22331661, 'dashboard_result_id': 10061663, '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_P22331661_24-04-2025_05_40_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22332458, 'dashboard_result_id': 10061664, '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_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22333179, 'dashboard_result_id': 10061665, '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_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22334033, 'dashboard_result_id': 10061666, '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_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22336354, 'dashboard_result_id': 10061667, '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_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22337144, 'dashboard_result_id': 10061668, '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_P22337144_24-04-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22337891, 'dashboard_result_id': 10061669, '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_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22338640, 'dashboard_result_id': 10061670, '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_P22338640_24-04-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22339201, 'dashboard_result_id': 10061671, '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_P22339201_24-04-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22339852, 'dashboard_result_id': 10061672, '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_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22340451, 'dashboard_result_id': 10061673, '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_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22341308, 'dashboard_result_id': 10061674, '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_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22341945, 'dashboard_result_id': 10061675, '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_P22341945_24-04-2025_05_46_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22342537, 'dashboard_result_id': 10061676, '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_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22342994, 'dashboard_result_id': 10061677, '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_P22342994_24-04-2025_05_47_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22348035, 'dashboard_result_id': 10061678, '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_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22348525, 'dashboard_result_id': 10061679, '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_P22348525_24-04-2025_05_48_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22349010, 'dashboard_result_id': 10061680, '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_P22349010_24-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22349913, 'dashboard_result_id': 10061681, '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_P22349913_24-04-2025_05_49_51.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22350703, 'dashboard_result_id': 10061682, '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_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22351746, 'dashboard_result_id': 10061683, '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_P22351746_24-04-2025_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22353065, 'dashboard_result_id': 10061684, '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_P22353065_24-04-2025_05_50_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22353503, 'dashboard_result_id': 10061685, '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_P22353503_24-04-2025_05_51_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22354290, 'dashboard_result_id': 10061686, '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_P22354290_24-04-2025_05_51_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22354450, 'dashboard_result_id': 10061687, '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_P22354450_24-04-2025_05_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22355072, 'dashboard_result_id': 10061688, '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_P22355072_24-04-2025_05_52_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22355885, 'dashboard_result_id': 10061689, '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_P22355885_24-04-2025_05_53_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22356488, 'dashboard_result_id': 10061690, '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_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22359573, 'dashboard_result_id': 10061691, '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_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22360340, 'dashboard_result_id': 10061692, '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_P22360340_24-04-2025_05_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22361301, 'dashboard_result_id': 10061693, '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_P22361301_23-04-2025_22_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1751574, 'mtr_portfolio_id': 22361872, 'dashboard_result_id': 10061694, '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_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, '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 = 22325236 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': 2755640, 'mtr_portfolio_id': 22325236, 'created_at': datetime.datetime(2025, 4, 24, 5, 34, 30), 'result': '0.0709678645705838', 'result_long': None, 'result_double': None}] Qualite : 0.0709678645705838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325236 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_P22325236_24-04-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, 'pht': 3726}}" where mtr_portfolio_id = 22325236 and dashboard_run_id = 1751574 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`=22325236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061651, 0.0709678645705838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325236_24-04-2025_05_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325290, '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 = 22325613 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': 2755641, 'mtr_portfolio_id': 22325613, 'created_at': datetime.datetime(2025, 4, 24, 5, 35, 43), 'result': '0.06816697475174313', 'result_long': None, 'result_double': None}] Qualite : 0.06816697475174313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325613 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_24-04-2025_05_35_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325613 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_P22325613_24-04-2025_05_35_51.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, 'pht': 3726}}" where mtr_portfolio_id = 22325613 and dashboard_run_id = 1751574 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`=22325613 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061652, 0.06816697475174313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325613_24-04-2025_05_35_51.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325648, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325649, '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 = 22325942 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': 2755642, 'mtr_portfolio_id': 22325942, 'created_at': datetime.datetime(2025, 4, 24, 5, 35, 30), 'result': '0.06426718410837302', 'result_long': None, 'result_double': None}] Qualite : 0.06426718410837302 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22325942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_24-04-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22325942 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_P22325942_24-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, 'pht': 3726}}" where mtr_portfolio_id = 22325942 and dashboard_run_id = 1751574 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`=22325942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061653, 0.06426718410837302, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22325942_24-04-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22325968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22325969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22325970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22325971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22325972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22325973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22325974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22325975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22325976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22325977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22325978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22325979, '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 = 22326303 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': 2755643, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 24, 5, 35, 59), 'result': '0.07202689995790366', 'result_long': None, 'result_double': None}] Qualite : 0.07202689995790366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1751574 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`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061654, 0.07202689995790366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 = 22326686 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': 2755644, 'mtr_portfolio_id': 22326686, 'created_at': datetime.datetime(2025, 4, 24, 5, 36, 30), 'result': '0.07747003299738274', 'result_long': None, 'result_double': None}] Qualite : 0.07747003299738274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326686 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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}" where mtr_portfolio_id = 22326686 and dashboard_run_id = 1751574 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`=22326686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061655, 0.07747003299738274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, '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 = 22327416 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': 2755645, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 24, 5, 36, 59), 'result': '0.07270414093374927', 'result_long': None, 'result_double': None}] Qualite : 0.07270414093374927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_24-04-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 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_P22327416_24-04-2025_05_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1751574 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`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061656, 0.07270414093374927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_24-04-2025_05_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, '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 = 22327827 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': 2755646, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 24, 5, 37, 28), 'result': '0.06542002895712527', 'result_long': None, 'result_double': None}] Qualite : 0.06542002895712527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 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_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1751574 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`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061657, 0.06542002895712527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 = 22328173 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': 2755647, 'mtr_portfolio_id': 22328173, 'created_at': datetime.datetime(2025, 4, 24, 5, 37, 58), 'result': '0.07184327665793007', 'result_long': None, 'result_double': None}] Qualite : 0.07184327665793007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_24-04-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328173 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_P22328173_24-04-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}" where mtr_portfolio_id = 22328173 and dashboard_run_id = 1751574 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`=22328173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061658, 0.07184327665793007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_24-04-2025_05_38_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, '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 = 22328867 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': 2755648, 'mtr_portfolio_id': 22328867, 'created_at': datetime.datetime(2025, 4, 24, 5, 38, 28), 'result': '0.07756928987117506', 'result_long': None, 'result_double': None}] Qualite : 0.07756928987117506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_24-04-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328867 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_P22328867_24-04-2025_05_38_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, 'pht': 3726}}" where mtr_portfolio_id = 22328867 and dashboard_run_id = 1751574 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`=22328867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061659, 0.07756928987117506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_24-04-2025_05_38_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, '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 = 22329762 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': 2755649, 'mtr_portfolio_id': 22329762, 'created_at': datetime.datetime(2025, 4, 24, 5, 38, 59), 'result': '0.06667727082428926', 'result_long': None, 'result_double': None}] Qualite : 0.06667727082428926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22329762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_24-04-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22329762 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_P22329762_24-04-2025_05_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, 'pht': 3726}}" where mtr_portfolio_id = 22329762 and dashboard_run_id = 1751574 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`=22329762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061660, 0.06667727082428926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22329762_24-04-2025_05_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22329793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22329795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22329796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22329797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22329799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22329800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22329801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22329803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22329804, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22329805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22329807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22329808, '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 = 22330414 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': 2755650, 'mtr_portfolio_id': 22330414, 'created_at': datetime.datetime(2025, 4, 24, 5, 39, 30), 'result': '0.05889621743627731', 'result_long': None, 'result_double': None}] Qualite : 0.05889621743627731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22330414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_24-04-2025_05_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22330414 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_P22330414_24-04-2025_05_39_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, 'pht': 3726}}" where mtr_portfolio_id = 22330414 and dashboard_run_id = 1751574 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`=22330414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061661, 0.05889621743627731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22330414_24-04-2025_05_39_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22330454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22330455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22330456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22330457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22330458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22330459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22330460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22330461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22330462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22330463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22330464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22330465, '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 = 22331203 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': 2755651, 'mtr_portfolio_id': 22331203, 'created_at': datetime.datetime(2025, 4, 24, 5, 39, 59), 'result': '0.047008163972807764', 'result_long': None, 'result_double': None}] Qualite : 0.047008163972807764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331203 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_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}" where mtr_portfolio_id = 22331203 and dashboard_run_id = 1751574 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`=22331203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061662, 0.047008163972807764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, '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 = 22331661 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': 2755652, 'mtr_portfolio_id': 22331661, 'created_at': datetime.datetime(2025, 4, 24, 5, 40, 29), 'result': '0.06271778580744353', 'result_long': None, 'result_double': None}] Qualite : 0.06271778580744353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_24-04-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331661 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_P22331661_24-04-2025_05_40_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}" where mtr_portfolio_id = 22331661 and dashboard_run_id = 1751574 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`=22331661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061663, 0.06271778580744353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_24-04-2025_05_40_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, '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 = 22332458 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': 2755653, 'mtr_portfolio_id': 22332458, 'created_at': datetime.datetime(2025, 4, 24, 5, 40, 39), 'result': '0.07737588999273574', 'result_long': None, 'result_double': None}] Qualite : 0.07737588999273574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22332458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22332458 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_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}" where mtr_portfolio_id = 22332458 and dashboard_run_id = 1751574 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`=22332458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061664, 0.07737588999273574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, '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 = 22333179 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': 2755654, 'mtr_portfolio_id': 22333179, 'created_at': datetime.datetime(2025, 4, 24, 5, 41, 29), 'result': '0.06473586470240834', 'result_long': None, 'result_double': None}] Qualite : 0.06473586470240834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22333179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22333179 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_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}" where mtr_portfolio_id = 22333179 and dashboard_run_id = 1751574 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`=22333179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061665, 0.06473586470240834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, '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 = 22334033 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': 2755655, 'mtr_portfolio_id': 22334033, 'created_at': datetime.datetime(2025, 4, 24, 5, 41, 59), 'result': '0.0670896229761959', 'result_long': None, 'result_double': None}] Qualite : 0.0670896229761959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22334033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22334033 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_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, 'pht': 3726}}" where mtr_portfolio_id = 22334033 and dashboard_run_id = 1751574 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`=22334033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061666, 0.0670896229761959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22334033_23-04-2025_09_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22334067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22334068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22334069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22334070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22334071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22334072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22334073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22334074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22334075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22334076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22334077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22334078, '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 = 22336354 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': 2755656, 'mtr_portfolio_id': 22336354, 'created_at': datetime.datetime(2025, 4, 24, 5, 42, 30), 'result': '0.07401230097652642', 'result_long': None, 'result_double': None}] Qualite : 0.07401230097652642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22336354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22336354 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_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, 'pht': 3726}}" where mtr_portfolio_id = 22336354 and dashboard_run_id = 1751574 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`=22336354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061667, 0.07401230097652642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22336354_23-04-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22336364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22336365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22336366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22336367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22336368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22336369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22336370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22336371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22336372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22336373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22336374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22336375, '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 = 22337144 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': 2755657, 'mtr_portfolio_id': 22337144, 'created_at': datetime.datetime(2025, 4, 24, 5, 43), 'result': '0.06106169995627812', 'result_long': None, 'result_double': None}] Qualite : 0.06106169995627812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_24-04-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337144 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_P22337144_24-04-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, 'pht': 3726}}" where mtr_portfolio_id = 22337144 and dashboard_run_id = 1751574 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`=22337144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061668, 0.06106169995627812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337144_24-04-2025_05_43_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337180, '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 = 22337891 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': 2755658, 'mtr_portfolio_id': 22337891, 'created_at': datetime.datetime(2025, 4, 24, 5, 43, 26), 'result': '0.06523312212783056', 'result_long': None, 'result_double': None}] Qualite : 0.06523312212783056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22337891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22337891 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_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, 'pht': 3726}}" where mtr_portfolio_id = 22337891 and dashboard_run_id = 1751574 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`=22337891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061669, 0.06523312212783056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22337891_23-04-2025_10_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22337892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22337893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22337894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22337895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22337896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22337897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22337898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22337899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22337900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22337901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22337902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22337903, '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 = 22338640 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': 2755659, 'mtr_portfolio_id': 22338640, 'created_at': datetime.datetime(2025, 4, 24, 5, 43, 59), 'result': '0.09489229588935022', 'result_long': None, 'result_double': None}] Qualite : 0.09489229588935022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22338640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_24-04-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22338640 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_P22338640_24-04-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, 'pht': 3726}}" where mtr_portfolio_id = 22338640 and dashboard_run_id = 1751574 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`=22338640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061670, 0.09489229588935022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22338640_24-04-2025_05_44_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22338657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22338658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22338659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22338660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22338661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22338662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22338663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22338664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22338665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22338666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22338667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22338668, '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 = 22339201 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': 2755660, 'mtr_portfolio_id': 22339201, 'created_at': datetime.datetime(2025, 4, 24, 5, 44, 29), 'result': '0.0709938620645815', 'result_long': None, 'result_double': None}] Qualite : 0.0709938620645815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_24-04-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339201 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_P22339201_24-04-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, 'pht': 3726}}" where mtr_portfolio_id = 22339201 and dashboard_run_id = 1751574 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`=22339201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061671, 0.0709938620645815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339201_24-04-2025_05_44_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339240, '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 = 22339852 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': 2755661, 'mtr_portfolio_id': 22339852, 'created_at': datetime.datetime(2025, 4, 24, 5, 44, 57), 'result': '0.0451445984552862', 'result_long': None, 'result_double': None}] Qualite : 0.0451445984552862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22339852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22339852 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_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, 'pht': 3726}}" where mtr_portfolio_id = 22339852 and dashboard_run_id = 1751574 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`=22339852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061672, 0.0451445984552862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22339852_23-04-2025_11_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22339882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22339883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22339884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22339885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22339886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22339887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22339888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22339889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22339890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22339891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22339892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22339893, '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 = 22340451 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': 2755662, 'mtr_portfolio_id': 22340451, 'created_at': datetime.datetime(2025, 4, 24, 5, 45, 30), 'result': '0.058723744715067375', 'result_long': None, 'result_double': None}] Qualite : 0.058723744715067375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22340451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22340451 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_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, 'pht': 3726}}" where mtr_portfolio_id = 22340451 and dashboard_run_id = 1751574 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`=22340451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061673, 0.058723744715067375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22340451_23-04-2025_11_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22340476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22340477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22340478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22340479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22340480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22340481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22340482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22340483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22340484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22340485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22340486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22340487, '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 = 22341308 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': 2755663, 'mtr_portfolio_id': 22341308, 'created_at': datetime.datetime(2025, 4, 24, 5, 45, 41), 'result': '0.053102084348212', 'result_long': None, 'result_double': None}] Qualite : 0.053102084348212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341308 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_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, 'pht': 3726}}" where mtr_portfolio_id = 22341308 and dashboard_run_id = 1751574 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`=22341308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061674, 0.053102084348212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341308_23-04-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341358, '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 = 22341945 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': 2755664, 'mtr_portfolio_id': 22341945, 'created_at': datetime.datetime(2025, 4, 24, 5, 46), 'result': '0.058565835907941836', 'result_long': None, 'result_double': None}] Qualite : 0.058565835907941836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22341945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_24-04-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22341945 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_P22341945_24-04-2025_05_46_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, 'pht': 3726}}" where mtr_portfolio_id = 22341945 and dashboard_run_id = 1751574 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`=22341945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061675, 0.058565835907941836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22341945_24-04-2025_05_46_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22341974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22341975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22341976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22341977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22341978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22341979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22341980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22341981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22341982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22341983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22341984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22341985, '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 = 22342537 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': 2755665, 'mtr_portfolio_id': 22342537, 'created_at': datetime.datetime(2025, 4, 24, 5, 46, 29), 'result': '0.07277743075725984', 'result_long': None, 'result_double': None}] Qualite : 0.07277743075725984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342537 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_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, 'pht': 3726}}" where mtr_portfolio_id = 22342537 and dashboard_run_id = 1751574 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`=22342537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061676, 0.07277743075725984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342537_23-04-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22342566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22342567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22342568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22342569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22342570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22342571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22342572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22342573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22342575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22342576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22342577, '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 = 22342994 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': 2755666, 'mtr_portfolio_id': 22342994, 'created_at': datetime.datetime(2025, 4, 24, 5, 47, 29), 'result': '0.06286442424648833', 'result_long': None, 'result_double': None}] Qualite : 0.06286442424648833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22342994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22342994 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_P22342994_24-04-2025_05_47_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, 'pht': 3726}}" where mtr_portfolio_id = 22342994 and dashboard_run_id = 1751574 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`=22342994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061677, 0.06286442424648833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22342994_24-04-2025_05_47_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22342999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22343000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22343001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22343002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22343003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22343004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22343005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22343006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22343007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22343008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22343009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22343010, '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 = 22348035 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': 2755667, 'mtr_portfolio_id': 22348035, 'created_at': datetime.datetime(2025, 4, 24, 5, 47, 58), 'result': '0.07614599521172793', 'result_long': None, 'result_double': None}] Qualite : 0.07614599521172793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348035 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_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, 'pht': 3726}}" where mtr_portfolio_id = 22348035 and dashboard_run_id = 1751574 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`=22348035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061678, 0.07614599521172793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348035_23-04-2025_16_21_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22348072, '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 = 22348525 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': 2755668, 'mtr_portfolio_id': 22348525, 'created_at': datetime.datetime(2025, 4, 24, 5, 48, 30), 'result': '0.061333588161409415', 'result_long': None, 'result_double': None}] Qualite : 0.061333588161409415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22348525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_24-04-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22348525 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_P22348525_24-04-2025_05_48_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, 'pht': 3726}}" where mtr_portfolio_id = 22348525 and dashboard_run_id = 1751574 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`=22348525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061679, 0.061333588161409415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22348525_24-04-2025_05_48_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22348529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22348530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22348531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22348532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22348533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22348534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22348535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22348536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22348537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22348538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22348539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22348540, '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 = 22349010 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': 2755669, 'mtr_portfolio_id': 22349010, 'created_at': datetime.datetime(2025, 4, 24, 5, 49, 27), 'result': '0.05992217641548774', 'result_long': None, 'result_double': None}] Qualite : 0.05992217641548774 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_24-04-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349010 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_P22349010_24-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, 'pht': 3726}}" where mtr_portfolio_id = 22349010 and dashboard_run_id = 1751574 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`=22349010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061680, 0.05992217641548774, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349010_24-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22349016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349020, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349023, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349027, '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 = 22349913 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': 2755670, 'mtr_portfolio_id': 22349913, 'created_at': datetime.datetime(2025, 4, 24, 5, 49, 49), 'result': '0.07692685407978801', 'result_long': None, 'result_double': None}] Qualite : 0.07692685407978801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22349913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_24-04-2025_05_49_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22349913 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_P22349913_24-04-2025_05_49_51.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, 'pht': 3726}}" where mtr_portfolio_id = 22349913 and dashboard_run_id = 1751574 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`=22349913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061681, 0.07692685407978801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22349913_24-04-2025_05_49_51.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22349917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22349918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22349919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22349920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22349921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22349922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22349923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22349924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22349925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22349926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22349927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22349928, '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 = 22350703 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': 2755671, 'mtr_portfolio_id': 22350703, 'created_at': datetime.datetime(2025, 4, 24, 5, 49, 57), 'result': '0.04874709293127455', 'result_long': None, 'result_double': None}] Qualite : 0.04874709293127455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22350703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22350703 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_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, 'pht': 3726}}" where mtr_portfolio_id = 22350703 and dashboard_run_id = 1751574 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`=22350703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061682, 0.04874709293127455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22350703_23-04-2025_17_17_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22350717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22350718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22350719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22350720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22350721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22350722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22350723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22350724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22350725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22350726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22350727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22350728, '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 = 22351746 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': 2755672, 'mtr_portfolio_id': 22351746, 'created_at': datetime.datetime(2025, 4, 24, 5, 50, 31), 'result': '0.04439026568378134', 'result_long': None, 'result_double': None}] Qualite : 0.04439026568378134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22351746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_24-04-2025_05_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22351746 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_P22351746_24-04-2025_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, 'pht': 3726}}" where mtr_portfolio_id = 22351746 and dashboard_run_id = 1751574 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`=22351746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061683, 0.04439026568378134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22351746_24-04-2025_05_50_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22351749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22351750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22351751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22351752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22351753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22351754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22351755, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22351756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22351757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22351758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22351759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22351760, '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 = 22353065 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': 2755673, 'mtr_portfolio_id': 22353065, 'created_at': datetime.datetime(2025, 4, 24, 5, 50, 39), 'result': '0.05128758497679995', 'result_long': None, 'result_double': None}] Qualite : 0.05128758497679995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_24-04-2025_05_50_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353065 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_P22353065_24-04-2025_05_50_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, 'pht': 3726}}" where mtr_portfolio_id = 22353065 and dashboard_run_id = 1751574 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`=22353065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061684, 0.05128758497679995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353065_24-04-2025_05_50_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353099, '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 = 22353503 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': 2755674, 'mtr_portfolio_id': 22353503, 'created_at': datetime.datetime(2025, 4, 24, 5, 51), 'result': '0.05420691213183513', 'result_long': None, 'result_double': None}] Qualite : 0.05420691213183513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22353503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_24-04-2025_05_51_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22353503 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_P22353503_24-04-2025_05_51_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, 'pht': 3726}}" where mtr_portfolio_id = 22353503 and dashboard_run_id = 1751574 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`=22353503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061685, 0.05420691213183513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22353503_24-04-2025_05_51_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22353529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22353530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22353531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22353532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22353533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22353534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22353535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22353536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22353537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22353538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22353539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22353540, '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 = 22354290 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': 2755675, 'mtr_portfolio_id': 22354290, 'created_at': datetime.datetime(2025, 4, 24, 5, 51, 30), 'result': '0.06629720588488802', 'result_long': None, 'result_double': None}] Qualite : 0.06629720588488802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_24-04-2025_05_51_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354290 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_P22354290_24-04-2025_05_51_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, 'pht': 3726}}" where mtr_portfolio_id = 22354290 and dashboard_run_id = 1751574 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`=22354290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061686, 0.06629720588488802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354290_24-04-2025_05_51_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354319, '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 = 22354450 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': 2755676, 'mtr_portfolio_id': 22354450, 'created_at': datetime.datetime(2025, 4, 24, 5, 51, 59), 'result': '0.06878126708066937', 'result_long': None, 'result_double': None}] Qualite : 0.06878126708066937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22354450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_24-04-2025_05_52_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22354450 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_P22354450_24-04-2025_05_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, 'pht': 3726}}" where mtr_portfolio_id = 22354450 and dashboard_run_id = 1751574 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`=22354450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061687, 0.06878126708066937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22354450_24-04-2025_05_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22354455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22354456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22354457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22354458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22354459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22354460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22354461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22354462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22354463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22354464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22354465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22354466, '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 = 22355072 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': 2755677, 'mtr_portfolio_id': 22355072, 'created_at': datetime.datetime(2025, 4, 24, 5, 52, 28), 'result': '0.07029585168927778', 'result_long': None, 'result_double': None}] Qualite : 0.07029585168927778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_24-04-2025_05_52_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355072 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_P22355072_24-04-2025_05_52_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, 'pht': 3726}}" where mtr_portfolio_id = 22355072 and dashboard_run_id = 1751574 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`=22355072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061688, 0.07029585168927778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355072_24-04-2025_05_52_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22355092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355097, '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 = 22355885 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': 2755678, 'mtr_portfolio_id': 22355885, 'created_at': datetime.datetime(2025, 4, 24, 5, 53, 29), 'result': '0.07045902909238953', 'result_long': None, 'result_double': None}] Qualite : 0.07045902909238953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22355885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_24-04-2025_05_53_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22355885 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_P22355885_24-04-2025_05_53_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, 'pht': 3726}}" where mtr_portfolio_id = 22355885 and dashboard_run_id = 1751574 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`=22355885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061689, 0.07045902909238953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22355885_24-04-2025_05_53_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22355892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22355893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22355894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22355895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22355896, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22355897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22355898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22355899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22355900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22355901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22355902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22355903, '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 = 22356488 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': 2755679, 'mtr_portfolio_id': 22356488, 'created_at': datetime.datetime(2025, 4, 24, 5, 53, 57), 'result': '0.09063394106709378', 'result_long': None, 'result_double': None}] Qualite : 0.09063394106709378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22356488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22356488 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_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, 'pht': 3726}}" where mtr_portfolio_id = 22356488 and dashboard_run_id = 1751574 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`=22356488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061690, 0.09063394106709378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22356488_24-04-2025_00_06_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22356504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22356505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22356506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22356507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22356508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22356509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22356510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22356511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22356512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22356513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22356514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22356515, '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 = 22359573 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': 2755680, 'mtr_portfolio_id': 22359573, 'created_at': datetime.datetime(2025, 4, 24, 5, 54, 27), 'result': '0.09189292152865543', 'result_long': None, 'result_double': None}] Qualite : 0.09189292152865543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22359573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22359573 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_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, 'pht': 3726}}" where mtr_portfolio_id = 22359573 and dashboard_run_id = 1751574 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`=22359573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061691, 0.09189292152865543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22359573_23-04-2025_22_02_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22359575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22359576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22359577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22359578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22359579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22359580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22359581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22359582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22359583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22359584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22359585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22359586, '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 = 22360340 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': 2755681, 'mtr_portfolio_id': 22360340, 'created_at': datetime.datetime(2025, 4, 24, 5, 54, 59), 'result': '0.038781135311854995', 'result_long': None, 'result_double': None}] Qualite : 0.038781135311854995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22360340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_24-04-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22360340 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_P22360340_24-04-2025_05_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, 'pht': 3726}}" where mtr_portfolio_id = 22360340 and dashboard_run_id = 1751574 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`=22360340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061692, 0.038781135311854995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22360340_24-04-2025_05_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22360365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22360366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22360367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22360368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22360369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22360370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22360371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22360372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22360373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22360374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22360375, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22360376, '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 = 22361301 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': 2755682, 'mtr_portfolio_id': 22361301, 'created_at': datetime.datetime(2025, 4, 24, 5, 55, 30), 'result': '0.007164409179908233', 'result_long': None, 'result_double': None}] Qualite : 0.007164409179908233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_24-04-2025_05_55_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361301 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_P22361301_24-04-2025_05_55_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, 'pht': 3726}}" where mtr_portfolio_id = 22361301 and dashboard_run_id = 1751574 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`=22361301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061693, 0.007164409179908233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361301_24-04-2025_05_55_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361323, '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 = 22361872 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': 2754971, 'mtr_portfolio_id': 22361872, 'created_at': datetime.datetime(2025, 4, 23, 22, 46, 57), 'result': '0.24777382948637755', 'result_long': None, 'result_double': None}] Qualite : 0.24777382948637755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22361872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22361872 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_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, 'pht': 3726}}" where mtr_portfolio_id = 22361872 and dashboard_run_id = 1751574 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`=22361872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10061694, 0.24777382948637755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22361872_23-04-2025_22_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22361874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22361875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22361876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22361877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22361878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22361879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22361880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22361881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22361882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22361883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22361884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22361885, '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 (22325236,22325613,22325942,22326303,22326686,22327416,22327827,22328173,22328867,22329762,22330414,22331203,22331661,22332458,22333179,22334033,22336354,22337144,22337891,22338640,22339201,22339852,22340451,22341308,22341945,22342537,22342994,22348035,22348525,22349010,22349913,22350703,22351746,22353065,22353503,22354290,22354450,22355072,22355885,22356488,22359573,22360340,22361301,22361872) result : ((1352913245,), (1352914097,), (1352914100,), (1352914723,), (1352914724,), (1352914748,), (1352914749,), (1352914777,), (1352914808,), (1352914811,), (1352914848,), (1352914859,), (1352914861,), (1352914863,), (1352914865,), (1352914902,), (1352914904,), (1352914911,), (1352914943,), (1352914946,), (1352914948,), (1352914977,), (1352914979,), (1352915006,), (1352915008,), (1352915073,), (1352915045,), (1352915052,), (1352915057,), (1352915062,), (1352915099,), (1352915100,), (1352915101,), (1352915102,), (1352915103,), (1352915136,), (1352915139,), (1352915141,), (1352915143,), (1352915144,), (1352915175,), (1352915176,), (1352915177,), (1352915219,), (1352915221,), (1352915226,), (1352915231,), (1352915232,), (1352915233,), (1352915279,), (1352915280,), (1352915281,), (1352915282,), (1352915307,), (1352915308,), (1352915309,), (1352915334,), (1352915336,), (1352915337,), (1352915338,), (1352915361,), (1352915362,), (1352915402,), (1352915404,), (1352915443,), (1352915444,), (1352915446,), (1352915447,), (1352915448,), (1352915450,), (1352915463,), (1352915464,), (1352915466,), (1352915493,), (1352915496,), (1352915497,), (1352915498,), (1352915500,), (1352915526,), (1352915527,), (1352915528,), (1352915529,), (1352915559,), (1352915561,), (1352915563,), (1352915564,), (1352915565,), (1352915568,), (1352915628,), (1352915622,), (1352915623,), (1352915624,), (1352915627,), (1352915646,), (1352915647,), (1352915648,), (1352915690,), (1352915691,), (1352915692,), (1352915693,), (1352915737,), (1352915740,), (1352915742,), (1352915750,), (1352915752,), (1352915753,), (1352915775,), (1352915776,), (1352915777,), (1352915778,), (1352915806,), (1352915808,), (1352915809,), (1352915810,), (1352915812,), (1352915816,), (1352915842,), (1352915845,), (1352915846,), (1352915847,), (1352915896,), (1352915898,), (1352915902,), (1352915906,), (1352915907,), (1352915909,), (1352915936,), (1352915937,), (1352915938,), (1352915939,), (1352915942,), (1352915972,), (1352915975,), (1352915977,), (1352916018,), (1352916030,), (1352916031,), (1352916032,), (1352916034,), (1352916037,), (1352916094,), (1352916099,), (1352916101,), (1352916103,), (1352916137,), (1352916138,), (1352916139,), (1352916140,), (1352916142,), (1352916194,), (1352916204,), (1352916207,), (1352916209,), (1352916212,), (1352916214,), (1352916243,), (1352916245,), (1352916247,), (1352916248,), (1352916310,), (1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,), (1352917891,), (1352917944,), (1352918010,), (1352918087,), (1352918134,), (1352918466,), (1352918346,), (1352918398,), (1352918431,), (1352918642,), (1352918670,), (1352918701,), (1352918726,), (1352918756,), (1352918871,), (1352918872,), (1352918873,), (1352918874,), (1352918876,), (1352918879,), (1352918909,), (1352918912,), (1352918914,), (1352918916,), (1352918953,), (1352918954,), (1352918956,), (1352918957,), (1352918961,), (1352918964,), (1352918989,), (1352918992,), (1352918995,), (1352918997,), (1352919024,), (1352919025,), (1352919061,), (1352919064,), (1352919067,), (1352919072,), (1352919075,), (1352919120,), (1352919121,), (1352919122,), (1352919123,), (1352919125,), (1352919128,), (1352919180,), (1352919189,), (1352919193,), (1352919197,), (1352919202,), (1352919254,), (1352919257,), (1352919258,), (1352919259,), (1352919260,), (1352919262,), (1352919317,), (1352919319,), (1352919325,), (1352919363,), (1352919364,), (1352919365,), (1352919366,), (1352919367,), (1352919370,), (1352919417,), (1352919420,), (1352919422,), (1352919424,), (1352919426,), (1352919429,), (1352919476,), (1352919477,), (1352919479,), (1352919480,), (1352919483,), (1352919543,), (1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,), (1352921702,), (1352921706,), (1352921708,), (1352921710,), (1352921713,), (1352921716,), (1352921752,), (1352921753,), (1352921783,), (1352921785,), (1352921786,), (1352921787,), (1352921816,), (1352921820,), (1352921822,), (1352921864,), (1352921851,), (1352921854,), (1352921857,), (1352921859,), (1352921861,), (1352921892,), (1352921895,), (1352921897,), (1352921899,), (1352921929,), (1352921930,), (1352921931,), (1352921932,), (1352921933,), (1352921972,), (1352921974,), (1352921976,), (1352921978,), (1352921981,), (1352921983,), (1352922010,), (1352922012,), (1352922013,), (1352922014,), (1352922016,), (1352922063,), (1352922064,), (1352922066,), (1352922068,), (1352922094,), (1352922097,), (1352922099,), (1352922101,), (1352922104,), (1352922107,), (1352922139,), (1352922141,), (1352922142,), (1352922143,), (1352922192,), (1352922197,), (1352922198,), (1352922199,), (1352922200,), (1352922233,), (1352922236,), (1352922240,), (1352922243,), (1352922246,), (1352922248,), (1352922298,), (1352922301,), (1352922302,), (1352922656,), (1352922659,), (1352922661,), (1352922683,), (1352922698,), (1352922755,), (1352922757,), (1352922759,), (1352922761,), (1352922766,), (1352922769,), (1352923825,), (1352923859,), (1352923869,), (1352924869,), (1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,), (1352928961,), (1352928964,), (1352928968,), (1352928972,), (1352928977,), (1352928981,), (1352929029,), (1352929031,), (1352929034,), (1352929057,), (1352929066,), (1352929135,), (1352929140,), (1352929161,), (1352929212,), (1352929241,), (1352929273,), (1352929358,), (1352929364,), (1352929371,), (1352929389,), (1352929785,), (1352929811,), (1352929823,), (1352929829,), (1352929834,), (1352929858,), (1352930044,), (1352930057,), (1352930071,), (1352930236,), (1352930243,), (1352930247,), (1352930253,), (1352930266,), (1352930300,), (1352930474,), (1352930479,), (1352930486,), (1352930488,), (1352930693,), (1352930708,), (1352930712,), (1352930715,), (1352930719,), (1352930724,), (1352930886,), (1352930839,), (1352930853,), (1352930870,), (1352930882,), (1352931172,), (1352931193,), (1352931227,), (1352931249,), (1352931364,), (1352931391,), (1352931403,), (1352931406,), (1352931409,), (1352931412,), (1352931444,), (1352931458,), (1352931475,), (1352931482,), (1352931495,), (1352931607,), (1352931654,), (1352931850,), (1352931951,), (1352931969,), (1352932152,), (1352932192,), (1352932229,), (1352932255,), (1352932260,), (1352932300,), (1352932302,), (1352932304,), (1352932307,), (1352932312,), (1352932320,), (1352932377,), (1352932395,), (1352932429,), (1352932583,), (1352932586,), (1352932590,), (1352932593,), (1352932598,), (1352932609,), (1352932774,), (1352932789,), (1352932829,), (1352932867,), (1352932973,), (1352932977,), (1352932982,), (1352933012,), (1352933050,), (1352933076,), (1352933358,), (1352933407,), (1352933459,), (1352933481,), (1352933484,), (1352933792,), (1352933800,), (1352933805,), (1352933839,), (1352933962,), (1352934001,), (1352934029,), (1352934050,), (1352934053,), (1352934056,), (1352934106,), (1352934133,), (1352934185,), (1352934459,), (1352934446,), (1352934452,), (1352934455,), (1352934456,), (1352934532,), (1352934538,), (1352934543,), (1352934547,), (1352934551,), (1352934554,), (1352934596,), (1352934599,), (1352934601,), (1352934603,), (1352934796,), (1352934848,), (1352934949,), (1352934988,), (1352935045,), (1352935325,), (1352935346,), (1352935359,), (1352935386,), (1352935432,), (1352935461,), (1352935528,), (1352935531,), (1352935614,), (1352935620,), (1352935626,), (1352935631,), (1352935636,), (1352935644,), (1352935726,), (1352935741,), (1352935750,), (1352935762,), (1352935796,), (1352935809,), (1352936013,), (1352936034,), (1352936045,), (1352936823,), (1352937660,), (1352937329,), (1352937636,), (1352937639,), (1352937651,), (1352937764,), (1352937835,), (1352937839,), (1352937847,), (1352937878,), (1352937908,), (1352938024,), (1352938035,), (1352938039,), (1352938080,), (1352938083,), (1352938085,), (1352938094,), (1352938107,), (1352938141,), (1352938144,), (1352938148,), (1352938152,), (1352938155,), (1352938160,), (1352938191,), (1352938195,), (1352938199,), (1352938203,), (1352938206,), (1352938251,), (1352938258,), (1352938373,), (1352938406,), (1352938659,), (1352940413,), (1352940365,), (1352941249,), (1352941277,), (1352941899,), (1352941927,), (1352941953,), (1352941978,), (1352941989,), (1352942080,), (1352942081,), (1352942084,), (1352942086,), (1352942357,), (1352942525,), (1352942530,), (1352942536,), (1352942568,), (1352942595,), (1352942790,), (1352942827,), (1352942992,), (1352943026,), (1352943060,), (1352943132,), (1352943139,), (1352943160,), (1352943168,), (1352943171,), (1352943371,), (1352943388,), (1352943403,), (1352943423,), (1352943631,), (1352943633,), (1352943636,), (1352943679,), (1352943688,), (1352943694,), (1352943889,), (1352943891,), (1352943892,), (1352943894,), (1352943896,), (1352943901,), (1352943953,), (1352943956,), (1352943962,), (1352944104,), (1352944106,), (1352944521,), (1352944566,), (1352944569,), (1352944595,), (1352944829,), (1352944866,), (1352944908,), (1352944909,), (1352944915,), (1352945129,), (1352945094,), (1352945118,), (1352945125,), (1352945321,), (1352945325,), (1352945343,), (1352945345,), (1352945358,), (1352945364,), (1352945438,), (1352945441,), (1352945450,), (1352945456,), (1352945461,), (1352945569,), (1352945577,), (1352945755,), (1352945758,), (1352945761,), (1352945764,), (1352945767,), (1352945803,), (1352945963,), (1352945977,), (1352945979,), (1352945981,), (1352945983,), (1352945987,), (1352946233,), (1352946243,), (1352946250,), (1352946255,), (1352946540,), (1352946703,), (1352946715,), (1352946728,), (1352946731,), (1352946793,), (1352946798,), (1352946807,), (1352946810,), (1352946811,), (1352946869,), (1352946873,), (1352946878,), (1352946880,), (1352947085,), (1352947086,), (1352947088,), (1352947090,), (1352947221,), (1352947226,), (1352947235,), (1352947294,), (1352947296,), (1352947322,), (1352947392,), (1352947394,), (1352947397,), (1352947400,), (1352947405,), (1352947451,), (1352947461,), (1352947760,), (1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,), (1352948761,), (1352948765,), (1352948833,), (1352948880,), (1352948889,), (1352948983,), (1352948989,), (1352948992,), (1352948994,), (1352948996,), (1352949037,), (1352949038,), (1352949040,), (1352949042,), (1352949044,), (1352949324,), (1352949398,), (1352949447,), (1352949490,), (1352949547,), (1352949555,), (1352949873,), (1352949884,), (1352949899,), (1352949927,), (1352950208,), (1352950278,), (1352950309,), (1352950320,), (1352950326,), (1352950331,), (1352950493,), (1352950497,), (1352950508,), (1352950516,), (1352950525,), (1352950836,), (1352950789,), (1352950822,), (1352950831,), (1352950983,), (1352951003,), (1352951028,), (1352951061,), (1352951080,), (1352951092,), (1352951311,), (1352951353,), (1352951389,), (1352951425,), (1352952499,), (1352952532,), (1352952576,), (1352952639,), (1352952671,), (1352952702,), (1352952792,), (1352952801,), (1352952842,), (1352952886,), (1352952940,), (1352953003,), (1352953217,), (1352953284,), (1352953334,), (1352953367,), (1352953520,), (1352953579,), (1352953638,), (1352953691,), (1352953740,), (1352953786,), (1352954734,), (1352954740,), (1352954743,), (1352954755,), (1352954934,), (1352954942,), (1352954964,), (1352955145,), (1352955376,), (1352955385,), (1352955574,), (1352955579,), (1352955582,), (1352955661,), (1352955811,), (1352955943,), (1352955949,), (1352955953,), (1352955957,), (1352955989,), (1352955992,), (1352955995,), (1352955999,), (1352956085,), (1352956160,), (1352956186,), (1352956212,), (1352957185,), (1352957220,), (1352957250,), (1352957283,), (1352957404,), (1352957425,), (1352959727,), (1352971452,), (1352971456,), (1352971458,), (1352971621,), (1352971655,), (1352971690,), (1352971740,), (1352971801,), (1352971999,), (1352972747,), (1352972756,), (1352972776,), (1352972780,), (1352972828,), (1352973500,), (1352973532,), (1352973642,), (1352973690,), (1352973820,), (1352974131,), (1352974154,), (1352974198,), (1352974234,), (1352974285,), (1352974323,), (1352974518,), (1352974551,), (1352974579,), (1352974618,), (1352975052,), (1352975087,), (1352975113,), (1352975140,), (1352975169,), (1352975200,), (1352975496,), (1352975502,), (1352975518,), (1352975525,), (1352975531,), (1352975785,), (1352975812,), (1352975840,), (1352975879,), (1352975934,), (1352976201,), (1352976210,), (1352976240,), (1352976270,), (1352976619,), (1352976630,), (1352976639,), (1352976702,), (1352976808,), (1352976920,), (1352977563,), (1352977638,), (1352977725,), (1352977763,), (1352977805,), (1352977837,), (1352978122,), (1352978126,), (1352978140,), (1352978349,), (1352978412,), (1352978449,), (1352978476,), (1352978488,), (1352978549,), (1352978525,), (1352978526,), (1352978528,), (1352978530,), (1352978533,), (1352978748,), (1352978766,), (1352978770,), (1352978836,), (1352978840,), (1352978843,), (1352978867,), (1352979097,), (1352979099,), (1352979102,), (1352979108,), (1352979148,), (1352979166,), (1352979212,), (1352979216,), (1352979219,), (1352979222,), (1352979429,), (1352979457,), (1352979484,), (1352979890,), (1352979916,), (1352979955,), (1352979986,), (1352980021,), (1352980049,), (1352980212,), (1352980215,), (1352980216,), (1352980220,), (1352980223,), (1352980347,), (1352980457,), (1352980462,), (1352980485,), (1352980559,), (1352980563,), (1352980568,), (1352980573,), (1352980578,), (1352980621,), (1352980623,), (1352980625,), (1352980627,), (1352980631,), (1352980636,), (1352980773,), (1352980801,), (1352980838,), (1352981403,), (1352981438,), (1352981493,), (1352982371,), (1352982403,), (1352982435,), (1352982519,), (1352983052,), (1352982939,), (1352982995,), (1352983640,), (1352983669,), (1352983739,), (1352983818,), (1352983909,), (1352983994,), (1352984875,), (1352984947,), (1352985009,), (1352985051,), (1352985150,), (1352985191,), (1352985405,), (1352985412,), (1352985415,), (1352985420,), (1352985473,), (1352985477,), (1352985480,), (1352985483,), (1352985585,), (1352985588,), (1352985591,), (1352985594,), (1352985598,), (1352985600,), (1352985666,), (1352985671,), (1352985675,), (1352985681,), (1352985695,), (1352985723,), (1352986027,), (1352986030,), (1352986032,), (1352986034,), (1352986103,), (1352986115,), (1352986119,), (1352986123,), (1352986128,), (1352986130,), (1352986195,), (1352986201,), (1352986205,), (1352986209,), (1352986422,), (1352986434,), (1352986438,), (1352986442,), (1352986445,), (1352986515,), (1352986519,), (1352986525,), (1352986528,), (1352986530,), (1352986622,), (1352986644,), (1352986647,), (1352986651,), (1352986895,), (1352986904,), (1352986913,), (1352986948,), (1352986991,), (1352987037,), (1352987164,), (1352987168,), (1352987172,), (1352987176,), (1352987179,), (1352987183,), (1352987243,), (1352987240,), (1352987533,), (1352987536,), (1352987546,), (1352987549,), (1352987565,), (1352987730,), (1352987749,), (1352987753,), (1352987773,), (1352987804,), (1352987820,), (1352987863,), (1352987866,), (1352987868,), (1352987870,), (1352987999,), (1352988003,), (1352988007,), (1352988015,), (1352988023,), (1352988027,), (1352988140,), (1352988178,), (1352988198,), (1352988203,), (1352988487,), (1352988490,), (1352988951,), (1352988955,), (1352988959,), (1352988988,), (1352989006,), (1352989012,), (1352989085,), (1352989088,), (1352989092,), (1352989095,), (1352989140,), (1352989142,), (1352989144,), (1352989146,), (1352989149,), (1352989438,), (1352989444,), (1352989455,), (1352989462,), (1352989515,), (1352989517,), (1352989729,), (1352989949,), (1352989955,), (1352990077,), (1352990029,), (1352990072,), (1352990192,), (1352990194,), (1352990213,), (1352990366,), (1352990369,), (1352990371,), (1352990478,), (1352990483,), (1352990485,), (1352990487,), (1352990490,), (1352990494,), (1352990533,), (1352990535,), (1352990559,), (1352990562,), (1352990759,), (1352990798,), (1352990834,), (1352991280,), (1352991294,), (1352991298,), (1352991319,), (1352991325,), (1352991548,), (1352991633,), (1352991661,), (1352991696,), (1352991749,), (1352992436,), (1352992554,), (1352992601,), (1352992637,), (1352992949,), (1352992956,), (1352992962,), (1352992967,), (1352992974,), (1352993015,), (1352993027,), (1352993032,), (1352993038,), (1352993162,), (1352993211,), (1352993246,), (1352993273,), (1352993383,), (1352993389,), (1352993395,), (1352993399,), (1352993404,), (1352993464,), (1352993469,), (1352993472,), (1352993475,), (1352993481,), (1352993487,), (1352993603,), (1352993607,), (1352993614,), (1352993624,), (1352993631,), (1352993682,), (1352993665,), (1352993675,), (1352993781,), (1352993786,), (1352993790,), (1352993795,), (1352993798,), (1352993871,), (1352993878,), (1352993885,), (1352993886,), (1352993931,), (1352993935,), (1352993939,), (1352993956,), (1352993992,), (1352994346,), (1352994389,), (1352994412,), (1352994463,), (1352994466,), (1352994470,), (1352994474,), (1352994478,), (1352994536,), (1352994542,), (1352994544,), (1352994546,), (1352994613,), (1352994622,), (1352994627,), (1352994631,), (1352994745,), (1352994749,), (1352994753,), (1352994796,), (1352994800,), (1352994944,), (1352994990,), (1352994993,), (1352994998,), (1352995001,), (1352995007,), (1352995010,), (1352995055,), (1352995077,), (1352995082,), (1352995085,), (1352995156,), (1352995161,), (1352995167,), (1352995171,), (1352995175,), (1352995943,), (1352995977,), (1352996039,), (1352996210,), (1352996240,), (1352996272,), (1352996301,), (1352996334,), (1352996661,), (1352996528,), (1352996574,), (1352996605,), (1352996633,), (1352996656,), (1352996897,), (1352996952,), (1352997021,), (1352997080,), (1352997374,), (1352997378,), (1352997383,), (1352997388,), (1352997393,), (1352997397,), (1352997439,), (1352997443,), (1352997446,), (1352997449,), (1352997451,), (1352997488,), (1352997492,), (1352997496,), (1352997506,), (1352997511,), (1352997579,), (1352997582,), (1352997596,), (1352997661,), (1352997665,), (1352997669,), (1352997674,), (1352997679,), (1352997683,), (1352997710,), (1352997779,), (1352997783,), (1352997789,), (1352997797,), (1352997802,), (1352997931,), (1352997937,), (1352998160,), (1352998164,), (1352998176,), (1352998352,), (1352998426,), (1352998480,), (1352998540,), (1352998607,), (1352998759,), (1352998770,), (1352998783,), (1352998797,), (1352998918,), (1352998926,), (1352999164,), (1352999198,), (1352999731,), (1352999549,), (1352999640,), (1352999694,), (1353000334,), (1353000353,), (1353000360,), (1353000382,), (1353000387,), (1353000399,), (1353000528,), (1353000531,), (1353000537,), (1353000545,), (1353000632,), (1353000636,), (1353000645,), (1353000711,), (1353000714,), (1353000717,), (1353000735,), (1353000741,), (1353000884,), (1353000893,), (1353000897,), (1353000902,), (1353000908,), (1353000913,), (1353001190,), (1353001221,), (1353001249,), (1353001279,), (1353001732,), (1353001761,), (1353001791,), (1353001819,), (1353001846,), (1353002275,), (1353002303,), (1353002331,), (1353002353,), (1353002397,), (1353002401,), (1353002406,), (1353002559,), (1353002595,), (1353002623,), (1353002665,), (1353002708,), (1353002992,), (1353003007,), (1353003009,), (1353003015,), (1353003018,), (1353003164,), (1353003193,), (1353003224,), (1353003256,), (1353003310,), (1353003313,), (1353003315,), (1353003317,), (1353003320,), (1353003324,), (1353003531,), (1353003563,), (1353003596,), (1353003626,), (1353003659,), (1353003695,), (1353003798,), (1353003788,), (1353003794,), (1353003797,), (1353003843,), (1353003847,), (1353003854,), (1353003859,), (1353003863,), (1353003907,), (1353003909,), (1353003911,), (1353003914,), (1353003917,), (1353003921,), (1353004012,), (1353004020,), (1353004038,), (1353004252,), (1353004257,), (1353004262,), (1353004268,), (1353004274,), (1353004306,), (1353004310,), (1353004314,), (1353004320,), (1353004337,), (1353004378,), (1353004392,), (1353004394,), (1353004474,), (1353004478,), (1353004483,), (1353004496,), (1353004506,), (1353004516,), (1353004652,), (1353004675,), (1353004678,), (1353004681,), (1353004685,), (1353004691,), (1353004848,), (1353004855,), (1353004867,), (1353004878,), (1353005005,), (1353005009,), (1353005016,), (1353005027,), (1353005032,), (1353005061,), (1353005144,), (1353005149,), (1353005153,), (1353005160,), (1353005279,), (1353005282,), (1353005833,), (1353006018,), (1353006044,), (1353006047,), (1353006050,), (1353006054,), (1353006654,), (1353006659,), (1353006664,), (1353006669,), (1353006676,), (1353007070,), (1353007072,), (1353007074,), (1353007077,), (1353007080,), (1353007244,), (1353007251,), (1353007256,), (1353007259,), (1353007523,), (1353007525,), (1353007527,), (1353007529,), (1353007530,), (1353007535,), (1353007583,), (1353007592,), (1353007599,), (1353007603,), (1353007644,), (1353007646,), (1353007648,), (1353007650,), (1353007653,), (1353007658,), (1353007694,), (1353007698,), (1353007702,), (1353007706,), (1353007709,), (1353007758,), (1353007762,), (1353007765,), (1353007771,), (1353007776,), (1353007820,), (1353007828,), (1353007840,), (1353007850,), (1353007861,), (1353007891,), (1353008391,), (1353008439,), (1353008486,), (1353008702,), (1353008760,), (1353008815,), (1353008864,), (1353008937,), (1353009468,), (1353009296,), (1353009372,), (1353010004,), (1353010082,), (1353010165,), (1353010224,), (1353010269,), (1353010319,), (1353010923,), (1353011015,), (1353011127,), (1353011252,), (1353011364,), (1353011415,), (1353011603,), (1353011609,), (1353011625,), (1353011657,), (1353011835,), (1353011866,), (1353011896,), (1353011914,), (1353011922,), (1353011929,), (1353011963,), (1353011967,), (1353011971,), (1353011976,), (1353011988,), (1353012201,), (1353012206,), (1353012216,), (1353012230,), (1353012251,), (1353012305,), (1353012310,), (1353012314,), (1353012318,), (1353012323,), (1353012383,), (1353012386,), (1353012389,), (1353012393,), (1353012398,), (1353012443,), (1353012447,), (1353012450,), (1353012453,), (1353012457,), (1353012461,), (1353012566,), (1353012699,), (1353027723,), (1353076602,), (1353076665,), (1353077221,), (1353077224,), (1353077227,), (1353077228,), (1353078467,), (1353078494,), (1353078520,), (1353078549,), (1353078589,), (1353078617,), (1353078961,), (1353078994,), (1353079024,), (1353079052,), (1353079091,), (1353079123,), (1353079216,), (1353079225,), (1353079229,), (1353079231,), (1353079246,), (1353079380,), (1353079407,), (1353079435,), (1353079468,), (1353079498,), (1353079528,), (1353079744,), (1353079769,), (1353079891,), (1353079902,), (1353079905,), (1353079909,), (1353079913,), (1353079953,), (1353079973,), (1353079985,), (1353079990,), (1353079995,), (1353080041,), (1353080046,), (1353080050,), (1353080054,), (1353080101,), (1353080107,), (1353080113,), (1353080117,), (1353080123,), (1353080171,), (1353080176,), (1353080207,), (1353080299,), (1353080674,), (1353080661,), (1353080664,), (1353080667,), (1353080671,), (1353080738,), (1353080740,), (1353080742,), (1353080744,), (1353080810,), (1353080813,), (1353080816,), (1353080870,), (1353080873,), (1353080876,), (1353080920,), (1353080923,), (1353080926,), (1353080973,), (1353080977,), (1353080978,), (1353080984,), (1353081006,), (1353081019,), (1353081086,), (1353081089,), (1353081091,), (1353081094,), (1353081191,), (1353081194,), (1353081198,), (1353081202,), (1353081208,), (1353081211,), (1353081268,), (1353081272,), (1353081275,), (1353081277,), (1353081281,), (1353081319,), (1353081324,), (1353081330,), (1353081333,), (1353081336,), (1353081386,), (1353081389,), (1353081392,), (1353081394,), (1353081436,), (1353081439,), (1353081444,), (1353081449,), (1353081499,), (1353081504,), (1353081509,), (1353081513,), (1353081519,), (1353081526,), (1353081598,), (1353081583,), (1353081587,), (1353081593,), (1353082009,), (1353082028,), (1353082032,), (1353082057,), (1353082062,), (1353082080,), (1353082150,), (1353082153,), (1353082158,), (1353082161,), (1353082165,), (1353082170,), (1353082208,), (1353082212,), (1353082216,), (1353082258,), (1353082260,), (1353082266,), (1353082270,), (1353082276,), (1353082283,), (1353082471,), (1353082487,), (1353082502,), (1353082506,), (1353082537,), (1353082647,), (1353082726,), (1353082729,), (1353082733,), (1353082753,), (1353082871,), (1353082875,), (1353082878,), (1353082903,), (1353082936,), (1353082938,), (1353083102,), (1353083130,), (1353083159,), (1353083480,), (1353083497,), (1353083529,), (1353083541,), (1353083546,), (1353083550,), (1353083589,), (1353083593,), (1353083597,), (1353083601,), (1353083679,), (1353083691,), (1353083701,), (1353083716,), (1353083735,), (1353083741,), (1353083985,), (1353084044,), (1353084077,), (1353084106,), (1353084326,), (1353084328,), (1353084335,), (1353084338,), (1353084376,), (1353084426,), (1353084859,), (1353084890,), (1353084922,), (1353084971,), (1353085001,), (1353085683,), (1353085654,), (1353085658,), (1353085661,), (1353085663,), (1353086633,), (1353086649,), (1353087006,), (1353087051,), (1353087079,), (1353087091,), (1353087096,), (1353087730,), (1353087758,), (1353087813,), (1353087816,), (1353087839,), (1353087867,), (1353087896,), (1353088130,), (1353088144,), (1353088154,), (1353088157,), (1353088161,), (1353088329,), (1353088337,), (1353088342,), (1353088344,), (1353088378,), (1353088381,), (1353088389,), (1353088393,), (1353088396,), (1353088467,), (1353088480,), (1353088496,), (1353088508,), (1353088513,), (1353088525,), (1353089469,), (1353089517,), (1353089551,), (1353090026,), (1353090010,), (1353090021,), (1353090420,), (1353090444,), (1353090453,), (1353090461,), (1353090487,), (1353090540,), (1353090923,), (1353090934,), (1353090944,), (1353090976,), (1353091004,), (1353091018,), (1353091110,), (1353091122,), (1353091126,), (1353091158,), (1353091163,), (1353091174,), (1353091179,), (1353091207,), (1353091238,), (1353091390,), (1353091394,), (1353091396,), (1353091405,), (1353091407,), (1353091444,), (1353091448,), (1353091461,), (1353091468,), (1353091649,), (1353091699,), (1353091747,), (1353091797,), (1353091861,), (1353091925,), (1353092332,), (1353092372,), (1353092403,), (1353092430,), (1353092457,), (1353092501,), (1353092958,), (1353093036,), (1353093400,), (1353093410,), (1353093425,), (1353093892,), (1353093946,), (1353094584,), (1353094617,), (1353094644,), (1353094667,), (1353094682,), (1353095214,), (1353095289,), (1353095371,), (1353095429,), (1353095446,), (1353095636,), (1353095605,), (1353096830,), (1353097084,), (1353097095,), (1353097131,), (1353097508,), (1353097538,), (1353097568,), (1353097609,), (1353097648,), (1353097682,), (1353097875,), (1353097882,), (1353097886,), (1353098219,), (1353098248,), (1353098297,), (1353098314,), (1353098336,), (1353098341,), (1353098541,), (1353098593,), (1353098618,), (1353098648,), (1353098718,), (1353098764,), (1353098969,), (1353098976,), (1353098990,), (1353099002,), (1353099125,), (1353099155,), (1353099190,), (1353099237,), (1353099268,), (1353099295,), (1353099695,), (1353099726,), (1353099777,), (1353099781,), (1353099791,), (1353100064,), (1353100100,), (1353100141,), (1353100144,), (1353100423,), (1353100442,), (1353100471,), (1353100472,), (1353100476,), (1353100488,), (1353100517,), (1353100526,), (1353100530,), (1353100543,), (1353100643,), (1353100647,), (1353100652,), (1353102366,), (1353111678,), (1353111710,), (1353111738,), (1353111778,), (1353111817,), (1353111848,), (1353112060,), (1353112063,), (1353112066,), (1353112069,), (1353112499,), (1353113056,), (1353113077,), (1353113082,), (1353113084,), (1353113088,), (1353113116,), (1353113120,), (1353113124,), (1353113128,), (1353113131,), (1353113287,), (1353113318,), (1353113350,), (1353113378,), (1353113408,), (1353113447,), (1353113546,), (1353113550,), (1353113553,), (1353113557,), (1353113562,), (1353113611,), (1353113616,), (1353113623,), (1353113635,), (1353113638,), (1353113685,), (1353113700,), (1353113705,), (1353113710,), (1353113714,), (1353113750,), (1353113762,), (1353113779,), (1353113788,), (1353113794,), (1353113810,), (1353113872,), (1353113879,), (1353113885,), (1353113896,), (1353114185,), (1353114189,), (1353114193,), (1353114206,), (1353114230,), (1353114243,), (1353114298,), (1353114302,), (1353114307,), (1353114312,), (1353114378,), (1353114383,), (1353114388,), (1353114394,), (1353114659,), (1353114581,), (1353114591,), (1353114619,), (1353114646,), (1353114654,), (1353114949,), (1353114976,), (1353115047,), (1353115133,), (1353115138,), (1353115173,), (1353115194,), (1353115204,), (1353115229,), (1353115254,), (1353115356,), (1353115366,), (1353115370,), (1353115380,), (1353115410,), (1353115422,), (1353115542,), (1353115569,), (1353115586,), (1353115976,), (1353116007,), (1353116033,), (1353116089,), (1353116148,), (1353116371,), (1353116374,), (1353116377,), (1353116379,), (1353116381,), (1353116435,), (1353116438,), (1353116442,), (1353116445,), (1353116449,), (1353116451,), (1353116493,), (1353116504,), (1353116509,), (1353116511,), (1353116564,), (1353116568,), (1353116573,), (1353116577,), (1353116582,), (1353116589,), (1353116645,), (1353116649,), (1353116652,), (1353116653,), (1353116655,), (1353116819,), (1353116855,), (1353116858,), (1353116862,), (1353116866,), (1353116886,), (1353116988,), (1353116991,), (1353116993,), (1353116996,), (1353117050,), (1353117066,), (1353117095,), (1353117126,), (1353117154,), (1353117186,), (1353117410,), (1353117413,), (1353117415,), (1353117421,), (1353117426,), (1353117473,), (1353118535,), (1353118804,), (1353118813,), (1353118873,), (1353118876,), (1353118878,), (1353118955,), (1353118958,), (1353118963,), (1353118966,), (1353118971,), (1353119023,), (1353119234,), (1353119244,), (1353119247,), (1353119274,), (1353119309,), (1353119349,), (1353119464,), (1353119495,), (1353119521,), (1353119524,), (1353119527,), (1353119594,), (1353119597,), (1353119601,), (1353119604,), (1353119642,), (1353119662,), (1353119664,), (1353119670,), (1353119676,), (1353119758,), (1353119715,), (1353119742,), (1353119749,), (1353119952,), (1353119979,), (1353120006,), (1353120033,), (1353120042,), (1353120045,), (1353120113,), (1353120116,), (1353120121,), (1353120299,), (1353120302,), (1353120305,), (1353120307,), (1353120310,), (1353120312,), (1353120366,), (1353120370,), (1353120379,), (1353120382,), (1353120469,), (1353120471,), (1353120473,), (1353120476,), (1353120482,), (1353120486,), (1353120534,), (1353120539,), (1353120541,), (1353120589,), (1353120591,), (1353120593,), (1353120596,), (1353120708,), (1353120719,), (1353120782,), (1353120785,), (1353120793,), (1353120802,), (1353120809,), (1353120855,), (1353120867,), (1353120871,), (1353120872,), (1353120875,), (1353120878,), (1353120963,), (1353120967,), (1353120971,), (1353120975,), (1353120979,), (1353121023,), (1353121030,), (1353121032,), (1353121255,), (1353121263,), (1353121267,), (1353121271,), (1353121276,), (1353121437,), (1353121445,), (1353121451,), (1353121458,), (1353121469,), (1353122341,), (1353122166,), (1353122223,), (1353122282,), (1353122925,), (1353122976,), (1353123036,), (1353123081,), (1353123111,), (1353123151,), (1353123576,), (1353123649,), (1353123733,), (1353123821,), (1353123910,), (1353124386,), (1353124620,), (1353124658,), (1353124695,), (1353125059,), (1353125088,), (1353125125,), (1353125143,), (1353125149,), (1353125180,), (1353125326,), (1353125367,), (1353125404,), (1353127014,), (1353127047,), (1353127081,), (1353127113,), (1353127146,), (1353127176,), (1353127742,), (1353127840,), (1353127887,), (1353127920,), (1353128020,), (1353128037,), (1353128060,), (1353128073,), (1353128086,), (1353128090,), (1353128429,), (1353128534,), (1353128643,), (1353128751,), (1353128869,), (1353128980,), (1353129287,), (1353129337,), (1353129383,), (1353129453,), (1353129879,), (1353129909,), (1353129934,), (1353129973,), (1353130033,), (1353130084,), (1353130390,), (1353130396,), (1353130402,), (1353130406,), (1353130633,), (1353130639,), (1353130644,), (1353130654,), (1353130681,), (1353130697,), (1353130862,), (1353130868,), (1353130873,), (1353130876,), (1353130881,), (1353131055,), (1353131013,), (1353131017,), (1353131020,), (1353131025,), (1353131193,), (1353131201,), (1353131206,), (1353131211,), (1353131227,), (1353131237,), (1353131329,), (1353131333,), (1353131346,), (1353131352,), (1353131396,), (1353131405,), (1353131413,), (1353131419,), (1353131424,), (1353131446,), (1353131506,), (1353131517,), (1353131522,), (1353131528,), (1353131535,), (1353131539,), (1353131576,), (1353131582,), (1353131592,), (1353131599,), (1353131611,), (1353131686,), (1353131689,), (1353131691,), (1353131695,), (1353131702,), (1353131712,), (1353131750,), (1353131755,), (1353131763,), (1353131766,), (1353131789,), (1353131798,), (1353131967,), (1353131972,), (1353131981,), (1353131994,), (1353131998,), (1353132032,), (1353132038,), (1353132043,), (1353132048,), (1353132052,), (1353132134,), (1353132137,), (1353132149,), (1353132159,), (1353132238,), (1353132244,), (1353132249,), (1353132268,), (1353132275,), (1353132279,), (1353132308,), (1353132313,), (1353132317,), (1353132322,), (1353132327,), (1353132417,), (1353132498,), (1353132602,), (1353132557,), (1353132582,), (1353132586,), (1353132591,), (1353132597,), (1353132655,), (1353132660,), (1353132665,), (1353132670,), (1353132686,), (1353132789,), (1353132936,), (1353132975,), (1353133006,), (1353133038,), (1353133070,), (1353133215,), (1353133219,), (1353133223,), (1353133226,), (1353133765,), (1353133810,), (1353133844,), (1353133849,), (1353133854,), (1353133987,), (1353134004,), (1353134036,), (1353134070,), (1353134421,), (1353134449,), (1353134479,), (1353134490,), (1353134495,), (1353134646,), (1353134664,), (1353134680,), (1353134769,), (1353135009,), (1353135031,), (1353135035,), (1353135039,), (1353135042,), (1353135046,), (1353135085,), (1353135091,), (1353135350,), (1353135360,), (1353135371,), (1353135392,), (1353135537,), (1353135609,), (1353135669,), (1353135675,), (1353135680,), (1353135825,), (1353135842,), (1353135845,), (1353135851,), (1353135866,), (1353136055,), (1353136060,), (1353163056,), (1353163053,), (1353163289,), (1353163457,), (1353163612,), (1353163719,), (1353163723,), (1353163767,), (1353163787,), (1353163790,), (1353163822,), (1353163828,), (1353164461,), (1353164468,), (1353164603,), (1353164608,), (1353164644,), (1353164648,), (1353164931,), (1353164963,), (1353165435,), (1353166256,), (1353166265,), (1353166465,), (1353166469,), (1353166516,), (1353166591,), (1353166595,), (1353166623,), (1353166864,), (1353166892,), (1353167146,), (1353167276,), (1353168141,), (1353168517,), (1353168521,), (1353169027,), (1353169820,), (1353169917,), (1353170380,), (1353170417,), (1353174780,), (1353175039,), (1353175146,), (1353177629,), (1353177567,), (1353177600,), (1353177925,), (1353180426,), (1353180650,), (1353180683,), (1353181324,), (1353181604,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22361301]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] map_info['map_portfolio_photo'] : {22361301: [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820]} final : True mtd_id 4302 list_pids : [1353177629, 1353175146, 1353175039, 1353174780, 1353170417, 1353170380, 1353169917, 1353169820] Looping around the photos to save general results len do output : 1 /22361301Didn'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, '2755682') ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682') ('4302', None, None, None, None, None, None, None, '2755682') ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22361301', 'None', None, None, None, None, '2755682'), ('4302', '22361301', '1353177629', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175146', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353175039', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353174780', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170417', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353170380', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169917', None, None, None, None, None, '2755682'), ('4302', '22361301', '1353169820', None, None, None, None, None, '2755682')] time used for this insertion : 0.01607990264892578 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5450499057769775 time spend to save output : 0.016277790069580078 total time spend for step 5 : 2.5613276958465576 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 (2755682) 2.23user 2.07system 0:09.27elapsed 46%CPU (0avgtext+0avgdata 160668maxresident)k 320inputs+4928outputs (0major+77043minor)pagefaults 0swaps