python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 953039 load datou : 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 ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 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 (4138230) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4138230) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010155 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4138230'] with mtr_portfolio_ids : ['29010155'] and first list_photo_ids : [] new path : /proc/953039/ Name: python3 Umask: 0002 State: R (running) Tgid: 953039 Ngid: 0 Pid: 953039 PPid: 953038 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 953039 NSpid: 953039 NSpgid: 951587 NSsid: 951587 VmPeak: 1113408 kB VmSize: 1113388 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106244 kB VmRSS: 106244 kB RssAnon: 66356 kB RssFile: 39888 kB RssShmem: 0 kB VmData: 872116 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 81 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '953039', 'Ngid': '0', 'Pid': '953039', 'PPid': '953038', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '953039', 'NSpid': '953039', 'NSpgid': '951587', 'NSsid': '951587', 'VmPeak': '1113408 kB', 'VmSize': '1113388 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106244 kB', 'VmRSS': '106244 kB', 'RssAnon': '66356 kB', 'RssFile': '39888 kB', 'RssShmem': '0 kB', 'VmData': '872116 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '81'} ('datou_batch_current', '953039', '1113408', '0', '1113388', '872116', '106244', b'', 'marlene', '4138230') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29010155) 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 (4138230 ) ) 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 (29010155) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396710573, 'portfolio_id': 29010155}, {'photo_id': 1396710540, 'portfolio_id': 29010155}, {'photo_id': 1396710495, 'portfolio_id': 29010155}, {'photo_id': 1396710448, 'portfolio_id': 29010155}, {'photo_id': 1396710240, 'portfolio_id': 29010155}, {'photo_id': 1396710236, 'portfolio_id': 29010155}, {'photo_id': 1396710233, 'portfolio_id': 29010155}, {'photo_id': 1396710231, 'portfolio_id': 29010155}, {'photo_id': 1396710218, 'portfolio_id': 29010155}, {'photo_id': 1396709879, 'portfolio_id': 29010155}, {'photo_id': 1396709815, 'portfolio_id': 29010155}, {'photo_id': 1396709750, 'portfolio_id': 29010155}, {'photo_id': 1396709691, 'portfolio_id': 29010155}, {'photo_id': 1396709626, 'portfolio_id': 29010155}, {'photo_id': 1396709516, 'portfolio_id': 29010155}, {'photo_id': 1396709511, 'portfolio_id': 29010155}, {'photo_id': 1396709508, 'portfolio_id': 29010155}, {'photo_id': 1396709488, 'portfolio_id': 29010155}, {'photo_id': 1396709457, 'portfolio_id': 29010155}, {'photo_id': 1396709401, 'portfolio_id': 29010155}, {'photo_id': 1396708872, 'portfolio_id': 29010155}, {'photo_id': 1396708836, 'portfolio_id': 29010155}, {'photo_id': 1396708799, 'portfolio_id': 29010155}, {'photo_id': 1396708433, 'portfolio_id': 29010155}, {'photo_id': 1396708428, 'portfolio_id': 29010155}, {'photo_id': 1396708425, 'portfolio_id': 29010155}, {'photo_id': 1396708422, 'portfolio_id': 29010155}, {'photo_id': 1396708419, 'portfolio_id': 29010155}] map_portfolio_id_photo_id: {29010155: [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626, 1396709516, 1396709511, 1396709508, 1396709488, 1396709457, 1396709401, 1396708872, 1396708836, 1396708799, 1396708433, 1396708428, 1396708425, 1396708422, 1396708419]} ##### 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.01928544044494629 #### 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 Fri Nov 28 20:06:58 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 (29010155) 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 : 29010155 get user id for portfolio 29010155 get sub ptf for main ptf 29010155, type 3726 and hashtags ['metal', 'Carton_gris', 'papier', 'autre_refus', 'environnement', 'flou', 'cartonnette', 'Carton_brun', 'kraft', 'plastique', 'Teint_Dans_La_Masse', 'mal_croppe'] 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`=29010155 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','papier','autre_refus','environnement','flou','cartonnette','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29010155 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','papier','autre_refus','environnement','flou','cartonnette','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29010155, 'sub_port_id': 29010196, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711886, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29010155, 'sub_port_id': 29010197, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711887, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'Carton_gris': {'main_port_id': 29010155, 'sub_port_id': 29010198, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711888, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'autre_refus': {'main_port_id': 29010155, 'sub_port_id': 29010199, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711889, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'kraft': {'main_port_id': 29010155, 'sub_port_id': 29010200, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711890, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'cartonnette': {'main_port_id': 29010155, 'sub_port_id': 29010201, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711891, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'flou': {'main_port_id': 29010155, 'sub_port_id': 29010202, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711892, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'mal_croppe': {'main_port_id': 29010155, 'sub_port_id': 29010203, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711893, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'metal': {'main_port_id': 29010155, 'sub_port_id': 29010204, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711894, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'environnement': {'main_port_id': 29010155, 'sub_port_id': 29010205, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711895, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'papier': {'main_port_id': 29010155, 'sub_port_id': 29010206, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711896, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}, 'Carton_brun': {'main_port_id': 29010155, 'sub_port_id': 29010207, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711897, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29010196 , 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=29010155 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 (29010196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010197 , 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=29010155 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 (29010197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010198 , 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=29010155 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 (29010198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010199 , 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=29010155 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 (29010199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010200 , 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=29010155 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 (29010200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010201 , 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=29010155 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 (29010201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010202 , 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=29010155 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 (29010202) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010203 , 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=29010155 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 (29010203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010204 , 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=29010155 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 (29010204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010205 , 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=29010155 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 (29010205) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010206 , 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=29010155 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 (29010206) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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 29010207 , 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=29010155 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 (29010207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29010155) result : ((1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) 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`=29010155 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','papier','autre_refus','environnement','flou','cartonnette','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29010155 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','papier','autre_refus','environnement','flou','cartonnette','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29010155, 'sub_port_id': 29010209, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711898, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 29010155, 'sub_port_id': 29010210, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711899, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'Carton_gris': {'main_port_id': 29010155, 'sub_port_id': 29010211, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711900, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'autre_refus': {'main_port_id': 29010155, 'sub_port_id': 29010212, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711901, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'kraft': {'main_port_id': 29010155, 'sub_port_id': 29010213, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711902, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'cartonnette': {'main_port_id': 29010155, 'sub_port_id': 29010214, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711903, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'flou': {'main_port_id': 29010155, 'sub_port_id': 29010215, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711904, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'mal_croppe': {'main_port_id': 29010155, 'sub_port_id': 29010216, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711905, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'metal': {'main_port_id': 29010155, 'sub_port_id': 29010217, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711906, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'environnement': {'main_port_id': 29010155, 'sub_port_id': 29010218, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711907, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'papier': {'main_port_id': 29010155, 'sub_port_id': 29010219, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711908, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}, 'Carton_brun': {'main_port_id': 29010155, 'sub_port_id': 29010220, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19711909, 'last_updated_at': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 20, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 20, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29010220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29010207 lien utilise dans velours : https://marlene.fotonower.com/velours/29010209,29010210,29010211,29010212,29010213,29010214,29010215,29010216,29010217,29010218,29010219,29010220?tags=plastique,Teint_Dans_La_Masse,Carton_gris,autre_refus,kraft,cartonnette,flou,mal_croppe,metal,environnement,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29010155]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] map_info['map_portfolio_photo'] : {29010155: [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626, 1396709516, 1396709511, 1396709508, 1396709488, 1396709457, 1396709401, 1396708872, 1396708836, 1396708799, 1396708433, 1396708428, 1396708425, 1396708422, 1396708419]} final : False mtd_id 4302 list_pids : [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] Looping around the photos to save general results len do output : 1 /29010155. 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, '4138230') ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29010155', "{'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207}", None, None, None, None, '4138230'), ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230')] time used for this insertion : 0.021427154541015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7968518733978271 time spend to save output : 0.02192831039428711 total time spend for step 1 : 1.8187801837921143 step2:final Fri Nov 28 20:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29010155) 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 29010155 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396708433,1396708428,1396708425,1396708422,1396708419,1396708872,1396708836,1396708799,1396709516,1396709511,1396709508,1396709488,1396709457,1396709401,1396709879,1396709815,1396709750,1396709691,1396709626,1396710240,1396710236,1396710233,1396710231,1396710218,1396710573,1396710540,1396710495,1396710448); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29010155]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} new output for save of step final : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] map_info['map_portfolio_photo'] : {29010155: [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626, 1396709516, 1396709511, 1396709508, 1396709488, 1396709457, 1396709401, 1396708872, 1396708836, 1396708799, 1396708433, 1396708428, 1396708425, 1396708422, 1396708419]} final : False mtd_id 4302 list_pids : [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] Looping around the photos to save general results len do output : 14 /1396710573.Didn't retrieve data . /1396710540.Didn't retrieve data . /1396710495.Didn't retrieve data . /1396710448.Didn't retrieve data . /1396710240.Didn't retrieve data . /1396710236.Didn't retrieve data . /1396710233.Didn't retrieve data . /1396710231.Didn't retrieve data . /1396710218.Didn't retrieve data . /1396709879.Didn't retrieve data . /1396709815.Didn't retrieve data . /1396709750.Didn't retrieve data . /1396709691.Didn't retrieve data . /1396709626.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, '4138230') ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29010155', '1396710573', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710540', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710495', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710448', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710240', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710236', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710233', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710231', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396710218', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396709879', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396709815', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396709750', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396709691', '0.0', None, None, None, None, '4138230'), ('4302', '29010155', '1396709626', '0.0', None, None, None, None, '4138230')] time used for this insertion : 0.01878809928894043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06612777709960938 time spend to save output : 0.019448518753051758 total time spend for step 2 : 0.08557629585266113 step3:velours_tree Fri Nov 28 20:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29010155: [{'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207}]} input_args_next_step : {29010155: ()} output_args : {29010155: [{'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207}]} args : 29010155 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 : ({'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29010155) 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([29010155]) 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.27069091796875 time spend to save output : 6.031990051269531e-05 total time spend for step 3 : 0.2707512378692627 step4:send_mail_cod Fri Nov 28 20:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} input_args_next_step : {1396710573: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710573 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710540 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710495 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710448 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710240 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710236 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710233 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710231 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396710218 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396709879 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396709815 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396709750 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396709691 depend.output_id : 0 input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ()} output_args : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',)} args : 1396709626 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 : {29010155: [{'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207}]} input_args_next_step : {1396710573: ('0.0',), 1396710540: ('0.0',), 1396710495: ('0.0',), 1396710448: ('0.0',), 1396710240: ('0.0',), 1396710236: ('0.0',), 1396710233: ('0.0',), 1396710231: ('0.0',), 1396710218: ('0.0',), 1396709879: ('0.0',), 1396709815: ('0.0',), 1396709750: ('0.0',), 1396709691: ('0.0',), 1396709626: ('0.0',), 29010155: ()} output_args : {29010155: [{'plastique': 29010196, 'Teint_Dans_La_Masse': 29010197, 'Carton_gris': 29010198, 'autre_refus': 29010199, 'kraft': 29010200, 'cartonnette': 29010201, 'flou': 29010202, 'mal_croppe': 29010203, 'metal': 29010204, 'environnement': 29010205, 'papier': 29010206, 'Carton_brun': 29010207}]} args : 29010155 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 :15, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29010155) 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_view ph WHERE photo_id IN (1396710573,1396710540,1396710495,1396710448,1396710240,1396710236,1396710233,1396710231,1396710218,1396709879,1396709815,1396709750,1396709691,1396709626) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396709626 begin to download photo : 1396709815 begin to download photo : 1396710231 begin to download photo : 1396710240 begin to download photo : 1396710540 download finish for photo 1396710231 begin to download photo : 1396710233 download finish for photo 1396709815 begin to download photo : 1396709879 download finish for photo 1396710240 begin to download photo : 1396710448 download finish for photo 1396709626 begin to download photo : 1396709691 download finish for photo 1396710540 begin to download photo : 1396710573 download finish for photo 1396710233 begin to download photo : 1396710236 download finish for photo 1396709879 begin to download photo : 1396710218 download finish for photo 1396710573 download finish for photo 1396710448 begin to download photo : 1396710495 download finish for photo 1396709691 begin to download photo : 1396709750 download finish for photo 1396710236 download finish for photo 1396710218 download finish for photo 1396710495 download finish for photo 1396709750 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290101961764356820/ imagette290101991764356820/ imagette290102001764356820/ imagette290102011764356820/ imagette290102021764356820/ imagette290102031764356820/ imagette290102041764356820/ imagette290101971764356820/ imagette290101981764356820/ imagette290102071764356820/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29010155_28-11-2025_20_07_00.pdf 29010196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290101961764356820 29010199 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290101991764356820 29010200 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102001764356820 29010201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102011764356820 29010202 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102021764356820 29010203 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102031764356820 29010204 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102041764356820 29010197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290101971764356820 29010198 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290101981764356820 29010207 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290102071764356820 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29010155 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29010209,29010210,29010211,29010212,29010213,29010214,29010215,29010216,29010217,29010218,29010219,29010220?tags=plastique,Teint_Dans_La_Masse,Carton_gris,autre_refus,kraft,cartonnette,flou,mal_croppe,metal,environnement,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1396710573] : ('0.0',) no score found for photo 1396710573 We are sending mail with results at report@fotonower.com args[1396710540] : ('0.0',) no score found for photo 1396710540 We are sending mail with results at report@fotonower.com args[1396710495] : ('0.0',) no score found for photo 1396710495 We are sending mail with results at report@fotonower.com args[1396710448] : ('0.0',) no score found for photo 1396710448 We are sending mail with results at report@fotonower.com args[1396710240] : ('0.0',) no score found for photo 1396710240 We are sending mail with results at report@fotonower.com args[1396710236] : ('0.0',) no score found for photo 1396710236 We are sending mail with results at report@fotonower.com args[1396710233] : ('0.0',) no score found for photo 1396710233 We are sending mail with results at report@fotonower.com args[1396710231] : ('0.0',) no score found for photo 1396710231 We are sending mail with results at report@fotonower.com args[1396710218] : ('0.0',) no score found for photo 1396710218 We are sending mail with results at report@fotonower.com args[1396709879] : ('0.0',) no score found for photo 1396709879 We are sending mail with results at report@fotonower.com args[1396709815] : ('0.0',) no score found for photo 1396709815 We are sending mail with results at report@fotonower.com args[1396709750] : ('0.0',) no score found for photo 1396709750 We are sending mail with results at report@fotonower.com args[1396709691] : ('0.0',) no score found for photo 1396709691 We are sending mail with results at report@fotonower.com args[1396709626] : ('0.0',) no score found for photo 1396709626 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010155 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_P29010155_28-11-2025_20_07_00.pdf results_Auto_P29010155_28-11-2025_20_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29010155_28-11-2025_20_07_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29010155','results_Auto_P29010155_28-11-2025_20_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29010155_28-11-2025_20_07_00.pdf','pdf','','0.13','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29010155]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] map_info['map_portfolio_photo'] : {29010155: [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626, 1396709516, 1396709511, 1396709508, 1396709488, 1396709457, 1396709401, 1396708872, 1396708836, 1396708799, 1396708433, 1396708428, 1396708425, 1396708422, 1396708419]} final : False mtd_id 4302 list_pids : [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] 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, '4138230') ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29010155', '1396710573', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230')] time used for this insertion : 0.01968979835510254 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8190219402313232 time spend to save output : 0.020005464553833008 total time spend for step 4 : 1.8390274047851562 step5:split_time_score Fri Nov 28 20:07:02 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 : ['29010155'] 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 : [('29010155',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29010155) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396710540: {'path': 'temp/1764356820_953039_1396710540_b124ef82293d835bd7034d83afd0b919.jpg', 'extension': 'jpg'}, 1396710573: {'path': 'temp/1764356820_953039_1396710573_a6791fa1fa49c13e0febbc74f35008d7.jpg', 'extension': 'jpg'}, 1396710231: {'path': 'temp/1764356820_953039_1396710231_fb471444c823eb2472674bb2df591fb2.jpg', 'extension': 'jpg'}, 1396710233: {'path': 'temp/1764356820_953039_1396710233_a5f038f261cf0c72bc14a4b0a7bf2807.jpg', 'extension': 'jpg'}, 1396710236: {'path': 'temp/1764356820_953039_1396710236_07df2d6fd437a4bc2b540ce79f30b543.jpg', 'extension': 'jpg'}, 1396709815: {'path': 'temp/1764356820_953039_1396709815_2ebbcfcd97bfb6d9e18af5c8c85fa71b.jpg', 'extension': 'jpg'}, 1396709879: {'path': 'temp/1764356820_953039_1396709879_ae18f10e6612c908856b3e704e30294a.jpg', 'extension': 'jpg'}, 1396710218: {'path': 'temp/1764356820_953039_1396710218_92d76d3cc5acbb68e2bfbe9f3ae9d51d.jpg', 'extension': 'jpg'}, 1396710240: {'path': 'temp/1764356820_953039_1396710240_056e9a6b7f70ecc189369f9dd83a56fe.jpg', 'extension': 'jpg'}, 1396710448: {'path': 'temp/1764356820_953039_1396710448_1c00da140e14dc96fb1467f25f5248b6.jpg', 'extension': 'jpg'}, 1396710495: {'path': 'temp/1764356820_953039_1396710495_4c0f3e3c0882792d181c80536777b16a.jpg', 'extension': 'jpg'}, 1396709626: {'path': 'temp/1764356820_953039_1396709626_8fe0c130e262dcd90488f1a070be0561.jpg', 'extension': 'jpg'}, 1396709691: {'path': 'temp/1764356820_953039_1396709691_562a1a1c1427cf76c5b15fa3ba4be3b5.jpg', 'extension': 'jpg'}, 1396709750: {'path': 'temp/1764356820_953039_1396709750_693be7db8b993046b54c80a1fd479ade.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 = 29010155; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29010155 group by h (('20', 28),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29010155 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 (29010155) 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 (29010155) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 29010155 Nombre de photos uploadées : 28 / 23040 (0%) 28112025 29010155 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 28112025 29010155 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1396708433, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/83dc61f2a9758d3bf6439e010c26ec8a.jpg', 'username': None, 'uploaded_at': 1764356467, 'text': 'image_28112025_20_00_04_10138.jpg'}, {'photo_id': 1396708428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/857093fbdb0e821fb8ba90ebba030694.jpg', 'username': None, 'uploaded_at': 1764356467, 'text': 'image_28112025_20_00_14_10137.jpg'}, {'photo_id': 1396708425, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8c1a5b2e09ea032361cb709dc258ed83.jpg', 'username': None, 'uploaded_at': 1764356467, 'text': 'image_28112025_20_00_25_10135.jpg'}, {'photo_id': 1396708422, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1cfe413fb79a43087a3ef42bbb1961c4.jpg', 'username': None, 'uploaded_at': 1764356467, 'text': 'image_28112025_20_00_34_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.9604644775390625e-06 elapsed_time : order_list_meta_photo_and_scores 1.7404556274414062e-05 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015523433685302734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29010155, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2658013,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24947595596313477 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= 2658013 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17865890, '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_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17865891, '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_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17865892, '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_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28976505, 'dashboard_result_id': 17865893, '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_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28978093, 'dashboard_result_id': 17865894, '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_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28978470, 'dashboard_result_id': 17865895, '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_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28978907, 'dashboard_result_id': 17865896, '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_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28979483, 'dashboard_result_id': 17865897, '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_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28979969, 'dashboard_result_id': 17865898, '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_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28980449, 'dashboard_result_id': 17865899, '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_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28980831, 'dashboard_result_id': 17865900, '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_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28981438, 'dashboard_result_id': 17865901, '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_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28982151, 'dashboard_result_id': 17865902, '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_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28982326, 'dashboard_result_id': 17865903, '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_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28982677, 'dashboard_result_id': 17865904, '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_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28983973, 'dashboard_result_id': 17865905, '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_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28984352, 'dashboard_result_id': 17865906, '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_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28984847, 'dashboard_result_id': 17865907, '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_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28985168, 'dashboard_result_id': 17865909, '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_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28985595, 'dashboard_result_id': 17865910, '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_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28987565, 'dashboard_result_id': 17865911, '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_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28987843, 'dashboard_result_id': 17865912, '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_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28988243, 'dashboard_result_id': 17865914, '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_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28989138, 'dashboard_result_id': 17865915, '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_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28989473, 'dashboard_result_id': 17865916, '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_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28989983, 'dashboard_result_id': 17865917, '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_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28990586, 'dashboard_result_id': 17865919, '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_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28991027, 'dashboard_result_id': 17865920, '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_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28991604, 'dashboard_result_id': 17865921, '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_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28992036, 'dashboard_result_id': 17865922, '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_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28992895, 'dashboard_result_id': 17865923, '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_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28993222, 'dashboard_result_id': 17865924, '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_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28993590, 'dashboard_result_id': 17865926, '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_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28996997, 'dashboard_result_id': 17865927, '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_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28997465, 'dashboard_result_id': 17865928, '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_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28997995, 'dashboard_result_id': 17865929, '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_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28998473, 'dashboard_result_id': 17865930, '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_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 28999176, 'dashboard_result_id': 17865931, '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_P28999176_28-11-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29000056, 'dashboard_result_id': 17865932, '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_P29000056_28-11-2025_15_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29000108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29000110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000119, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29000671, 'dashboard_result_id': 17865933, '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_P29000671_28-11-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29000694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29000695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000705, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29001341, 'dashboard_result_id': 17865934, '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_P29001341_28-11-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001386, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29001853, 'dashboard_result_id': 17865935, '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_P29001853_28-11-2025_16_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001912, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29002544, 'dashboard_result_id': 17865936, '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_P29002544_28-11-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29002548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29002549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29002550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29002551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29002552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29002553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29002554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29002555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29002556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29002557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29002558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29002559, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29003060, 'dashboard_result_id': 17865937, '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_P29003060_28-11-2025_16_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003136, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29003540, 'dashboard_result_id': 17865938, '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_P29003540_28-11-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003600, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29004071, 'dashboard_result_id': 17865939, '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_P29004071_28-11-2025_17_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004140, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29004687, 'dashboard_result_id': 17865940, '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_P29004687_28-11-2025_18_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004707, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29005821, 'dashboard_result_id': 17865941, '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_P29005821_28-11-2025_18_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29005833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29005834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29005835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29005836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29005837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29005839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29005840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29005841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29005842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29005844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29005845, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29006343, 'dashboard_result_id': 17865942, '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_P29006343_28-11-2025_18_33_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29006362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006373, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29006796, 'dashboard_result_id': 17865943, '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_P29006796_28-11-2025_18_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29006827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006829, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29007225, 'dashboard_result_id': 17865944, '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_P29007225_28-11-2025_19_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29007246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007248, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29007701, 'dashboard_result_id': 17865945, '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_P29007701_28-11-2025_19_17_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29007729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007740, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29008365, 'dashboard_result_id': 17865946, '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_P29008365_28-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29008374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29008375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29008376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29008377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29008378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29008379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29008380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29008381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29008382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29008383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29008384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29008385, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29009034, 'dashboard_result_id': 17865947, '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_P29009034_28-11-2025_19_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009071, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29009514, 'dashboard_result_id': 17865948, '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_P29009514_28-11-2025_20_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009551, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2670702, 'mtr_portfolio_id': 29010155, 'dashboard_result_id': 17865949, '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_P29010155_28-11-2025_20_03_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29010196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29010197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29010198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29010199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29010200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29010201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29010202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29010203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29010204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29010205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29010206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29010207, '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 = 28975051 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': 4133072, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 6, 12), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 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_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2670702 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`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865890, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 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': 4133073, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 6, 12, 30), 'result': '0.028260757334550402', 'result_long': None, 'result_double': None}] Qualite : 0.028260757334550402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 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_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2670702 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`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865891, 0.028260757334550402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 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': 4133074, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 28), 'result': '0.0425580038967795', 'result_long': None, 'result_double': None}] Qualite : 0.0425580038967795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 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_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2670702 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`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865892, 0.0425580038967795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28976505 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': 4133075, 'mtr_portfolio_id': 28976505, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 59), 'result': '0.0685509832194652', 'result_long': None, 'result_double': None}] Qualite : 0.0685509832194652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976505 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_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}" where mtr_portfolio_id = 28976505 and dashboard_run_id = 2670702 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`=28976505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865893, 0.0685509832194652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 = 28978093 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': 4133076, 'mtr_portfolio_id': 28978093, 'created_at': datetime.datetime(2025, 11, 28, 6, 14, 31), 'result': '0.04924462142012214', 'result_long': None, 'result_double': None}] Qualite : 0.04924462142012214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978093 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_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}" where mtr_portfolio_id = 28978093 and dashboard_run_id = 2670702 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`=28978093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865894, 0.04924462142012214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 = 28978470 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': 4133077, 'mtr_portfolio_id': 28978470, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 30), 'result': '0.04236146457551967', 'result_long': None, 'result_double': None}] Qualite : 0.04236146457551967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978470 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_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}" where mtr_portfolio_id = 28978470 and dashboard_run_id = 2670702 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`=28978470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865895, 0.04236146457551967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 = 28978907 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': 4133078, 'mtr_portfolio_id': 28978907, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 56), 'result': '0.0449972590407434', 'result_long': None, 'result_double': None}] Qualite : 0.0449972590407434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978907 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_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}" where mtr_portfolio_id = 28978907 and dashboard_run_id = 2670702 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`=28978907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865896, 0.0449972590407434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 = 28979483 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': 4133079, 'mtr_portfolio_id': 28979483, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 12), 'result': '0.04504699440570224', 'result_long': None, 'result_double': None}] Qualite : 0.04504699440570224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979483 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_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}" where mtr_portfolio_id = 28979483 and dashboard_run_id = 2670702 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`=28979483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865897, 0.04504699440570224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 = 28979969 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': 4133080, 'mtr_portfolio_id': 28979969, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 59), 'result': '0.0411389730407871', 'result_long': None, 'result_double': None}] Qualite : 0.0411389730407871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979969 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_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}" where mtr_portfolio_id = 28979969 and dashboard_run_id = 2670702 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`=28979969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865898, 0.0411389730407871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 = 28980449 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': 4133081, 'mtr_portfolio_id': 28980449, 'created_at': datetime.datetime(2025, 11, 28, 6, 17, 30), 'result': '0.04286148862316855', 'result_long': None, 'result_double': None}] Qualite : 0.04286148862316855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980449 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_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}" where mtr_portfolio_id = 28980449 and dashboard_run_id = 2670702 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`=28980449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865899, 0.04286148862316855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, '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 = 28980831 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': 4133082, 'mtr_portfolio_id': 28980831, 'created_at': datetime.datetime(2025, 11, 28, 6, 18), 'result': '0.051254198999725026', 'result_long': None, 'result_double': None}] Qualite : 0.051254198999725026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980831 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_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}" where mtr_portfolio_id = 28980831 and dashboard_run_id = 2670702 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`=28980831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865900, 0.051254198999725026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, '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 = 28981438 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': 4133083, 'mtr_portfolio_id': 28981438, 'created_at': datetime.datetime(2025, 11, 28, 6, 18, 29), 'result': '0.05951098135541105', 'result_long': None, 'result_double': None}] Qualite : 0.05951098135541105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28981438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28981438 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_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}" where mtr_portfolio_id = 28981438 and dashboard_run_id = 2670702 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`=28981438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865901, 0.05951098135541105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, '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 = 28982151 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': 4133084, 'mtr_portfolio_id': 28982151, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 59), 'result': '0.06720476090565872', 'result_long': None, 'result_double': None}] Qualite : 0.06720476090565872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982151 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_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}" where mtr_portfolio_id = 28982151 and dashboard_run_id = 2670702 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`=28982151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865902, 0.06720476090565872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, '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 = 28982326 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': 4133085, 'mtr_portfolio_id': 28982326, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 29), 'result': '0.03553578264141378', 'result_long': None, 'result_double': None}] Qualite : 0.03553578264141378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982326 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_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}" where mtr_portfolio_id = 28982326 and dashboard_run_id = 2670702 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`=28982326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865903, 0.03553578264141378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, '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 = 28982677 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': 4133086, 'mtr_portfolio_id': 28982677, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 59), 'result': '0.049379925005906836', 'result_long': None, 'result_double': None}] Qualite : 0.049379925005906836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982677 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_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}" where mtr_portfolio_id = 28982677 and dashboard_run_id = 2670702 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`=28982677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865904, 0.049379925005906836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, '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 = 28983973 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': 4133087, 'mtr_portfolio_id': 28983973, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 11), 'result': '0.05728450201263826', 'result_long': None, 'result_double': None}] Qualite : 0.05728450201263826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28983973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28983973 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_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}" where mtr_portfolio_id = 28983973 and dashboard_run_id = 2670702 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`=28983973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865905, 0.05728450201263826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, '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 = 28984352 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': 4133088, 'mtr_portfolio_id': 28984352, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 30), 'result': '0.048907210698158926', 'result_long': None, 'result_double': None}] Qualite : 0.048907210698158926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984352 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_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}" where mtr_portfolio_id = 28984352 and dashboard_run_id = 2670702 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`=28984352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865906, 0.048907210698158926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, '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 = 28984847 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': 4133002, 'mtr_portfolio_id': 28984847, 'created_at': datetime.datetime(2025, 11, 28, 5, 47, 30), 'result': '0.041799832911874515', 'result_long': None, 'result_double': None}] Qualite : 0.041799832911874515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984847 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_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}" where mtr_portfolio_id = 28984847 and dashboard_run_id = 2670702 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`=28984847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865907, 0.041799832911874515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, '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 = 28985168 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': 4133176, 'mtr_portfolio_id': 28985168, 'created_at': datetime.datetime(2025, 11, 28, 6, 3, 28), 'result': '0.05643612918517163', 'result_long': None, 'result_double': None}] Qualite : 0.05643612918517163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985168 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985168 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_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}" where mtr_portfolio_id = 28985168 and dashboard_run_id = 2670702 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`=28985168 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865909, 0.05643612918517163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, '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 = 28985595 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': 4133255, 'mtr_portfolio_id': 28985595, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 31), 'result': '0.04188950702097101', 'result_long': None, 'result_double': None}] Qualite : 0.04188950702097101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985595 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_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}" where mtr_portfolio_id = 28985595 and dashboard_run_id = 2670702 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`=28985595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865910, 0.04188950702097101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, '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 = 28987565 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': 4133704, 'mtr_portfolio_id': 28987565, 'created_at': datetime.datetime(2025, 11, 28, 8, 32, 59), 'result': '0.06687309664848937', 'result_long': None, 'result_double': None}] Qualite : 0.06687309664848937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28987565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28987565 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_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, 'pht': 3726}}" where mtr_portfolio_id = 28987565 and dashboard_run_id = 2670702 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`=28987565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865911, 0.06687309664848937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, '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 = 28987843 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': 4133736, 'mtr_portfolio_id': 28987843, 'created_at': datetime.datetime(2025, 11, 28, 8, 48, 59), 'result': '0.07399606651833444', 'result_long': None, 'result_double': None}] Qualite : 0.07399606651833444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28987843 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28987843 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_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, 'pht': 3726}}" where mtr_portfolio_id = 28987843 and dashboard_run_id = 2670702 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`=28987843 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865912, 0.07399606651833444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, '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 = 28988243 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': 4133799, 'mtr_portfolio_id': 28988243, 'created_at': datetime.datetime(2025, 11, 28, 9, 8, 32), 'result': '0.05704139300742374', 'result_long': None, 'result_double': None}] Qualite : 0.05704139300742374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28988243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28988243 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_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, 'pht': 3726}}" where mtr_portfolio_id = 28988243 and dashboard_run_id = 2670702 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`=28988243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865914, 0.05704139300742374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, '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 = 28989138 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': 4133933, 'mtr_portfolio_id': 28989138, 'created_at': datetime.datetime(2025, 11, 28, 9, 46, 59), 'result': '0.07763768014744536', 'result_long': None, 'result_double': None}] Qualite : 0.07763768014744536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989138 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_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, 'pht': 3726}}" where mtr_portfolio_id = 28989138 and dashboard_run_id = 2670702 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`=28989138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865915, 0.07763768014744536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, '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 = 28989473 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': 4133995, 'mtr_portfolio_id': 28989473, 'created_at': datetime.datetime(2025, 11, 28, 10, 2, 58), 'result': '0.07665721747999489', 'result_long': None, 'result_double': None}] Qualite : 0.07665721747999489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989473 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_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, 'pht': 3726}}" where mtr_portfolio_id = 28989473 and dashboard_run_id = 2670702 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`=28989473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865916, 0.07665721747999489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, '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 = 28989983 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': 4134079, 'mtr_portfolio_id': 28989983, 'created_at': datetime.datetime(2025, 11, 28, 10, 18, 58), 'result': '0.0385895433056228', 'result_long': None, 'result_double': None}] Qualite : 0.0385895433056228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989983 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_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, 'pht': 3726}}" where mtr_portfolio_id = 28989983 and dashboard_run_id = 2670702 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`=28989983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865917, 0.0385895433056228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, '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 = 28990586 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': 4134167, 'mtr_portfolio_id': 28990586, 'created_at': datetime.datetime(2025, 11, 28, 10, 33, 1), 'result': '0.04749344845561701', 'result_long': None, 'result_double': None}] Qualite : 0.04749344845561701 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28990586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28990586 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_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, 'pht': 3726}}" where mtr_portfolio_id = 28990586 and dashboard_run_id = 2670702 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`=28990586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865919, 0.04749344845561701, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, '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 = 28991027 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': 4134276, 'mtr_portfolio_id': 28991027, 'created_at': datetime.datetime(2025, 11, 28, 10, 48, 58), 'result': '0.023236876353411724', 'result_long': None, 'result_double': None}] Qualite : 0.023236876353411724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28991027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28991027 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_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, 'pht': 3726}}" where mtr_portfolio_id = 28991027 and dashboard_run_id = 2670702 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`=28991027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865920, 0.023236876353411724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, '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 = 28991604 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': 4134382, 'mtr_portfolio_id': 28991604, 'created_at': datetime.datetime(2025, 11, 28, 11, 3, 28), 'result': '0.03404421410112528', 'result_long': None, 'result_double': None}] Qualite : 0.03404421410112528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28991604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28991604 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_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, 'pht': 3726}}" where mtr_portfolio_id = 28991604 and dashboard_run_id = 2670702 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`=28991604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865921, 0.03404421410112528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, '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 = 28992036 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': 4134476, 'mtr_portfolio_id': 28992036, 'created_at': datetime.datetime(2025, 11, 28, 11, 16, 58), 'result': '0.052226929923279', 'result_long': None, 'result_double': None}] Qualite : 0.052226929923279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28992036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28992036 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_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, 'pht': 3726}}" where mtr_portfolio_id = 28992036 and dashboard_run_id = 2670702 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`=28992036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865922, 0.052226929923279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, '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 = 28992895 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': 4134634, 'mtr_portfolio_id': 28992895, 'created_at': datetime.datetime(2025, 11, 28, 11, 32, 58), 'result': '0.04281083310074174', 'result_long': None, 'result_double': None}] Qualite : 0.04281083310074174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28992895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28992895 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_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, 'pht': 3726}}" where mtr_portfolio_id = 28992895 and dashboard_run_id = 2670702 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`=28992895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865923, 0.04281083310074174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, '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 = 28993222 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': 4134701, 'mtr_portfolio_id': 28993222, 'created_at': datetime.datetime(2025, 11, 28, 11, 48, 58), 'result': '0.07686825125162969', 'result_long': None, 'result_double': None}] Qualite : 0.07686825125162969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28993222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28993222 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_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, 'pht': 3726}}" where mtr_portfolio_id = 28993222 and dashboard_run_id = 2670702 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`=28993222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865924, 0.07686825125162969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, '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 = 28993590 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': 4134826, 'mtr_portfolio_id': 28993590, 'created_at': datetime.datetime(2025, 11, 28, 12, 8, 59), 'result': '0.053643358973434724', 'result_long': None, 'result_double': None}] Qualite : 0.053643358973434724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28993590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28993590 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_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, 'pht': 3726}}" where mtr_portfolio_id = 28993590 and dashboard_run_id = 2670702 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`=28993590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865926, 0.053643358973434724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, '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 = 28996997 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': 4135311, 'mtr_portfolio_id': 28996997, 'created_at': datetime.datetime(2025, 11, 28, 14, 16, 57), 'result': '0.05902734203128293', 'result_long': None, 'result_double': None}] Qualite : 0.05902734203128293 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28996997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28996997 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_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, 'pht': 3726}}" where mtr_portfolio_id = 28996997 and dashboard_run_id = 2670702 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`=28996997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865927, 0.05902734203128293, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, '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 = 28997465 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': 4135350, 'mtr_portfolio_id': 28997465, 'created_at': datetime.datetime(2025, 11, 28, 14, 32, 58), 'result': '0.041575361349592894', 'result_long': None, 'result_double': None}] Qualite : 0.041575361349592894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28997465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28997465 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_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, 'pht': 3726}}" where mtr_portfolio_id = 28997465 and dashboard_run_id = 2670702 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`=28997465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865928, 0.041575361349592894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, '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 = 28997995 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': 4135389, 'mtr_portfolio_id': 28997995, 'created_at': datetime.datetime(2025, 11, 28, 14, 47), 'result': '0.045623326421818454', 'result_long': None, 'result_double': None}] Qualite : 0.045623326421818454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28997995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28997995 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_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, 'pht': 3726}}" where mtr_portfolio_id = 28997995 and dashboard_run_id = 2670702 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`=28997995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865929, 0.045623326421818454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, '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 = 28998473 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': 4135426, 'mtr_portfolio_id': 28998473, 'created_at': datetime.datetime(2025, 11, 28, 15, 2, 58), 'result': '0.06167724951227128', 'result_long': None, 'result_double': None}] Qualite : 0.06167724951227128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28998473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28998473 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_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, 'pht': 3726}}" where mtr_portfolio_id = 28998473 and dashboard_run_id = 2670702 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`=28998473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865930, 0.06167724951227128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, '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 = 28999176 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': 4135547, 'mtr_portfolio_id': 28999176, 'created_at': datetime.datetime(2025, 11, 28, 15, 18, 58), 'result': '0.042752982904446166', 'result_long': None, 'result_double': None}] Qualite : 0.042752982904446166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28999176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28999176 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_P28999176_28-11-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, 'pht': 3726}}" where mtr_portfolio_id = 28999176 and dashboard_run_id = 2670702 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`=28999176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865931, 0.042752982904446166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, '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 = 29000056 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': 4135742, 'mtr_portfolio_id': 29000056, 'created_at': datetime.datetime(2025, 11, 28, 15, 33), 'result': '0.033115583586697125', 'result_long': None, 'result_double': None}] Qualite : 0.033115583586697125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29000056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29000056_28-11-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29000056 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_P29000056_28-11-2025_15_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29000108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29000110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000119, 'pht': 3726}}" where mtr_portfolio_id = 29000056 and dashboard_run_id = 2670702 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`=29000056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865932, 0.033115583586697125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29000056_28-11-2025_15_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29000108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29000110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000119, '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 = 29000671 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': 4135899, 'mtr_portfolio_id': 29000671, 'created_at': datetime.datetime(2025, 11, 28, 15, 48, 57), 'result': '0.03212014365741818', 'result_long': None, 'result_double': None}] Qualite : 0.03212014365741818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29000671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29000671_28-11-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29000671 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_P29000671_28-11-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29000694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29000695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000705, 'pht': 3726}}" where mtr_portfolio_id = 29000671 and dashboard_run_id = 2670702 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`=29000671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865933, 0.03212014365741818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29000671_28-11-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29000694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29000695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29000696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29000697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29000698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29000699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29000700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29000701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29000702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29000703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29000704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29000705, '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 = 29001341 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': 4136083, 'mtr_portfolio_id': 29001341, 'created_at': datetime.datetime(2025, 11, 28, 16, 2, 59), 'result': '0.08106718193668683', 'result_long': None, 'result_double': None}] Qualite : 0.08106718193668683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29001341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29001341_28-11-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29001341 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_P29001341_28-11-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001386, 'pht': 3726}}" where mtr_portfolio_id = 29001341 and dashboard_run_id = 2670702 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`=29001341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865934, 0.08106718193668683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29001341_28-11-2025_16_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001386, '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 = 29001853 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': 4136256, 'mtr_portfolio_id': 29001853, 'created_at': datetime.datetime(2025, 11, 28, 16, 16, 58), 'result': '0.0676404834275883', 'result_long': None, 'result_double': None}] Qualite : 0.0676404834275883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29001853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29001853_28-11-2025_16_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29001853 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_P29001853_28-11-2025_16_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001912, 'pht': 3726}}" where mtr_portfolio_id = 29001853 and dashboard_run_id = 2670702 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`=29001853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865935, 0.0676404834275883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29001853_28-11-2025_16_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29001901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29001902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29001903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29001904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29001905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29001906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29001907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29001908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29001909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29001910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29001911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29001912, '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 = 29002544 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': 4136482, 'mtr_portfolio_id': 29002544, 'created_at': datetime.datetime(2025, 11, 28, 16, 32, 59), 'result': '0.03494917619151868', 'result_long': None, 'result_double': None}] Qualite : 0.03494917619151868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29002544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29002544_28-11-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29002544 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_P29002544_28-11-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29002548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29002549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29002550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29002551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29002552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29002553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29002554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29002555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29002556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29002557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29002558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29002559, 'pht': 3726}}" where mtr_portfolio_id = 29002544 and dashboard_run_id = 2670702 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`=29002544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865936, 0.03494917619151868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29002544_28-11-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29002548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29002549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29002550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29002551, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29002552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29002553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29002554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29002555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29002556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29002557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29002558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29002559, '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 = 29003060 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': 4136610, 'mtr_portfolio_id': 29003060, 'created_at': datetime.datetime(2025, 11, 28, 16, 46, 58), 'result': '0.06587331958096594', 'result_long': None, 'result_double': None}] Qualite : 0.06587331958096594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29003060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29003060_28-11-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29003060 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_P29003060_28-11-2025_16_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003136, 'pht': 3726}}" where mtr_portfolio_id = 29003060 and dashboard_run_id = 2670702 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`=29003060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865937, 0.06587331958096594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29003060_28-11-2025_16_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003136, '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 = 29003540 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': 4136733, 'mtr_portfolio_id': 29003540, 'created_at': datetime.datetime(2025, 11, 28, 17, 3), 'result': '0.04470208831910933', 'result_long': None, 'result_double': None}] Qualite : 0.04470208831910933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29003540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29003540_28-11-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29003540 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_P29003540_28-11-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003600, 'pht': 3726}}" where mtr_portfolio_id = 29003540 and dashboard_run_id = 2670702 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`=29003540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865938, 0.04470208831910933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29003540_28-11-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29003586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29003588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29003591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29003592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29003593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29003594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29003595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29003596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29003597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29003598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29003599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29003600, '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 = 29004071 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': 4136831, 'mtr_portfolio_id': 29004071, 'created_at': datetime.datetime(2025, 11, 28, 17, 18, 59), 'result': '0.031982982297698526', 'result_long': None, 'result_double': None}] Qualite : 0.031982982297698526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29004071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29004071_28-11-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29004071 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_P29004071_28-11-2025_17_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004140, 'pht': 3726}}" where mtr_portfolio_id = 29004071 and dashboard_run_id = 2670702 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`=29004071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865939, 0.031982982297698526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29004071_28-11-2025_17_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004140, '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 = 29004687 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': 4136915, 'mtr_portfolio_id': 29004687, 'created_at': datetime.datetime(2025, 11, 28, 18, 2, 59), 'result': '0.04420917040121444', 'result_long': None, 'result_double': None}] Qualite : 0.04420917040121444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29004687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29004687_28-11-2025_18_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29004687 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_P29004687_28-11-2025_18_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004707, 'pht': 3726}}" where mtr_portfolio_id = 29004687 and dashboard_run_id = 2670702 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`=29004687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865940, 0.04420917040121444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29004687_28-11-2025_18_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29004696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29004697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29004698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29004699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29004700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29004701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29004702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29004703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29004704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29004705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29004706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29004707, '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 = 29005821 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': 4137201, 'mtr_portfolio_id': 29005821, 'created_at': datetime.datetime(2025, 11, 28, 18, 18, 57), 'result': '0.06349882908685124', 'result_long': None, 'result_double': None}] Qualite : 0.06349882908685124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29005821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29005821_28-11-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29005821 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_P29005821_28-11-2025_18_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29005833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29005834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29005835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29005836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29005837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29005839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29005840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29005841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29005842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29005844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29005845, 'pht': 3726}}" where mtr_portfolio_id = 29005821 and dashboard_run_id = 2670702 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`=29005821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865941, 0.06349882908685124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29005821_28-11-2025_18_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29005833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29005834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29005835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29005836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29005837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29005838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29005839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29005840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29005841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29005842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29005844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29005845, '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 = 29006343 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': 4137299, 'mtr_portfolio_id': 29006343, 'created_at': datetime.datetime(2025, 11, 28, 18, 33, 28), 'result': '0.06687505934873493', 'result_long': None, 'result_double': None}] Qualite : 0.06687505934873493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29006343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29006343_28-11-2025_18_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29006343 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_P29006343_28-11-2025_18_33_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29006362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006373, 'pht': 3726}}" where mtr_portfolio_id = 29006343 and dashboard_run_id = 2670702 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`=29006343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865942, 0.06687505934873493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29006343_28-11-2025_18_33_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29006362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006373, '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 = 29006796 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': 4137355, 'mtr_portfolio_id': 29006796, 'created_at': datetime.datetime(2025, 11, 28, 18, 47, 1), 'result': '0.030829283030517518', 'result_long': None, 'result_double': None}] Qualite : 0.030829283030517518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29006796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29006796_28-11-2025_18_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29006796 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_P29006796_28-11-2025_18_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29006827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006829, 'pht': 3726}}" where mtr_portfolio_id = 29006796 and dashboard_run_id = 2670702 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`=29006796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865943, 0.030829283030517518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29006796_28-11-2025_18_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29006818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29006819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29006820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29006821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29006822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29006823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29006824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29006825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29006826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29006827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29006828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29006829, '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 = 29007225 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': 4137415, 'mtr_portfolio_id': 29007225, 'created_at': datetime.datetime(2025, 11, 28, 19, 3, 29), 'result': '0.04389483693978071', 'result_long': None, 'result_double': None}] Qualite : 0.04389483693978071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29007225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29007225_28-11-2025_19_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29007225 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_P29007225_28-11-2025_19_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29007246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007248, 'pht': 3726}}" where mtr_portfolio_id = 29007225 and dashboard_run_id = 2670702 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`=29007225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865944, 0.04389483693978071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29007225_28-11-2025_19_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29007246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007248, '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 = 29007701 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': 4137507, 'mtr_portfolio_id': 29007701, 'created_at': datetime.datetime(2025, 11, 28, 19, 17, 1), 'result': '0.05186513853880734', 'result_long': None, 'result_double': None}] Qualite : 0.05186513853880734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29007701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29007701_28-11-2025_19_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29007701 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_P29007701_28-11-2025_19_17_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29007729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007740, 'pht': 3726}}" where mtr_portfolio_id = 29007701 and dashboard_run_id = 2670702 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`=29007701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865945, 0.05186513853880734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29007701_28-11-2025_19_17_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29007729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29007730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29007731, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29007732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29007733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29007734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29007735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29007736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29007737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29007738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29007739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29007740, '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 = 29008365 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': 4137665, 'mtr_portfolio_id': 29008365, 'created_at': datetime.datetime(2025, 11, 28, 19, 32, 57), 'result': '0.04252306403876519', 'result_long': None, 'result_double': None}] Qualite : 0.04252306403876519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29008365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29008365_28-11-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29008365 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_P29008365_28-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29008374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29008375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29008376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29008377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29008378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29008379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29008380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29008381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29008382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29008383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29008384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29008385, 'pht': 3726}}" where mtr_portfolio_id = 29008365 and dashboard_run_id = 2670702 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`=29008365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865946, 0.04252306403876519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29008365_28-11-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29008374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29008375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29008376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29008377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29008378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29008379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29008380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29008381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29008382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29008383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29008384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29008385, '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 = 29009034 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': 4137850, 'mtr_portfolio_id': 29009034, 'created_at': datetime.datetime(2025, 11, 28, 19, 46, 58), 'result': '0.03903751444923001', 'result_long': None, 'result_double': None}] Qualite : 0.03903751444923001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29009034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29009034_28-11-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29009034 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_P29009034_28-11-2025_19_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009071, 'pht': 3726}}" where mtr_portfolio_id = 29009034 and dashboard_run_id = 2670702 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`=29009034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865947, 0.03903751444923001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29009034_28-11-2025_19_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009071, '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 = 29009514 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': 4138028, 'mtr_portfolio_id': 29009514, 'created_at': datetime.datetime(2025, 11, 28, 20, 2, 59), 'result': '0.04730565240435862', 'result_long': None, 'result_double': None}] Qualite : 0.04730565240435862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29009514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29009514_28-11-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29009514 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_P29009514_28-11-2025_20_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009551, 'pht': 3726}}" where mtr_portfolio_id = 29009514 and dashboard_run_id = 2670702 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`=29009514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17865948, 0.04730565240435862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29009514_28-11-2025_20_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29009540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29009541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29009542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29009543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29009544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29009545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29009546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29009547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29009548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29009549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29009550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29009551, '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 = 29010155 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29010155 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29010155 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29010155 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29010155 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29010155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29010155_28-11-2025_20_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29010155 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_P29010155_28-11-2025_20_07_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29010196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29010197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29010198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29010199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29010200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29010201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29010202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29010203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29010204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29010205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29010206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29010207, 'pht': 3726}}" where mtr_portfolio_id = 29010155 and dashboard_run_id = 2670702 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28975051,28975640,28976061,28976505,28978093,28978470,28978907,28979483,28979969,28980449,28980831,28981438,28982151,28982326,28982677,28983973,28984352,28984847,28985168,28985595,28987565,28987843,28988243,28989138,28989473,28989983,28990586,28991027,28991604,28992036,28992895,28993222,28993590,28996997,28997465,28997995,28998473,28999176,29000056,29000671,29001341,29001853,29002544,29003060,29003540,29004071,29004687,29005821,29006343,29006796,29007225,29007701,29008365,29009034,29009514,29010155) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,), (1396512851,), (1396512854,), (1396512857,), (1396512860,), (1396512878,), (1396512881,), (1396512883,), (1396512886,), (1396512892,), (1396512897,), (1396512925,), (1396512918,), (1396512921,), (1396512923,), (1396512947,), (1396512972,), (1396512995,), (1396513030,), (1396513055,), (1396513082,), (1396513467,), (1396513539,), (1396513616,), (1396513678,), (1396514499,), (1396514526,), (1396514557,), (1396514588,), (1396514614,), (1396514620,), (1396514629,), (1396514657,), (1396514703,), (1396514746,), (1396514898,), (1396514950,), (1396515016,), (1396515077,), (1396515689,), (1396515767,), (1396515833,), (1396515878,), (1396515921,), (1396515946,), (1396516109,), (1396516158,), (1396516214,), (1396516300,), (1396516469,), (1396516473,), (1396516475,), (1396516476,), (1396516477,), (1396516501,), (1396516508,), (1396516509,), (1396516511,), (1396516528,), (1396516536,), (1396516540,), (1396516543,), (1396516547,), (1396516564,), (1396516567,), (1396516571,), (1396516575,), (1396516577,), (1396516590,), (1396516637,), (1396516681,), (1396517150,), (1396517204,), (1396517247,), (1396517288,), (1396517460,), (1396518172,), (1396518210,), (1396518212,), (1396518244,), (1396518264,), (1396518268,), (1396518391,), (1396518425,), (1396518434,), (1396518458,), (1396518489,), (1396518603,), (1396518668,), (1396518701,), (1396519242,), (1396528127,), (1396528128,), (1396528141,), (1396528145,), (1396528148,), (1396528151,), (1396528165,), (1396528169,), (1396528172,), (1396528175,), (1396528234,), (1396528237,), (1396528239,), (1396528243,), (1396528247,), (1396528251,), (1396528417,), (1396528447,), (1396528473,), (1396528621,), (1396528624,), (1396528628,), (1396528631,), (1396528633,), (1396528635,), (1396528649,), (1396528652,), (1396528654,), (1396528656,), (1396528657,), (1396528699,), (1396528705,), (1396528713,), (1396528714,), (1396528857,), (1396528888,), (1396528923,), (1396528951,), (1396528976,), (1396529152,), (1396529180,), (1396529208,), (1396529235,), (1396529254,), (1396529282,), (1396529396,), (1396529399,), (1396529409,), (1396529414,), (1396529419,), (1396529479,), (1396529480,), (1396529482,), (1396529535,), (1396529537,), (1396529539,), (1396529541,), (1396529545,), (1396529562,), (1396529564,), (1396529566,), (1396529568,), (1396529586,), (1396529588,), (1396529592,), (1396529596,), (1396529599,), (1396529603,), (1396529627,), (1396529618,), (1396529621,), (1396529624,), (1396529652,), (1396529656,), (1396529659,), (1396529662,), (1396529676,), (1396529679,), (1396529682,), (1396529686,), (1396529690,), (1396529694,), (1396529717,), (1396529721,), (1396529724,), (1396529726,), (1396529730,), (1396529751,), (1396529761,), (1396529770,), (1396529778,), (1396529801,), (1396529805,), (1396529809,), (1396529812,), (1396529815,), (1396529820,), (1396529844,), (1396529846,), (1396529848,), (1396529883,), (1396529886,), (1396529890,), (1396529895,), (1396529899,), (1396529902,), (1396529929,), (1396529945,), (1396529981,), (1396530011,), (1396530045,), (1396530077,), (1396530285,), (1396530287,), (1396530290,), (1396530294,), (1396530320,), (1396530322,), (1396530323,), (1396530324,), (1396530327,), (1396530330,), (1396530347,), (1396530350,), (1396530353,), (1396530388,), (1396530390,), (1396530392,), (1396530394,), (1396530396,), (1396530399,), (1396530705,), (1396530708,), (1396530711,), (1396530765,), (1396530760,), (1396530763,), (1396530796,), (1396530799,), (1396530802,), (1396530806,), (1396530810,), (1396530813,), (1396530829,), (1396530832,), (1396530835,), (1396530837,), (1396530839,), (1396530878,), (1396530880,), (1396530882,), (1396530885,), (1396530888,), (1396530892,), (1396530909,), (1396530912,), (1396530915,), (1396530918,), (1396531076,), (1396531106,), (1396531108,), (1396531110,), (1396531111,), (1396531128,), (1396531472,), (1396531504,), (1396531551,), (1396531612,), (1396531786,), (1396532382,), (1396532442,), (1396532502,), (1396532563,), (1396532628,), (1396532718,), (1396533069,), (1396533073,), (1396533077,), (1396533090,), (1396533125,), (1396533383,), (1396533385,), (1396533387,), (1396533413,), (1396533449,), (1396533494,), (1396534153,), (1396534222,), (1396534290,), (1396534357,), (1396534797,), (1396534800,), (1396534807,), (1396534840,), (1396534856,), (1396535151,), (1396535183,), (1396535215,), (1396535220,), (1396535222,), (1396535531,), (1396535567,), (1396535600,), (1396535639,), (1396535676,), (1396536024,), (1396536045,), (1396536047,), (1396536050,), (1396536054,), (1396536407,), (1396536322,), (1396536354,), (1396536388,), (1396536404,), (1396536543,), (1396536551,), (1396536584,), (1396536634,), (1396536670,), (1396537002,), (1396537129,), (1396537165,), (1396537203,), (1396537567,), (1396537595,), (1396537597,), (1396537599,), (1396537804,), (1396537819,), (1396537821,), (1396537844,), (1396537880,), (1396537883,), (1396537929,), (1396537932,), (1396537935,), (1396537938,), (1396537941,), (1396537944,), (1396537962,), (1396537964,), (1396537969,), (1396537975,), (1396538001,), (1396538004,), (1396538007,), (1396538010,), (1396538013,), (1396538015,), (1396538024,), (1396538028,), (1396538035,), (1396538196,), (1396538203,), (1396538207,), (1396538257,), (1396538287,), (1396538288,), (1396538362,), (1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,), (1396538955,), (1396538959,), (1396538961,), (1396538964,), (1396538967,), (1396538971,), (1396539020,), (1396539012,), (1396539014,), (1396539017,), (1396539054,), (1396539058,), (1396539070,), (1396539076,), (1396539096,), (1396539099,), (1396539113,), (1396539116,), (1396539119,), (1396539122,), (1396539126,), (1396539130,), (1396539148,), (1396539149,), (1396539150,), (1396539151,), (1396539195,), (1396539197,), (1396539199,), (1396539202,), (1396539206,), (1396539209,), (1396539224,), (1396539227,), (1396539271,), (1396539275,), (1396539278,), (1396539281,), (1396539284,), (1396539304,), (1396539305,), (1396539306,), (1396539308,), (1396539312,), (1396539316,), (1396539348,), (1396539358,), (1396539362,), (1396539366,), (1396539390,), (1396539391,), (1396539393,), (1396539395,), (1396539398,), (1396539401,), (1396539417,), (1396539420,), (1396539423,), (1396539461,), (1396539463,), (1396539465,), (1396539467,), (1396539472,), (1396539475,), (1396539500,), (1396539509,), (1396539517,), (1396539520,), (1396539523,), (1396539526,), (1396539667,), (1396539703,), (1396539738,), (1396539775,), (1396539929,), (1396539930,), (1396539962,), (1396539963,), (1396539995,), (1396540001,), (1396540030,), (1396540034,), (1396540393,), (1396540310,), (1396540357,), (1396541002,), (1396541059,), (1396541096,), (1396541126,), (1396541134,), (1396541440,), (1396541466,), (1396541488,), (1396541490,), (1396541510,), (1396541537,), (1396541564,), (1396541566,), (1396541568,), (1396541594,), (1396541597,), (1396541599,), (1396541601,), (1396541604,), (1396541607,), (1396541637,), (1396541640,), (1396541642,), (1396541644,), (1396541647,), (1396541668,), (1396541670,), (1396541672,), (1396541675,), (1396541678,), (1396541731,), (1396541735,), (1396541739,), (1396541743,), (1396541747,), (1396541776,), (1396541777,), (1396541911,), (1396541919,), (1396541921,), (1396541923,), (1396541926,), (1396541929,), (1396541946,), (1396541949,), (1396541952,), (1396541959,), (1396541998,), (1396542010,), (1396542017,), (1396542023,), (1396542026,), (1396542028,), (1396542047,), (1396542050,), (1396542053,), (1396542057,), (1396542061,), (1396542065,), (1396542096,), (1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,), (1396542541,), (1396542544,), (1396542547,), (1396542551,), (1396542555,), (1396542559,), (1396542578,), (1396542580,), (1396542581,), (1396542582,), (1396542620,), (1396542629,), (1396542631,), (1396542636,), (1396542639,), (1396543743,), (1396542732,), (1396543741,), (1396543775,), (1396543780,), (1396543783,), (1396543787,), (1396543791,), (1396543807,), (1396543810,), (1396543837,), (1396543839,), (1396543841,), (1396543843,), (1396543846,), (1396543905,), (1396543947,), (1396543952,), (1396543958,), (1396543983,), (1396543986,), (1396543989,), (1396543994,), (1396544000,), (1396544006,), (1396544025,), (1396544026,), (1396544027,), (1396544028,), (1396544061,), (1396544054,), (1396544055,), (1396544056,), (1396544058,), (1396544077,), (1396544081,), (1396544085,), (1396544089,), (1396544093,), (1396544168,), (1396544170,), (1396544171,), (1396544172,), (1396544175,), (1396544178,), (1396544193,), (1396544196,), (1396544199,), (1396544208,), (1396544215,), (1396544241,), (1396544243,), (1396544245,), (1396544246,), (1396544247,), (1396544250,), (1396544268,), (1396544271,), (1396544275,), (1396544280,), (1396544284,), (1396544314,), (1396544316,), (1396544317,), (1396544319,), (1396544323,), (1396544383,), (1396544386,), (1396544389,), (1396544393,), (1396544397,), (1396544401,), (1396544430,), (1396544431,), (1396544432,), (1396544434,), (1396544453,), (1396544455,), (1396544457,), (1396544460,), (1396544464,), (1396544466,), (1396544482,), (1396544483,), (1396544484,), (1396544486,), (1396544488,), (1396544504,), (1396544507,), (1396544510,), (1396544514,), (1396544541,), (1396544552,), (1396544556,), (1396544560,), (1396544563,), (1396544566,), (1396544590,), (1396544593,), (1396544595,), (1396544597,), (1396544600,), (1396544604,), (1396545260,), (1396544978,), (1396545053,), (1396545126,), (1396545191,), (1396546286,), (1396546385,), (1396546478,), (1396546544,), (1396546613,), (1396547077,), (1396547101,), (1396547134,), (1396547169,), (1396547204,), (1396547659,), (1396547721,), (1396547802,), (1396547868,), (1396547931,), (1396548321,), (1396548330,), (1396548361,), (1396548396,), (1396548402,), (1396548473,), (1396548491,), (1396548494,), (1396548496,), (1396548546,), (1396548548,), (1396548550,), (1396548553,), (1396548557,), (1396548560,), (1396548748,), (1396548754,), (1396548759,), (1396548762,), (1396548766,), (1396548768,), (1396548786,), (1396548787,), (1396548788,), (1396548790,), (1396548793,), (1396548797,), (1396548826,), (1396548829,), (1396548832,), (1396548835,), (1396548859,), (1396548860,), (1396549325,), (1396551958,), (1396551962,), (1396552216,), (1396552223,), (1396552358,), (1396552361,), (1396552363,), (1396552389,), (1396552391,), (1396552428,), (1396552430,), (1396552433,), (1396552437,), (1396552464,), (1396552466,), (1396552470,), (1396552475,), (1396552479,), (1396552508,), (1396552512,), (1396552516,), (1396552520,), (1396552552,), (1396552554,), (1396552556,), (1396552559,), (1396552562,), (1396552604,), (1396552605,), (1396552606,), (1396552631,), (1396552633,), (1396552636,), (1396552640,), (1396552644,), (1396552651,), (1396552667,), (1396552678,), (1396552686,), (1396552708,), (1396552710,), (1396552712,), (1396552715,), (1396552719,), (1396552723,), (1396552739,), (1396552741,), (1396552743,), (1396552746,), (1396552785,), (1396552787,), (1396552789,), (1396552792,), (1396552796,), (1396552801,), (1396552828,), (1396552820,), (1396552823,), (1396552826,), (1396552866,), (1396552867,), (1396552868,), (1396552870,), (1396552895,), (1396552898,), (1396552901,), (1396552905,), (1396552915,), (1396552925,), (1396552941,), (1396552942,), (1396552945,), (1396552947,), (1396552966,), (1396552967,), (1396552969,), (1396552972,), (1396552976,), (1396552979,), (1396553027,), (1396553030,), (1396553033,), (1396553036,), (1396553039,), (1396553091,), (1396553100,), (1396553105,), (1396553108,), (1396553112,), (1396553115,), (1396553186,), (1396553189,), (1396553194,), (1396553199,), (1396553259,), (1396553263,), (1396553301,), (1396553302,), (1396553303,), (1396553305,), (1396553326,), (1396553329,), (1396553333,), (1396553336,), (1396553343,), (1396553354,), (1396553371,), (1396553373,), (1396553374,), (1396553376,), (1396553380,), (1396553405,), (1396553408,), (1396553412,), (1396553416,), (1396553420,), (1396553441,), (1396553442,), (1396553444,), (1396553447,), (1396553451,), (1396553495,), (1396553504,), (1396553508,), (1396553511,), (1396553515,), (1396553517,), (1396553568,), (1396553538,), (1396553539,), (1396553565,), (1396553599,), (1396553604,), (1396553615,), (1396553625,), (1396553648,), (1396553651,), (1396553666,), (1396553668,), (1396553670,), (1396553674,), (1396553678,), (1396553701,), (1396553702,), (1396553706,), (1396553708,), (1396553712,), (1396553715,), (1396553731,), (1396553733,), (1396553735,), (1396553737,), (1396553741,), (1396553779,), (1396553781,), (1396553783,), (1396553786,), (1396553789,), (1396553792,), (1396553833,), (1396553834,), (1396553835,), (1396553837,), (1396553859,), (1396553861,), (1396553864,), (1396553868,), (1396553872,), (1396553888,), (1396553891,), (1396553893,), (1396553897,), (1396553901,), (1396553904,), (1396553942,), (1396553944,), (1396553946,), (1396553949,), (1396553953,), (1396553971,), (1396553973,), (1396553975,), (1396553978,), (1396554019,), (1396554022,), (1396554024,), (1396554027,), (1396554031,), (1396554035,), (1396554055,), (1396554056,), (1396554057,), (1396554086,), (1396554089,), (1396554092,), (1396554096,), (1396554115,), (1396554117,), (1396554119,), (1396554122,), (1396554126,), (1396554159,), (1396554155,), (1396554157,), (1396554183,), (1396554184,), (1396554186,), (1396554202,), (1396554207,), (1396554271,), (1396554274,), (1396554277,), (1396554281,), (1396554285,), (1396554642,), (1396554676,), (1396554706,), (1396554732,), (1396554909,), (1396554912,), (1396554915,), (1396554926,), (1396554969,), (1396554991,), (1396555067,), (1396555068,), (1396555070,), (1396555073,), (1396555115,), (1396555117,), (1396555119,), (1396555122,), (1396555126,), (1396555130,), (1396555147,), (1396555149,), (1396555151,), (1396555191,), (1396555193,), (1396555195,), (1396555198,), (1396555200,), (1396555202,), (1396555220,), (1396555222,), (1396555228,), (1396555234,), (1396555255,), (1396555258,), (1396555261,), (1396555265,), (1396555269,), (1396555273,), (1396555288,), (1396555292,), (1396555294,), (1396555298,), (1396555302,), (1396555306,), (1396555331,), (1396555333,), (1396555335,), (1396555338,), (1396555342,), (1396555359,), (1396555364,), (1396555396,), (1396555432,), (1396555464,), (1396556836,), (1396556426,), (1396556538,), (1396556644,), (1396556737,), (1396557471,), (1396557489,), (1396557506,), (1396557521,), (1396557536,), (1396558110,), (1396558162,), (1396558193,), (1396558258,), (1396558315,), (1396558548,), (1396558550,), (1396558552,), (1396558578,), (1396558666,), (1396558667,), (1396558669,), (1396558672,), (1396558676,), (1396558680,), (1396558712,), (1396558720,), (1396558722,), (1396558724,), (1396558746,), (1396558752,), (1396558755,), (1396558759,), (1396558762,), (1396558765,), (1396558774,), (1396558776,), (1396558778,), (1396558781,), (1396558808,), (1396558810,), (1396558813,), (1396558822,), (1396558830,), (1396558850,), (1396558852,), (1396558854,), (1396558857,), (1396558861,), (1396558865,), (1396558883,), (1396558884,), (1396558886,), (1396558889,), (1396558893,), (1396558925,), (1396558931,), (1396558932,), (1396558934,), (1396558937,), (1396558940,), (1396558955,), (1396558958,), (1396558961,), (1396558964,), (1396559010,), (1396559012,), (1396559206,), (1396559257,), (1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,), (1396570524,), (1396570526,), (1396570528,), (1396570530,), (1396570566,), (1396570569,), (1396570572,), (1396570576,), (1396570580,), (1396570583,), (1396570592,), (1396570595,), (1396570622,), (1396570624,), (1396570625,), (1396570628,), (1396570632,), (1396570636,), (1396570652,), (1396570654,), (1396570656,), (1396570659,), (1396570662,), (1396570682,), (1396570684,), (1396570687,), (1396570691,), (1396570695,), (1396570698,), (1396570714,), (1396570716,), (1396570718,), (1396570721,), (1396570774,), (1396570776,), (1396570778,), (1396570781,), (1396570785,), (1396570789,), (1396570806,), (1396570808,), (1396570810,), (1396570812,), (1396570845,), (1396570854,), (1396570857,), (1396570859,), (1396570862,), (1396570877,), (1396570879,), (1396570881,), (1396570883,), (1396570900,), (1396570902,), (1396570909,), (1396570916,), (1396570930,), (1396570932,), (1396570934,), (1396570936,), (1396570939,), (1396570941,), (1396570971,), (1396570973,), (1396570975,), (1396570976,), (1396570997,), (1396570999,), (1396571000,), (1396571002,), (1396571005,), (1396571009,), (1396571039,), (1396571030,), (1396571032,), (1396571034,), (1396571036,), (1396571052,), (1396571053,), (1396571054,), (1396571140,), (1396571142,), (1396571144,), (1396571146,), (1396571149,), (1396571164,), (1396571165,), (1396571166,), (1396571281,), (1396571308,), (1396571336,), (1396571337,), (1396571339,), (1396571341,), (1396571343,), (1396571357,), (1396571358,), (1396571360,), (1396571362,), (1396571389,), (1396571390,), (1396571392,), (1396571394,), (1396571410,), (1396571411,), (1396571412,), (1396571413,), (1396571450,), (1396571452,), (1396571454,), (1396571456,), (1396571459,), (1396571461,), (1396571483,), (1396571489,), (1396571493,), (1396573879,), (1396581218,), (1396581221,), (1396581251,), (1396581253,), (1396581255,), (1396581257,), (1396581260,), (1396581282,), (1396581284,), (1396581285,), (1396581287,), (1396581313,), (1396581317,), (1396581320,), (1396581353,), (1396581355,), (1396581357,), (1396581362,), (1396581368,), (1396581400,), (1396581402,), (1396581405,), (1396581409,), (1396581430,), (1396581433,), (1396581436,), (1396581462,), (1396581463,), (1396581492,), (1396581497,), (1396581500,), (1396581502,), (1396581506,), (1396581510,), (1396581549,), (1396581551,), (1396581568,), (1396581790,), (1396581799,), (1396581801,), (1396581803,), (1396581806,), (1396581833,), (1396581834,), (1396581836,), (1396581838,), (1396581885,), (1396581887,), (1396581889,), (1396581891,), (1396582009,), (1396582040,), (1396582070,), (1396582103,), (1396582133,), (1396582135,), (1396582250,), (1396582247,), (1396582248,), (1396582423,), (1396582431,), (1396582677,), (1396582819,), (1396582820,), (1396582821,), (1396582823,), (1396582826,), (1396582850,), (1396582853,), (1396582856,), (1396582859,), (1396582881,), (1396582883,), (1396582932,), (1396582940,), (1396582942,), (1396582947,), (1396582950,), (1396582982,), (1396583001,), (1396583009,), (1396583011,), (1396583248,), (1396583251,), (1396583534,), (1396583540,), (1396583545,), (1396583550,), (1396583686,), (1396583621,), (1396583654,), (1396584123,), (1396584155,), (1396584670,), (1396584732,), (1396584775,), (1396584804,), (1396585396,), (1396585487,), (1396585571,), (1396585608,), (1396586286,), (1396586443,), (1396586866,), (1396586901,), (1396587300,), (1396587366,), (1396587429,), (1396587492,), (1396587958,), (1396587991,), (1396588002,), (1396588005,), (1396588027,), (1396588029,), (1396588032,), (1396588033,), (1396588036,), (1396588040,), (1396588073,), (1396588076,), (1396588079,), (1396588082,), (1396588086,), (1396588089,), (1396588122,), (1396588137,), (1396588138,), (1396588139,), (1396588183,), (1396588186,), (1396588188,), (1396588192,), (1396588197,), (1396588227,), (1396588229,), (1396588231,), (1396588232,), (1396588235,), (1396588262,), (1396588263,), (1396588265,), (1396588299,), (1396588301,), (1396588302,), (1396588304,), (1396588361,), (1396588347,), (1396588349,), (1396588351,), (1396588354,), (1396588358,), (1396588377,), (1396588378,), (1396588379,), (1396588381,), (1396588404,), (1396588406,), (1396588407,), (1396588410,), (1396588414,), (1396588417,), (1396588448,), (1396588449,), (1396588450,), (1396588841,), (1396588874,), (1396588910,), (1396588946,), (1396588984,), (1396589019,), (1396589262,), (1396589282,), (1396589285,), (1396589472,), (1396589513,), (1396589555,), (1396589589,), (1396589595,), (1396589599,), (1396589718,), (1396589730,), (1396589733,), (1396589735,), (1396589738,), (1396589740,), (1396589795,), (1396589797,), (1396589798,), (1396589799,), (1396589801,), (1396589805,), (1396589818,), (1396589821,), (1396589822,), (1396589824,), (1396589825,), (1396589830,), (1396589833,), (1396589836,), (1396589865,), (1396589872,), (1396589883,), (1396589885,), (1396589889,), (1396589895,), (1396589922,), (1396589924,), (1396589926,), (1396589929,), (1396589932,), (1396589951,), (1396589952,), (1396589954,), (1396589956,), (1396589977,), (1396589980,), (1396589982,), (1396589991,), (1396589997,), (1396590054,), (1396590050,), (1396590051,), (1396590052,), (1396590073,), (1396590074,), (1396590076,), (1396590079,), (1396590082,), (1396590085,), (1396590099,), (1396590103,), (1396590110,), (1396590117,), (1396590145,), (1396590146,), (1396590147,), (1396590149,), (1396590153,), (1396590174,), (1396590176,), (1396590178,), (1396590181,), (1396590206,), (1396590207,), (1396590209,), (1396590216,), (1396590218,), (1396590220,), (1396590240,), (1396590242,), (1396590244,), (1396590248,), (1396590335,), (1396590337,), (1396590339,), (1396590341,), (1396590345,), (1396590349,), (1396590366,), (1396590368,), (1396590370,), (1396590373,), (1396590404,), (1396590405,), (1396590406,), (1396590408,), (1396590411,), (1396590414,), (1396590438,), (1396590439,), (1396590450,), (1396590474,), (1396590489,), (1396590558,), (1396590571,), (1396590603,), (1396590615,), (1396590638,), (1396590640,), (1396590642,), (1396590645,), (1396590652,), (1396590663,), (1396590719,), (1396590720,), (1396590723,), (1396590728,), (1396590809,), (1396590810,), (1396590812,), (1396590814,), (1396590815,), (1396590820,), (1396590871,), (1396590857,), (1396590859,), (1396590861,), (1396590864,), (1396590868,), (1396590887,), (1396590888,), (1396590889,), (1396590929,), (1396590930,), (1396590933,), (1396590960,), (1396590962,), (1396590965,), (1396590970,), (1396591012,), (1396591014,), (1396591016,), (1396591019,), (1396591047,), (1396591048,), (1396591049,), (1396591051,), (1396591055,), (1396591121,), (1396591126,), (1396591128,), (1396591456,), (1396591489,), (1396591521,), (1396591587,), (1396591637,), (1396591663,), (1396591758,), (1396591765,), (1396591766,), (1396591768,), (1396591771,), (1396591775,), (1396591790,), (1396591792,), (1396591794,), (1396591820,), (1396591821,), (1396591823,), (1396591826,), (1396591831,), (1396591835,), (1396591866,), (1396591868,), (1396591869,), (1396591872,), (1396591876,), (1396591956,), (1396591957,), (1396591958,), (1396591960,), (1396591964,), (1396591995,), (1396592002,), (1396592007,), (1396592011,), (1396592014,), (1396592019,), (1396592025,), (1396592028,), (1396592031,), (1396592034,), (1396592070,), (1396592059,), (1396592060,), (1396592062,), (1396592065,), (1396592068,), (1396592404,), (1396592464,), (1396592530,), (1396592595,), (1396593498,), (1396593558,), (1396593638,), (1396593688,), (1396593718,), (1396594244,), (1396594305,), (1396594343,), (1396594468,), (1396594470,), (1396594472,), (1396594475,), (1396594608,), (1396595329,), (1396595476,), (1396595992,), (1396596044,), (1396596109,), (1396596696,), (1396596955,), (1396596956,), (1396596962,), (1396596982,), (1396597135,), (1396597137,), (1396597296,), (1396597295,), (1396597425,), (1396597428,), (1396597432,), (1396597437,), (1396597463,), (1396597464,), (1396597486,), (1396597488,), (1396597495,), (1396597502,), (1396597530,), (1396597531,), (1396597688,), (1396597690,), (1396597692,), (1396597695,), (1396597699,), (1396597715,), (1396597716,), (1396597718,), (1396597722,), (1396597751,), (1396597761,), (1396597768,), (1396597779,), (1396597794,), (1396597906,), (1396597943,), (1396597967,), (1396597968,), (1396597969,), (1396597995,), (1396597997,), (1396598000,), (1396598004,), (1396598009,), (1396598088,), (1396598076,), (1396598080,), (1396598082,), (1396598084,), (1396598104,), (1396598106,), (1396598108,), (1396598130,), (1396598131,), (1396598132,), (1396598134,), (1396598138,), (1396598162,), (1396598164,), (1396598166,), (1396598273,), (1396598301,), (1396598336,), (1396598372,), (1396598820,), (1396598822,), (1396598851,), (1396598865,), (1396598869,), (1396599049,), (1396599051,), (1396599099,), (1396599100,), (1396599107,), (1396599131,), (1396599137,), (1396599153,), (1396599155,), (1396599157,), (1396599164,), (1396599204,), (1396599208,), (1396599271,), (1396599284,), (1396599343,), (1396599344,), (1396599345,), (1396599348,), (1396599353,), (1396599386,), (1396599388,), (1396599391,), (1396599395,), (1396599400,), (1396599500,), (1396599519,), (1396599529,), (1396599537,), (1396599540,), (1396599569,), (1396599599,), (1396599602,), (1396599604,), (1396599669,), (1396599649,), (1396599651,), (1396599657,), (1396599660,), (1396599664,), (1396599718,), (1396599719,), (1396599720,), (1396599722,), (1396599726,), (1396599748,), (1396599749,), (1396599751,), (1396599786,), (1396599792,), (1396599793,), (1396599795,), (1396599797,), (1396599852,), (1396599886,), (1396599919,), (1396599933,), (1396600356,), (1396604259,), (1396632690,), (1396632740,), (1396632801,), (1396632864,), (1396633373,), (1396633633,), (1396633723,), (1396633814,), (1396633904,), (1396634029,), (1396634760,), (1396634848,), (1396634932,), (1396635559,), (1396635596,), (1396635629,), (1396636318,), (1396636380,), (1396636443,), (1396636490,), (1396636526,), (1396636560,), (1396636947,), (1396636949,), (1396637544,), (1396637602,), (1396637666,), (1396638108,), (1396638141,), (1396638201,), (1396638247,), (1396638287,), (1396638345,), (1396638818,), (1396638879,), (1396638940,), (1396639002,), (1396639062,), (1396639121,), (1396639759,), (1396639816,), (1396639874,), (1396640822,), (1396640983,), (1396641016,), (1396641051,), (1396641088,), (1396641120,), (1396641238,), (1396641260,), (1396641291,), (1396641324,), (1396641905,), (1396641971,), (1396642036,), (1396642076,), (1396642116,), (1396642138,), (1396642527,), (1396642564,), (1396642596,), (1396642611,), (1396642896,), (1396642895,), (1396642934,), (1396642936,), (1396642939,), (1396643102,), (1396643140,), (1396643175,), (1396643206,), (1396643242,), (1396643278,), (1396643396,), (1396643397,), (1396643398,), (1396643678,), (1396643701,), (1396643710,), (1396643742,), (1396643774,), (1396643780,), (1396643817,), (1396644689,), (1396644722,), (1396644898,), (1396644930,), (1396644964,), (1396644997,), (1396645130,), (1396645132,), (1396645134,), (1396645136,), (1396645139,), (1396645165,), (1396645166,), (1396645167,), (1396645169,), (1396645171,), (1396645173,), (1396645188,), (1396645190,), (1396645192,), (1396645195,), (1396645199,), (1396645235,), (1396645774,), (1396645775,), (1396645873,), (1396645909,), (1396646343,), (1396646375,), (1396646406,), (1396646443,), (1396646488,), (1396646946,), (1396646844,), (1396646877,), (1396646911,), (1396647062,), (1396647064,), (1396647065,), (1396647097,), (1396647132,), (1396647167,), (1396647344,), (1396647351,), (1396647383,), (1396647419,), (1396647518,), (1396647638,), (1396648141,), (1396648151,), (1396648152,), (1396648153,), (1396648201,), (1396648251,), (1396648253,), (1396648256,), (1396648260,), (1396648264,), (1396648282,), (1396648290,), (1396648301,), (1396648302,), (1396648304,), (1396648320,), (1396648322,), (1396648323,), (1396648325,), (1396648340,), (1396648342,), (1396648348,), (1396648356,), (1396648367,), (1396648370,), (1396648469,), (1396648504,), (1396648539,), (1396648571,), (1396648985,), (1396649021,), (1396649056,), (1396649087,), (1396649120,), (1396649342,), (1396649343,), (1396649345,), (1396649348,), (1396649601,), (1396649634,), (1396649638,), (1396649640,), (1396649643,), (1396649837,), (1396649844,), (1396649845,), (1396649847,), (1396649850,), (1396649853,), (1396650174,), (1396650271,), (1396650366,), (1396650470,), (1396650981,), (1396650983,), (1396650987,), (1396650991,), (1396650994,), (1396651406,), (1396651271,), (1396651273,), (1396651354,), (1396651374,), (1396651435,), (1396651436,), (1396651437,), (1396651439,), (1396651442,), (1396651444,), (1396651465,), (1396651466,), (1396651467,), (1396651470,), (1396651483,), (1396651484,), (1396651488,), (1396651494,), (1396651497,), (1396651500,), (1396651723,), (1396651762,), (1396651793,), (1396651824,), (1396652228,), (1396652229,), (1396652230,), (1396652232,), (1396652235,), (1396652238,), (1396652422,), (1396652424,), (1396652426,), (1396652429,), (1396652583,), (1396652584,), (1396652585,), (1396652587,), (1396652589,), (1396652593,), (1396652902,), (1396652986,), (1396653071,), (1396653153,), (1396653239,), (1396653324,), (1396653670,), (1396653743,), (1396653745,), (1396653751,), (1396653752,), (1396653754,), (1396653758,), (1396653762,), (1396653765,), (1396654053,), (1396654054,), (1396654056,), (1396654072,), (1396654255,), (1396654260,), (1396654263,), (1396654266,), (1396654281,), (1396654315,), (1396654603,), (1396654636,), (1396654671,), (1396654703,), (1396655182,), (1396655187,), (1396655192,), (1396655196,), (1396655200,), (1396655206,), (1396655207,), (1396655210,), (1396655213,), (1396655749,), (1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,), (1396659566,), (1396659602,), (1396659635,), (1396659668,), (1396659705,), (1396659741,), (1396660075,), (1396660107,), (1396660112,), (1396660113,), (1396660315,), (1396660326,), (1396660328,), (1396660331,), (1396660335,), (1396660343,), (1396660363,), (1396660364,), (1396660365,), (1396660367,), (1396660369,), (1396660467,), (1396660484,), (1396660503,), (1396660517,), (1396660521,), (1396660533,), (1396660584,), (1396660585,), (1396660586,), (1396660588,), (1396660592,), (1396660662,), (1396660649,), (1396660653,), (1396660655,), (1396660658,), (1396660682,), (1396660687,), (1396660698,), (1396660701,), (1396660722,), (1396660736,), (1396660780,), (1396660786,), (1396660789,), (1396660790,), (1396660793,), (1396660815,), (1396660817,), (1396660819,), (1396660822,), (1396660825,), (1396660844,), (1396660845,), (1396660846,), (1396660848,), (1396660852,), (1396660856,), (1396660882,), (1396660890,), (1396660893,), (1396660897,), (1396660902,), (1396660918,), (1396660920,), (1396660921,), (1396660924,), (1396660932,), (1396660951,), (1396660952,), (1396660956,), (1396660958,), (1396660961,), (1396660964,), (1396661231,), (1396661239,), (1396661241,), (1396661245,), (1396661393,), (1396661480,), (1396661487,), (1396661491,), (1396661495,), (1396661519,), (1396661521,), (1396661523,), (1396661526,), (1396661530,), (1396661687,), (1396661721,), (1396661726,), (1396661728,), (1396661850,), (1396661852,), (1396661854,), (1396661857,), (1396661861,), (1396661895,), (1396661940,), (1396661942,), (1396661943,), (1396662016,), (1396662012,), (1396662013,), (1396662014,), (1396662053,), (1396662056,), (1396662059,), (1396662062,), (1396662065,), (1396662067,), (1396662079,), (1396662081,), (1396662126,), (1396662127,), (1396662128,), (1396662129,), (1396662131,), (1396662153,), (1396662155,), (1396662156,), (1396662159,), (1396662163,), (1396662167,), (1396662182,), (1396662184,), (1396662186,), (1396662189,), (1396662193,), (1396662254,), (1396662255,), (1396662256,), (1396662269,), (1396662272,), (1396662289,), (1396662304,), (1396662306,), (1396662308,), (1396662311,), (1396662336,), (1396662352,), (1396662359,), (1396662362,), (1396662371,), (1396662375,), (1396662642,), (1396662677,), (1396662710,), (1396662743,), (1396662881,), (1396662912,), (1396662942,), (1396662972,), (1396663208,), (1396663210,), (1396663212,), (1396663215,), (1396663219,), (1396663222,), (1396663242,), (1396663301,), (1396663333,), (1396663367,), (1396663400,), (1396663735,), (1396663771,), (1396663801,), (1396663835,), (1396663871,), (1396663907,), (1396664016,), (1396664052,), (1396664085,), (1396664119,), (1396664579,), (1396664515,), (1396664555,), (1396664560,), (1396664563,), (1396664569,), (1396664596,), (1396664597,), (1396664598,), (1396664599,), (1396664603,), (1396664630,), (1396664634,), (1396664639,), (1396664642,), (1396664760,), (1396664761,), (1396664763,), (1396664765,), (1396664769,), (1396664773,), (1396664801,), (1396664802,), (1396664804,), (1396664807,), (1396665051,), (1396665080,), (1396665110,), (1396665158,), (1396665192,), (1396665227,), (1396665551,), (1396665586,), (1396665619,), (1396665663,), (1396666166,), (1396666198,), (1396666232,), (1396666251,), (1396666254,), (1396666265,), (1396666531,), (1396666543,), (1396666545,), (1396666548,), (1396666552,), (1396666571,), (1396666574,), (1396666575,), (1396666577,), (1396666596,), (1396666598,), (1396666601,), (1396666607,), (1396666614,), (1396666619,), (1396666638,), (1396666639,), (1396666640,), (1396666642,), (1396666644,), (1396666718,), (1396666720,), (1396666724,), (1396666728,), (1396666732,), (1396666735,), (1396666759,), (1396666768,), (1396666776,), (1396666782,), (1396666830,), (1396666831,), (1396666834,), (1396666835,), (1396666836,), (1396666837,), (1396666869,), (1396666874,), (1396667188,), (1396667059,), (1396667092,), (1396667123,), (1396667155,), (1396667572,), (1396667630,), (1396667690,), (1396667756,), (1396667826,), (1396668269,), (1396668305,), (1396668337,), (1396668371,), (1396669113,), (1396669217,), (1396669349,), (1396669433,), (1396669532,), (1396669613,), (1396670179,), (1396670243,), (1396670304,), (1396670377,), (1396671399,), (1396671462,), (1396671545,), (1396671623,), (1396671696,), (1396671747,), (1396671922,), (1396671924,), (1396671927,), (1396671931,), (1396671951,), (1396671956,), (1396671957,), (1396671961,), (1396671970,), (1396672008,), (1396672541,), (1396672560,), (1396672562,), (1396672576,), (1396672862,), (1396672881,), (1396672893,), (1396672896,), (1396672899,), (1396672902,), (1396672956,), (1396672958,), (1396672960,), (1396672994,), (1396672995,), (1396672996,), (1396673894,), (1396674753,), (1396674766,), (1396674772,), (1396674774,), (1396674778,), (1396674782,), (1396674898,), (1396674900,), (1396674902,), (1396674905,), (1396674909,), (1396674956,), (1396674958,), (1396674983,), (1396674984,), (1396674985,), (1396674987,), (1396674991,), (1396675025,), (1396675033,), (1396675037,), (1396675040,), (1396675043,), (1396675067,), (1396675068,), (1396675069,), (1396675071,), (1396675075,), (1396675096,), (1396675097,), (1396675099,), (1396675108,), (1396675117,), (1396675143,), (1396675144,), (1396675146,), (1396675183,), (1396675185,), (1396675186,), (1396675189,), (1396675193,), (1396675196,), (1396675211,), (1396675221,), (1396675223,), (1396675227,), (1396675251,), (1396675254,), (1396675255,), (1396675257,), (1396675271,), (1396675314,), (1396675758,), (1396675619,), (1396675651,), (1396675686,), (1396675719,), (1396676137,), (1396676172,), (1396676206,), (1396676244,), (1396676282,), (1396676529,), (1396676530,), (1396676531,), (1396676533,), (1396676552,), (1396676554,), (1396676556,), (1396676559,), (1396676565,), (1396676577,), (1396676900,), (1396676932,), (1396676967,), (1396677000,), (1396677184,), (1396677220,), (1396677252,), (1396677284,), (1396677288,), (1396677292,), (1396677471,), (1396677473,), (1396677476,), (1396677480,), (1396677484,), (1396677493,), (1396677494,), (1396677496,), (1396677499,), (1396677502,), (1396677505,), (1396677519,), (1396677520,), (1396677521,), (1396677523,), (1396677526,), (1396677540,), (1396677541,), (1396677542,), (1396677544,), (1396677547,), (1396677549,), (1396677570,), (1396677571,), (1396677572,), (1396677574,), (1396677577,), (1396677580,), (1396677619,), (1396677663,), (1396677667,), (1396677693,), (1396677847,), (1396677856,), (1396677858,), (1396677884,), (1396677918,), (1396677955,), (1396678092,), (1396678105,), (1396678106,), (1396678107,), (1396678210,), (1396678219,), (1396678222,), (1396678225,), (1396678230,), (1396678234,), (1396678254,), (1396678252,), (1396678253,), (1396678293,), (1396678295,), (1396678298,), (1396678304,), (1396678311,), (1396678314,), (1396678329,), (1396678331,), (1396678333,), (1396678336,), (1396678340,), (1396678367,), (1396678368,), (1396678369,), (1396678371,), (1396678391,), (1396678393,), (1396678395,), (1396678398,), (1396678402,), (1396678406,), (1396678547,), (1396678582,), (1396678614,), (1396678804,), (1396678813,), (1396678823,), (1396678827,), (1396678853,), (1396679054,), (1396679105,), (1396679157,), (1396679223,), (1396679696,), (1396679734,), (1396679768,), (1396679801,), (1396679836,), (1396680168,), (1396680169,), (1396680170,), (1396680171,), (1396680175,), (1396680284,), (1396680318,), (1396680352,), (1396680387,), (1396680425,), (1396680614,), (1396680642,), (1396680673,), (1396680686,), (1396680773,), (1396680775,), (1396680777,), (1396680780,), (1396680784,), (1396680788,), (1396680821,), (1396680825,), (1396680828,), (1396680831,), (1396680836,), (1396680845,), (1396680848,), (1396681006,), (1396680933,), (1396680970,), (1396681600,), (1396681664,), (1396681725,), (1396682299,), (1396682330,), (1396682365,), (1396682404,), (1396682849,), (1396682852,), (1396682860,), (1396683284,), (1396683286,), (1396683288,), (1396683359,), (1396683360,), (1396683361,), (1396683388,), (1396683390,), (1396683392,), (1396683395,), (1396683418,), (1396683419,), (1396683420,), (1396683422,), (1396683425,), (1396683428,), (1396683457,), (1396683460,), (1396683462,), (1396683465,), (1396683484,), (1396683486,), (1396683488,), (1396683491,), (1396683495,), (1396683499,), (1396683524,), (1396683525,), (1396683530,), (1396683563,), (1396683599,), (1396683634,), (1396683635,), (1396683636,), (1396683638,), (1396683641,), (1396683643,), (1396683673,), (1396683675,), (1396683677,), (1396683679,), (1396683684,), (1396683705,), (1396683706,), (1396683707,), (1396683709,), (1396683713,), (1396683715,), (1396683792,), (1396683824,), (1396683856,), (1396683888,), (1396684464,), (1396684301,), (1396684331,), (1396684363,), (1396684395,), (1396684430,), (1396684705,), (1396684706,), (1396684708,), (1396684749,), (1396684750,), (1396684751,), (1396684766,), (1396684800,), (1396684833,), (1396685155,), (1396685186,), (1396685203,), (1396685210,), (1396685214,), (1396685218,), (1396685399,), (1396685401,), (1396685420,), (1396685436,), (1396685496,), (1396685498,), (1396685499,), (1396685501,), (1396685504,), (1396685531,), (1396685532,), (1396685575,), (1396685578,), (1396685581,), (1396685585,), (1396685656,), (1396685660,), (1396685663,), (1396685694,), (1396685696,), (1396685698,), (1396685701,), (1396685705,), (1396685707,), (1396685755,), (1396685756,), (1396685757,), (1396685759,), (1396685779,), (1396685789,), (1396685795,), (1396685798,), (1396685801,), (1396685805,), (1396685823,), (1396685825,), (1396685827,), (1396685836,), (1396685846,), (1396685867,), (1396685868,), (1396685869,), (1396685871,), (1396685874,), (1396685877,), (1396688599,), (1396688557,), (1396688561,), (1396688569,), (1396688576,), (1396688945,), (1396688979,), (1396689052,), (1396689099,), (1396689135,), (1396689193,), (1396689528,), (1396689564,), (1396689596,), (1396689999,), (1396690002,), (1396690004,), (1396690007,), (1396690011,), (1396690015,), (1396690038,), (1396690039,), (1396690040,), (1396690042,), (1396690390,), (1396690423,), (1396690457,), (1396690465,), (1396690470,), (1396690501,), (1396690895,), (1396690926,), (1396690959,), (1396690989,), (1396691023,), (1396691284,), (1396691285,), (1396691287,), (1396691290,), (1396691476,), (1396691508,), (1396691538,), (1396691568,), (1396691619,), (1396691663,), (1396692087,), (1396692121,), (1396692153,), (1396692188,), (1396692455,), (1396692458,), (1396692460,), (1396692466,), (1396692498,), (1396692536,), (1396692711,), (1396692734,), (1396692741,), (1396692800,), (1396692803,), (1396692804,), (1396692806,), (1396692829,), (1396692833,), (1396692847,), (1396692864,), (1396692897,), (1396692933,), (1396692969,), (1396693197,), (1396692998,), (1396693020,), (1396693051,), (1396693097,), (1396693137,), (1396693260,), (1396693263,), (1396693268,), (1396693271,), (1396693283,), (1396693517,), (1396693540,), (1396693541,), (1396693543,), (1396693672,), (1396693675,), (1396693679,), (1396693684,), (1396693689,), (1396693693,), (1396693714,), (1396693716,), (1396693719,), (1396693887,), (1396693918,), (1396693950,), (1396693985,), (1396694021,), (1396694056,), (1396694401,), (1396694434,), (1396694474,), (1396694513,), (1396694986,), (1396695062,), (1396695083,), (1396695086,), (1396695089,), (1396695092,), (1396695233,), (1396695267,), (1396695300,), (1396695335,), (1396695579,), (1396695580,), (1396695689,), (1396695697,), (1396695703,), (1396695706,), (1396695710,), (1396695722,), (1396695724,), (1396695727,), (1396695731,), (1396695734,), (1396695762,), (1396695764,), (1396695766,), (1396695769,), (1396695789,), (1396695790,), (1396695791,), (1396695793,), (1396695797,), (1396695801,), (1396695824,), (1396695830,), (1396695833,), (1396695845,), (1396695886,), (1396695871,), (1396695872,), (1396695880,), (1396695882,), (1396695885,), (1396695901,), (1396695903,), (1396695905,), (1396696010,), (1396696012,), (1396696017,), (1396696056,), (1396696099,), (1396696420,), (1396696582,), (1396696619,), (1396696655,), (1396696699,), (1396697249,), (1396697313,), (1396697378,), (1396697440,), (1396697988,), (1396698020,), (1396698053,), (1396698060,), (1396698063,), (1396698065,), (1396698190,), (1396698224,), (1396698259,), (1396698304,), (1396698361,), (1396698858,), (1396698896,), (1396698930,), (1396698966,), (1396698998,), (1396699157,), (1396699166,), (1396699177,), (1396699179,), (1396699357,), (1396699359,), (1396699361,), (1396699364,), (1396699367,), (1396699370,), (1396699386,), (1396699399,), (1396699410,), (1396699415,), (1396699558,), (1396699591,), (1396699597,), (1396699602,), (1396699607,), (1396699612,), (1396699733,), (1396699719,), (1396699721,), (1396699723,), (1396699726,), (1396699811,), (1396699812,), (1396699814,), (1396699817,), (1396699820,), (1396699825,), (1396699845,), (1396699846,), (1396699849,), (1396699855,), (1396699859,), (1396699975,), (1396699989,), (1396699993,), (1396700011,), (1396700021,), (1396700025,), (1396700054,), (1396700057,), (1396700058,), (1396700060,), (1396700079,), (1396700081,), (1396700083,), (1396700086,), (1396700090,), (1396700093,), (1396700122,), (1396700124,), (1396700125,), (1396700127,), (1396700187,), (1396700189,), (1396700191,), (1396700194,), (1396700197,), (1396700232,), (1396700233,), (1396700234,), (1396700237,), (1396700247,), (1396700253,), (1396700267,), (1396700269,), (1396700271,), (1396700274,), (1396700278,), (1396700322,), (1396700323,), (1396700324,), (1396700326,), (1396700330,), (1396700334,), (1396700347,), (1396700349,), (1396700351,), (1396700359,), (1396700369,), (1396700516,), (1396700518,), (1396700519,), (1396700521,), (1396700525,), (1396700948,), (1396700986,), (1396701022,), (1396701042,), (1396701046,), (1396701157,), (1396701199,), (1396701233,), (1396701822,), (1396701488,), (1396701556,), (1396701619,), (1396701685,), (1396701761,), (1396702063,), (1396702064,), (1396702065,), (1396702066,), (1396702073,), (1396702526,), (1396702586,), (1396702648,), (1396702679,), (1396703119,), (1396703152,), (1396703185,), (1396703217,), (1396703251,), (1396703285,), (1396703589,), (1396703591,), (1396703593,), (1396703595,), (1396703799,), (1396703802,), (1396703806,), (1396703836,), (1396703868,), (1396703875,), (1396703942,), (1396703943,), (1396703944,), (1396703951,), (1396703955,), (1396704019,), (1396704022,), (1396704024,), (1396704026,), (1396704029,), (1396704032,), (1396704043,), (1396704044,), (1396704045,), (1396704047,), (1396704084,), (1396704085,), (1396704087,), (1396704090,), (1396704094,), (1396704098,), (1396704111,), (1396704113,), (1396704115,), (1396704118,), (1396704122,), (1396704153,), (1396704156,), (1396704160,), (1396704162,), (1396704166,), (1396704170,), (1396704240,), (1396704242,), (1396704244,), (1396704247,), (1396704277,), (1396704278,), (1396704281,), (1396704284,), (1396704287,), (1396704290,), (1396704314,), (1396704317,), (1396704320,), (1396704324,), (1396704329,), (1396704369,), (1396704359,), (1396704364,), (1396704366,), (1396704391,), (1396704401,), (1396704432,), (1396704472,), (1396704507,), (1396704989,), (1396705022,), (1396705067,), (1396705110,), (1396705145,), (1396705403,), (1396705404,), (1396705405,), (1396705407,), (1396705410,), (1396705413,), (1396705471,), (1396705509,), (1396705546,), (1396705579,), (1396705839,), (1396705853,), (1396705880,), (1396705894,), (1396705900,), (1396705904,), (1396705920,), (1396705922,), (1396705931,), (1396705941,), (1396705973,), (1396705974,), (1396705975,), (1396705976,), (1396705978,), (1396705981,), (1396706015,), (1396706017,), (1396706019,), (1396706022,), (1396706048,), (1396706049,), (1396706050,), (1396706052,), (1396706055,), (1396706072,), (1396706074,), (1396706076,), (1396706079,), (1396706097,), (1396706098,), (1396706099,), (1396706101,), (1396706105,), (1396706109,), (1396706140,), (1396706142,), (1396706144,), (1396706147,), (1396706169,), (1396706170,), (1396706171,), (1396706173,), (1396706177,), (1396706181,), (1396706212,), (1396706215,), (1396706217,), (1396706220,), (1396706252,), (1396706244,), (1396706245,), (1396706246,), (1396706248,), (1396706274,), (1396706276,), (1396706278,), (1396706283,), (1396706292,), (1396706317,), (1396706318,), (1396706319,), (1396706321,), (1396706351,), (1396706353,), (1396706355,), (1396706357,), (1396706361,), (1396706365,), (1396706381,), (1396706383,), (1396706386,), (1396706391,), (1396706408,), (1396706411,), (1396706415,), (1396706420,), (1396706425,), (1396706429,), (1396706443,), (1396706444,), (1396706445,), (1396706447,), (1396706451,), (1396706469,), (1396706471,), (1396706473,), (1396706493,), (1396706497,), (1396706533,), (1396706534,), (1396706535,), (1396706537,), (1396706562,), (1396706564,), (1396706566,), (1396706569,), (1396706572,), (1396706574,), (1396706592,), (1396706594,), (1396706596,), (1396706601,), (1396706604,), (1396706624,), (1396706626,), (1396706628,), (1396706631,), (1396706675,), (1396706685,), (1396706686,), (1396706698,), (1396706701,), (1396706703,), (1396706790,), (1396706847,), (1396706910,), (1396707155,), (1396707157,), (1396707158,), (1396707163,), (1396707200,), (1396707247,), (1396707237,), (1396707238,), (1396707240,), (1396707243,), (1396707266,), (1396707267,), (1396707268,), (1396707270,), (1396707276,), (1396707280,), (1396707297,), (1396707299,), (1396707300,), (1396707308,), (1396707319,), (1396707338,), (1396707339,), (1396707340,), (1396707342,), (1396707344,), (1396707348,), (1396707363,), (1396707369,), (1396707372,), (1396707379,), (1396707391,), (1396707407,), (1396707409,), (1396707412,), (1396707416,), (1396707420,), (1396707422,), (1396707442,), (1396707444,), (1396707446,), (1396707449,), (1396707543,), (1396707588,), (1396707623,), (1396707656,), (1396707699,), (1396707733,), (1396707853,), (1396707855,), (1396707857,), (1396707881,), (1396708121,), (1396708126,), (1396708127,), (1396708134,), (1396708148,), (1396708237,), (1396708239,), (1396708241,), (1396708244,), (1396708256,), (1396708275,), (1396708276,), (1396708277,), (1396708279,), (1396708283,), (1396708286,), (1396708308,), (1396708310,), (1396708312,), (1396708317,), (1396708324,), (1396708344,), (1396708359,), (1396708371,), (1396708378,), (1396708382,), (1396708386,), (1396708396,), (1396708399,), (1396708402,), (1396708436,), (1396708419,), (1396708422,), (1396708425,), (1396708428,), (1396708433,), (1396708799,), (1396708836,), (1396708872,), (1396709401,), (1396709457,), (1396709488,), (1396709508,), (1396709511,), (1396709516,), (1396709626,), (1396709691,), (1396709750,), (1396709815,), (1396709879,), (1396710218,), (1396710231,), (1396710233,), (1396710236,), (1396710240,), (1396710448,), (1396710495,), (1396710540,), (1396710573,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29010155]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] map_info['map_portfolio_photo'] : {29010155: [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626, 1396709516, 1396709511, 1396709508, 1396709488, 1396709457, 1396709401, 1396708872, 1396708836, 1396708799, 1396708433, 1396708428, 1396708425, 1396708422, 1396708419]} final : True mtd_id 4302 list_pids : [1396710573, 1396710540, 1396710495, 1396710448, 1396710240, 1396710236, 1396710233, 1396710231, 1396710218, 1396709879, 1396709815, 1396709750, 1396709691, 1396709626] Looping around the photos to save general results len do output : 1 /29010155Didn'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, '4138230') ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230') ('4302', None, None, None, None, None, None, None, '4138230') ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29010155', 'None', None, None, None, None, '4138230'), ('4302', '29010155', '1396710573', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710540', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710495', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710448', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710240', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710236', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710233', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710231', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396710218', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709879', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709815', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709750', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709691', None, None, None, None, None, '4138230'), ('4302', '29010155', '1396709626', None, None, None, None, None, '4138230')] time used for this insertion : 0.016499996185302734 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.305437326431274 time spend to save output : 0.016788005828857422 total time spend for step 5 : 4.322225332260132 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 (4138230) 2.55user 2.46system 0:10.65elapsed 47%CPU (0avgtext+0avgdata 168804maxresident)k 32inputs+9248outputs (0major+77375minor)pagefaults 0swaps