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 : 3058940 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 (3969443) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3969443) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983628 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3969443'] with mtr_portfolio_ids : ['27983628'] and first list_photo_ids : [] new path : /proc/3058940/ Name: python3 Umask: 0002 State: R (running) Tgid: 3058940 Ngid: 0 Pid: 3058940 PPid: 3058939 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3058940 NSpid: 3058940 NSpgid: 3058261 NSsid: 3058261 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99376 kB VmRSS: 99376 kB RssAnon: 59904 kB RssFile: 39472 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 40 nonvoluntary_ctxt_switches: 139 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3058940', 'Ngid': '0', 'Pid': '3058940', 'PPid': '3058939', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3058940', 'NSpid': '3058940', 'NSpgid': '3058261', 'NSsid': '3058261', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99376 kB', 'VmRSS': '99376 kB', 'RssAnon': '59904 kB', 'RssFile': '39472 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '40', 'nonvoluntary_ctxt_switches': '139'} ('datou_batch_current', '3058940', '1106908', '0', '1106884', '865636', '99376', b'', 'marlene', '3969443') 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 (27983628) 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 (3969443 ) ) 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 (27983628) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1390742313, 'portfolio_id': 27983628}, {'photo_id': 1390742312, 'portfolio_id': 27983628}, {'photo_id': 1390741542, 'portfolio_id': 27983628}, {'photo_id': 1390741326, 'portfolio_id': 27983628}, {'photo_id': 1390741140, 'portfolio_id': 27983628}, {'photo_id': 1390740998, 'portfolio_id': 27983628}, {'photo_id': 1390740948, 'portfolio_id': 27983628}, {'photo_id': 1390740519, 'portfolio_id': 27983628}, {'photo_id': 1390740485, 'portfolio_id': 27983628}, {'photo_id': 1390740451, 'portfolio_id': 27983628}, {'photo_id': 1390740412, 'portfolio_id': 27983628}, {'photo_id': 1390740367, 'portfolio_id': 27983628}, {'photo_id': 1390739603, 'portfolio_id': 27983628}, {'photo_id': 1390739545, 'portfolio_id': 27983628}, {'photo_id': 1390739503, 'portfolio_id': 27983628}, {'photo_id': 1390739340, 'portfolio_id': 27983628}, {'photo_id': 1390739297, 'portfolio_id': 27983628}, {'photo_id': 1390739255, 'portfolio_id': 27983628}, {'photo_id': 1390739202, 'portfolio_id': 27983628}, {'photo_id': 1390739162, 'portfolio_id': 27983628}, {'photo_id': 1390738318, 'portfolio_id': 27983628}, {'photo_id': 1390738317, 'portfolio_id': 27983628}, {'photo_id': 1390738313, 'portfolio_id': 27983628}, {'photo_id': 1390738312, 'portfolio_id': 27983628}, {'photo_id': 1390738309, 'portfolio_id': 27983628}, {'photo_id': 1390738308, 'portfolio_id': 27983628}, {'photo_id': 1390738306, 'portfolio_id': 27983628}, {'photo_id': 1390738305, 'portfolio_id': 27983628}, {'photo_id': 1390738066, 'portfolio_id': 27983628}, {'photo_id': 1390738062, 'portfolio_id': 27983628}, {'photo_id': 1390738054, 'portfolio_id': 27983628}, {'photo_id': 1390738019, 'portfolio_id': 27983628}, {'photo_id': 1390737981, 'portfolio_id': 27983628}, {'photo_id': 1390737096, 'portfolio_id': 27983628}, {'photo_id': 1390737062, 'portfolio_id': 27983628}, {'photo_id': 1390737010, 'portfolio_id': 27983628}, {'photo_id': 1390736864, 'portfolio_id': 27983628}, {'photo_id': 1390736779, 'portfolio_id': 27983628}, {'photo_id': 1390736770, 'portfolio_id': 27983628}, {'photo_id': 1390735997, 'portfolio_id': 27983628}, {'photo_id': 1390735856, 'portfolio_id': 27983628}, {'photo_id': 1390735729, 'portfolio_id': 27983628}, {'photo_id': 1390735700, 'portfolio_id': 27983628}, {'photo_id': 1390735117, 'portfolio_id': 27983628}] map_portfolio_id_photo_id: {27983628: [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948, 1390740519, 1390740485, 1390740451, 1390740412, 1390740367, 1390739603, 1390739545, 1390739503, 1390739340, 1390739297, 1390739255, 1390739202, 1390739162, 1390738318, 1390738317, 1390738313, 1390738312, 1390738309, 1390738308, 1390738306, 1390738305, 1390738066, 1390738062, 1390738054, 1390738019, 1390737981, 1390737096, 1390737062, 1390737010, 1390736864, 1390736779, 1390736770, 1390735997, 1390735856, 1390735729, 1390735700, 1390735117]} ##### 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.015685558319091797 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Oct 30 23:56:29 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 (27983628) 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 : 27983628 get user id for portfolio 27983628 get sub ptf for main ptf 27983628, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'cartonnette', 'Carton_gris', 'papier', 'mal_croppe', 'environnement', 'metal', 'Carton_brun', 'plastique', 'autre_refus', 'kraft'] 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`=27983628 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','cartonnette','Carton_gris','papier','mal_croppe','environnement','metal','Carton_brun','plastique','autre_refus','kraft')) 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`=27983628 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','cartonnette','Carton_gris','papier','mal_croppe','environnement','metal','Carton_brun','plastique','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27983628, 'sub_port_id': 27983629, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902195, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'papier': {'main_port_id': 27983628, 'sub_port_id': 27983630, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902196, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'environnement': {'main_port_id': 27983628, 'sub_port_id': 27983631, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902197, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'plastique': {'main_port_id': 27983628, 'sub_port_id': 27983632, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902198, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'autre_refus': {'main_port_id': 27983628, 'sub_port_id': 27983633, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902199, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'kraft': {'main_port_id': 27983628, 'sub_port_id': 27983634, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902200, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'flou': {'main_port_id': 27983628, 'sub_port_id': 27983635, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902201, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'cartonnette': {'main_port_id': 27983628, 'sub_port_id': 27983636, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902202, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'Carton_gris': {'main_port_id': 27983628, 'sub_port_id': 27983637, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902203, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'Carton_brun': {'main_port_id': 27983628, 'sub_port_id': 27983638, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902204, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'metal': {'main_port_id': 27983628, 'sub_port_id': 27983639, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902205, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 27983628, 'sub_port_id': 27983640, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902206, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983629 , 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=27983628 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 (27983629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983630 , 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=27983628 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 (27983630) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983631 , 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=27983628 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 (27983631) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983632 , 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=27983628 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 (27983632) result : ((1390740569,), (1390740654,), (1390740657,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983633 , 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=27983628 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 (27983633) result : ((1390740602,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983634 , 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=27983628 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 (27983634) result : ((1390740677,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983635 , 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=27983628 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 (27983635) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983636 , 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=27983628 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 (27983636) result : ((1390740623,), (1390740625,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983637 , 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=27983628 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 (27983637) result : ((1390740551,), (1390740553,), (1390740555,), (1390740612,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983638 , 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=27983628 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 (27983638) result : ((1390740563,), (1390740564,), (1390740565,), (1390740566,), (1390740567,), (1390740568,), (1390740635,), (1390742303,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983639 , 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=27983628 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 (27983639) result : ((1390740571,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27983640 , 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=27983628 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 (27983640) result : ((1390740533,), (1390740536,), (1390740582,), (1390740584,), (1390740586,), (1390740588,), (1390740590,), (1390740592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27983628) result : ((1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) 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 (1390735700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27983628 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','cartonnette','Carton_gris','papier','mal_croppe','environnement','metal','Carton_brun','plastique','autre_refus','kraft')) 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`=27983628 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','cartonnette','Carton_gris','papier','mal_croppe','environnement','metal','Carton_brun','plastique','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27983628, 'sub_port_id': 27983641, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902207, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'papier': {'main_port_id': 27983628, 'sub_port_id': 27983642, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902208, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'environnement': {'main_port_id': 27983628, 'sub_port_id': 27983643, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902209, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'plastique': {'main_port_id': 27983628, 'sub_port_id': 27983644, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902210, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'autre_refus': {'main_port_id': 27983628, 'sub_port_id': 27983645, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902211, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'kraft': {'main_port_id': 27983628, 'sub_port_id': 27983646, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902212, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'flou': {'main_port_id': 27983628, 'sub_port_id': 27983647, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902213, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'cartonnette': {'main_port_id': 27983628, 'sub_port_id': 27983648, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902214, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'Carton_gris': {'main_port_id': 27983628, 'sub_port_id': 27983649, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902215, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'Carton_brun': {'main_port_id': 27983628, 'sub_port_id': 27983650, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902216, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'metal': {'main_port_id': 27983628, 'sub_port_id': 27983651, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902217, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 27983628, 'sub_port_id': 27983652, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18902218, 'last_updated_at': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_desc': datetime.datetime(2025, 10, 30, 23, 54, 30), 'last_updated_at_asc': datetime.datetime(2025, 10, 30, 23, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983645,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983633 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983646,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983634 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983647,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983648,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983636 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983649,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983650,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983638 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983651,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27983652,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27983640 lien utilise dans velours : https://marlene.fotonower.com/velours/27983641,27983642,27983643,27983644,27983645,27983646,27983647,27983648,27983649,27983650,27983651,27983652?tags=mal_croppe,papier,environnement,plastique,autre_refus,kraft,flou,cartonnette,Carton_gris,Carton_brun,metal,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27983628]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] map_info['map_portfolio_photo'] : {27983628: [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948, 1390740519, 1390740485, 1390740451, 1390740412, 1390740367, 1390739603, 1390739545, 1390739503, 1390739340, 1390739297, 1390739255, 1390739202, 1390739162, 1390738318, 1390738317, 1390738313, 1390738312, 1390738309, 1390738308, 1390738306, 1390738305, 1390738066, 1390738062, 1390738054, 1390738019, 1390737981, 1390737096, 1390737062, 1390737010, 1390736864, 1390736779, 1390736770, 1390735997, 1390735856, 1390735729, 1390735700, 1390735117]} final : False mtd_id 4302 list_pids : [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] Looping around the photos to save general results len do output : 1 /27983628. 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, '3969443') ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27983628', "{'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640}", None, None, None, None, '3969443'), ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443')] time used for this insertion : 0.01128244400024414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44481873512268066 time spend to save output : 0.011595964431762695 total time spend for step 1 : 0.45641469955444336 step2:final Thu Oct 30 23:56:29 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 (27983628) 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 27983628 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1390735117,1390735997,1390735856,1390735729,1390735700,1390737096,1390737062,1390737010,1390736864,1390736779,1390736770,1390738066,1390738062,1390738054,1390738019,1390737981,1390738318,1390738317,1390738312,1390738313,1390738309,1390738308,1390738306,1390738305,1390739340,1390739297,1390739255,1390739202,1390739162,1390739603,1390739545,1390739503,1390740519,1390740485,1390740451,1390740412,1390741542,1390740367,1390741326,1390741140,1390740998,1390740948,1390742312,1390742313); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27983628]) Inside saveOutput : final : False verbose : True original output for save of step final : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} new output for save of step final : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] map_info['map_portfolio_photo'] : {27983628: [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948, 1390740519, 1390740485, 1390740451, 1390740412, 1390740367, 1390739603, 1390739545, 1390739503, 1390739340, 1390739297, 1390739255, 1390739202, 1390739162, 1390738318, 1390738317, 1390738313, 1390738312, 1390738309, 1390738308, 1390738306, 1390738305, 1390738066, 1390738062, 1390738054, 1390738019, 1390737981, 1390737096, 1390737062, 1390737010, 1390736864, 1390736779, 1390736770, 1390735997, 1390735856, 1390735729, 1390735700, 1390735117]} final : False mtd_id 4302 list_pids : [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] Looping around the photos to save general results len do output : 7 /1390742313.Didn't retrieve data . /1390742312.Didn't retrieve data . /1390741542.Didn't retrieve data . /1390741326.Didn't retrieve data . /1390741140.Didn't retrieve data . /1390740998.Didn't retrieve data . /1390740948.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, '3969443') ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '27983628', '1390742313', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390742312', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390741542', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390741326', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390741140', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390740998', '0.03813712030589811', None, None, None, None, '3969443'), ('4302', '27983628', '1390740948', '0.03813712030589811', None, None, None, None, '3969443')] time used for this insertion : 0.011647939682006836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06530046463012695 time spend to save output : 0.012068033218383789 total time spend for step 2 : 0.07736849784851074 step3:velours_tree Thu Oct 30 23:56:29 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 : {27983628: [{'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640}]} input_args_next_step : {27983628: ()} output_args : {27983628: [{'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640}]} args : 27983628 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 : ({'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27983628) 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([27983628]) 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.3054194450378418 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.3054780960083008 step4:send_mail_cod Thu Oct 30 23:56:29 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 : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} input_args_next_step : {1390742313: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390742313 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390742312 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390741542 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390741326 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390741140 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390740998 depend.output_id : 0 input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ()} output_args : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',)} args : 1390740948 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 : {27983628: [{'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640}]} input_args_next_step : {1390742313: ('0.03813712030589811',), 1390742312: ('0.03813712030589811',), 1390741542: ('0.03813712030589811',), 1390741326: ('0.03813712030589811',), 1390741140: ('0.03813712030589811',), 1390740998: ('0.03813712030589811',), 1390740948: ('0.03813712030589811',), 27983628: ()} output_args : {27983628: [{'mal_croppe': 27983629, 'papier': 27983630, 'environnement': 27983631, 'plastique': 27983632, 'autre_refus': 27983633, 'kraft': 27983634, 'flou': 27983635, 'cartonnette': 27983636, 'Carton_gris': 27983637, 'Carton_brun': 27983638, 'metal': 27983639, 'Teint_Dans_La_Masse': 27983640}]} args : 27983628 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 :8, first value : ('0.03813712030589811',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27983628) 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 (1390742313,1390742312,1390741542,1390741326,1390741140,1390740998,1390740948) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1390740948 begin to download photo : 1390741140 begin to download photo : 1390741542 begin to download photo : 1390742313 download finish for photo 1390742313 download finish for photo 1390741140 begin to download photo : 1390741326 download finish for photo 1390740948 begin to download photo : 1390740998 download finish for photo 1390741542 begin to download photo : 1390742312 download finish for photo 1390740998 download finish for photo 1390741326 download finish for photo 1390742312 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette279836291761864990/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P27983628_30-10-2025_23_56_30.pdf 27983629 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=27983629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279836291761864990 27983632 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=27983632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740569: '1761864785_4047085_1390736770_7e38f9233a3db41651bfbdb0a15c74a5_rle_crop_4006730772_0.png', 1390740654: '1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730860_0.png', 1390740657: '1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730894_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/6f9c3a120e72c39e3e024bca7ed67e7d_51854332.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/a0cce0995da346736d4328dd7e41addd_13769194.png change filename to text .imagette279836321761864990/ imagette279836321761864990/1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730894_0.png.png imagette279836321761864990/1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730860_0.png.png imagette279836321761864990/1761864785_4047085_1390736770_7e38f9233a3db41651bfbdb0a15c74a5_rle_crop_4006730772_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/13a8db725ce5eaf23add9b3394192753_9378641.png imagette279836321761864990 27983633 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=27983633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740602: '1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730879_0.png'} change filename to text .imagette279836331761864990/ imagette279836331761864990/1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730879_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/3704e530ceda421fed9778b0e0cc2674_11069455.png imagette279836331761864990 27983634 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=27983634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740677: '1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730892_0.png'} change filename to text .imagette279836341761864990/ imagette279836341761864990/1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730892_0.png.png imagette279836351761864990/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/918d0ff4248a2bfe4daf35f670b5ec14_5320664.png imagette279836341761864990 27983635 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=27983635 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette279836351761864990 27983636 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=27983636 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740623: '1761864806_4047555_1390737096_bf01b6ba45d7c3cd581b407ba160bca5_rle_crop_4006730848_0.png', 1390740625: '1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730859_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/f61fbf2b7d37750661b86fcd78a9afc4_88609816.png change filename to text .imagette279836361761864990/ imagette279836361761864990/1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730859_0.png.png imagette279836361761864990/1761864806_4047555_1390737096_bf01b6ba45d7c3cd581b407ba160bca5_rle_crop_4006730848_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b7ca3e41f1f9f1470a5b7087faf93653_12967733.png imagette279836361761864990 27983639 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=27983639 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740571: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730680_0.png'} change filename to text .imagette279836391761864990/ imagette279836391761864990/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730680_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e47a1a3a19002139a3dda7f434444d0a_86764082.png imagette279836391761864990 27983637 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=27983637 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740551: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730686_0.png', 1390740553: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730688_0.png', 1390740555: '1761864785_4047085_1390736779_fd7eda0bdfb603bf41716be5132e7dfc_rle_crop_4006730706_0.png', 1390740612: '1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730876_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/45d0d220face1f8f6e14823ab7d0339c_3786019.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/b88a6f55a2a88418f87f91e8d41102e7_42318402.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/e536ec65c9aa4f26aace32e33963b731_79535763.png change filename to text .imagette279836371761864991/ imagette279836371761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730688_0.png.png imagette279836371761864991/1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730876_0.png.png imagette279836371761864991/1761864785_4047085_1390736779_fd7eda0bdfb603bf41716be5132e7dfc_rle_crop_4006730706_0.png.png imagette279836371761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730686_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/fd090d8844b2e98e82866507678ed267_66449660.png imagette279836371761864991 27983638 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=27983638 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740563: '1761864785_4047085_1390738066_fc68aef61abf0eae2ca215673fe81a23_rle_crop_4006730653_0.png', 1390740564: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730678_0.png', 1390740565: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730683_0.png', 1390740566: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730682_0.png', 1390740567: '1761864785_4047085_1390736864_bc392705043c8669a0ee26bbcf3902cf_rle_crop_4006730698_0.png', 1390740568: '1761864785_4047085_1390736770_7e38f9233a3db41651bfbdb0a15c74a5_rle_crop_4006730776_0.png', 1390740635: '1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730891_0.png', 1390742303: '1761864906_4055624_1390735117_4e8fd930fbda20be77e52cc81180b47b_rle_crop_4006731125_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/bddd759b91db96911b5d18dc2120c932_37765576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/ba1da80cfff19de6fee2e1c98d825b22_60375434.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2a76f3abbf3138ba7bc2b2c604a019e9_7321435.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0272ee4f9dc0275fc6e0d27dbe4942d4_64888641.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/4c4ce898a390b0a4646a76dfe306e23c_46025789.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/16a9dbb5bd04d7ed364b169b2982ba70_3399185.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/9cf0405c785476408e9f44c7d08d9410_31728376.png change filename to text .imagette279836381761864991/ imagette279836381761864991/1761864906_4055624_1390735117_4e8fd930fbda20be77e52cc81180b47b_rle_crop_4006731125_0.png.png imagette279836381761864991/1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730891_0.png.png imagette279836381761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730678_0.png.png imagette279836381761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730683_0.png.png imagette279836381761864991/1761864785_4047085_1390738066_fc68aef61abf0eae2ca215673fe81a23_rle_crop_4006730653_0.png.png imagette279836381761864991/1761864785_4047085_1390736770_7e38f9233a3db41651bfbdb0a15c74a5_rle_crop_4006730776_0.png.png imagette279836381761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730682_0.png.png imagette279836381761864991/1761864785_4047085_1390736864_bc392705043c8669a0ee26bbcf3902cf_rle_crop_4006730698_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/90c6136de1510e3f8d7b814c2789d81c_8782793.png imagette279836381761864991 27983640 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=27983640 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1390740533: '1761864785_4047085_1390737062_f4979dcb0949aeb929423f43aff5cfa0_rle_crop_4006730668_0.png', 1390740536: '1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730684_0.png', 1390740582: '1761864806_4047555_1390737096_bf01b6ba45d7c3cd581b407ba160bca5_rle_crop_4006730855_0.png', 1390740584: '1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730863_0.png', 1390740586: '1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730862_0.png', 1390740588: '1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730867_0.png', 1390740590: '1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730878_0.png', 1390740592: '1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730898_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/2aa97768899b4e10909529bfb55f6bc4_4373466.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/04ec4d69daca55bb9cbd328afe832bb6_75309791.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/1fdf4aa0287f0d274fd0940fa01b4c91_90222751.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/7a0d5623306c275ccc01323f1a63bf34_21189506.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/0c6a9c9e84f38a287f9d0940f7ac39fb_17458708.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/da8cf91bf5dffc1364488718caeecce6_66967252.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/74d73fbd88dd812a3cb78911a47b31b9_38928058.png change filename to text .imagette279836401761864991/ imagette279836401761864991/1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730863_0.png.png imagette279836401761864991/1761864806_4047555_1390737096_bf01b6ba45d7c3cd581b407ba160bca5_rle_crop_4006730855_0.png.png imagette279836401761864991/1761864785_4047085_1390737010_1bccc193847c4de76ccc395ac9f4cf44_rle_crop_4006730684_0.png.png imagette279836401761864991/1761864806_4047555_1390735729_22f7c05610c3e6c6b9917acae53423f8_rle_crop_4006730878_0.png.png imagette279836401761864991/1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730867_0.png.png imagette279836401761864991/1761864785_4047085_1390737062_f4979dcb0949aeb929423f43aff5cfa0_rle_crop_4006730668_0.png.png imagette279836401761864991/1761864806_4047555_1390735700_5335ae11b56eddcbeb63a4afaa3e357c_rle_crop_4006730898_0.png.png imagette279836401761864991/1761864806_4047555_1390735856_c23659d6582107c9817daa05b6bf93b7_rle_crop_4006730862_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/d6fa891b988a4890fdac28da80626f0f_9137263.png imagette279836401761864991 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27983628 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27983641,27983642,27983643,27983644,27983645,27983646,27983647,27983648,27983649,27983650,27983651,27983652?tags=mal_croppe,papier,environnement,plastique,autre_refus,kraft,flou,cartonnette,Carton_gris,Carton_brun,metal,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1390742313] : ('0.03813712030589811',) no score found for photo 1390742313 We are sending mail with results at report@fotonower.com args[1390742312] : ('0.03813712030589811',) no score found for photo 1390742312 We are sending mail with results at report@fotonower.com args[1390741542] : ('0.03813712030589811',) no score found for photo 1390741542 We are sending mail with results at report@fotonower.com args[1390741326] : ('0.03813712030589811',) no score found for photo 1390741326 We are sending mail with results at report@fotonower.com args[1390741140] : ('0.03813712030589811',) no score found for photo 1390741140 We are sending mail with results at report@fotonower.com args[1390740998] : ('0.03813712030589811',) no score found for photo 1390740998 We are sending mail with results at report@fotonower.com args[1390740948] : ('0.03813712030589811',) no score found for photo 1390740948 We are sending mail with results at report@fotonower.com refus_total : 0.03813712030589811 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=27983628 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_P27983628_30-10-2025_23_56_30.pdf results_Auto_P27983628_30-10-2025_23_56_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27983628_30-10-2025_23_56_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','27983628','results_Auto_P27983628_30-10-2025_23_56_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27983628_30-10-2025_23_56_30.pdf','pdf','','0.14','0.03813712030589811') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27983628]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] map_info['map_portfolio_photo'] : {27983628: [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948, 1390740519, 1390740485, 1390740451, 1390740412, 1390740367, 1390739603, 1390739545, 1390739503, 1390739340, 1390739297, 1390739255, 1390739202, 1390739162, 1390738318, 1390738317, 1390738313, 1390738312, 1390738309, 1390738308, 1390738306, 1390738305, 1390738066, 1390738062, 1390738054, 1390738019, 1390737981, 1390737096, 1390737062, 1390737010, 1390736864, 1390736779, 1390736770, 1390735997, 1390735856, 1390735729, 1390735700, 1390735117]} final : False mtd_id 4302 list_pids : [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] 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, '3969443') ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '27983628', '1390742313', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443')] time used for this insertion : 0.010761260986328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4447999000549316 time spend to save output : 0.01094818115234375 total time spend for step 4 : 3.4557480812072754 step5:split_time_score Thu Oct 30 23:56:33 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 : ['27983628'] 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 : [('27983628',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27983628) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1390742313: {'path': 'temp/1761864989_3058940_1390742313_490f4a56c5b2dc3f4215457d319dd913.jpg', 'extension': 'jpg'}, 1390740948: {'path': 'temp/1761864989_3058940_1390740948_75327cc252382e818ccc82494b6bd05a.jpg', 'extension': 'jpg'}, 1390740998: {'path': 'temp/1761864989_3058940_1390740998_b2a4180ed605ddb5cd7c483f6e986e1e.jpg', 'extension': 'jpg'}, 1390741140: {'path': 'temp/1761864989_3058940_1390741140_c24edfa0fa89f77efabc02d97f5b9729.jpg', 'extension': 'jpg'}, 1390741326: {'path': 'temp/1761864989_3058940_1390741326_40c9a508a8d831a139332a7cdf5159f5.jpg', 'extension': 'jpg'}, 1390741542: {'path': 'temp/1761864989_3058940_1390741542_90c6258a370b032bf564119cb3c7eacc.jpg', 'extension': 'jpg'}, 1390742312: {'path': 'temp/1761864989_3058940_1390742312_2352bb0d55c3e3ac1d344a32d5c2169b.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 = 27983628; (('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 = 27983628 group by h (('23', 44),) 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=27983628 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 (27983628) 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 (27983628) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30102025 27983628 Nombre de photos uploadées : 44 / 23040 (0%) 30102025 27983628 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 30102025 27983628 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1390735117, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/4e8fd930fbda20be77e52cc81180b47b.jpg', 'username': None, 'uploaded_at': 1761864377, 'text': 'image_30102025_23_45_34_009124m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390735997, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/8411eb5171c21f208cb2b7bb4aa3deee.jpg', 'username': None, 'uploaded_at': 1761864433, 'text': 'image_30102025_23_45_54_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1390735856, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/c23659d6582107c9817daa05b6bf93b7.jpg', 'username': None, 'uploaded_at': 1761864433, 'text': 'image_30102025_23_46_04_010150m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1390735729, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/30/22f7c05610c3e6c6b9917acae53423f8.jpg', 'username': None, 'uploaded_at': 1761864433, 'text': 'image_30102025_23_46_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002740144729614258 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27983628, '2025-10-30' ) 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-10-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2472886,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.198866605758667 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= 2472886 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27928884, 'dashboard_result_id': 16599723, '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_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27929435, 'dashboard_result_id': 16599724, '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_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27929931, 'dashboard_result_id': 16599725, '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_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27930441, 'dashboard_result_id': 16599726, '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_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27931641, 'dashboard_result_id': 16599727, '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_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27931962, 'dashboard_result_id': 16599728, '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_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27932426, 'dashboard_result_id': 16599729, '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_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27932875, 'dashboard_result_id': 16599730, '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_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27933317, 'dashboard_result_id': 16599731, '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_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27933735, 'dashboard_result_id': 16599732, '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_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27934173, 'dashboard_result_id': 16599733, '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_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27934609, 'dashboard_result_id': 16599734, '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_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27934992, 'dashboard_result_id': 16599735, '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_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27935398, 'dashboard_result_id': 16599736, '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_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27935710, 'dashboard_result_id': 16599737, '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_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27936581, 'dashboard_result_id': 16599738, '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_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27936898, 'dashboard_result_id': 16599739, '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_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27937104, 'dashboard_result_id': 16599740, '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_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27937503, 'dashboard_result_id': 16599741, '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_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27937856, 'dashboard_result_id': 16599742, '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_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27938278, 'dashboard_result_id': 16599743, '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_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27938787, 'dashboard_result_id': 16599744, '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_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27939227, 'dashboard_result_id': 16599745, '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_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27939778, 'dashboard_result_id': 16599746, '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_P27939778_30-10-2025_07_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27940428, 'dashboard_result_id': 16599747, '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_P27940428_30-10-2025_07_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27940446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27940447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27940448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27940449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27940450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27940451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27940452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27940453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27940454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27940455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27940457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27940458, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27940989, 'dashboard_result_id': 16599748, '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_P27940989_30-10-2025_07_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27941005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941016, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27941663, 'dashboard_result_id': 16599749, '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_P27941663_30-10-2025_08_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27941688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941690, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27942181, 'dashboard_result_id': 16599750, '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_P27942181_30-10-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27942223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942234, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27942844, 'dashboard_result_id': 16599751, '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_P27942844_30-10-2025_08_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27942872, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27943711, 'dashboard_result_id': 16599752, '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_P27943711_30-10-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27943727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27943728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27943729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27943730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27943731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27943732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27943733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27943734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27943735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27943736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27943737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27943738, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27944216, 'dashboard_result_id': 16599753, '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_P27944216_30-10-2025_09_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944275, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27944777, 'dashboard_result_id': 16599754, '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_P27944777_30-10-2025_14_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944861, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27952598, 'dashboard_result_id': 16599755, '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_P27952598_30-10-2025_14_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952616, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27952719, 'dashboard_result_id': 16599756, '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_P27952719_30-10-2025_14_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952748, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27953707, 'dashboard_result_id': 16599757, '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_P27953707_30-10-2025_14_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27953710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27953711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27953712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27953713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27953714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27953715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27953716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27953717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27953718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27953719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27953720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27953721, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27954575, 'dashboard_result_id': 16599758, '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_P27954575_30-10-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954626, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27954783, 'dashboard_result_id': 16599759, '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_P27954783_30-10-2025_15_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954842, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27955664, 'dashboard_result_id': 16599760, '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_P27955664_30-10-2025_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27955669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27955670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27955671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27955672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27955673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27955674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27955675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27955676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27955677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27955678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27955679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27955680, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27956493, 'dashboard_result_id': 16599761, '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_P27956493_30-10-2025_15_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27956546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27956547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27956548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27956549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27956550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27956551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27956553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27956554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27956555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27956556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27956557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27956558, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27957270, 'dashboard_result_id': 16599762, '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_P27957270_30-10-2025_15_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27957295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27957296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27957297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27957298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27957299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27957300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27957301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27957302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27957303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27957304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27957305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27957306, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27958034, 'dashboard_result_id': 16599763, '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_P27958034_30-10-2025_16_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27958044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958054, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27958868, 'dashboard_result_id': 16599764, '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_P27958868_30-10-2025_16_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27958897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958908, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27959684, 'dashboard_result_id': 16599765, '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_P27959684_30-10-2025_16_37_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27959754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27959755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27959756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27959757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27959758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27959759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27959760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27959762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27959763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27959764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27959766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27959767, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27960486, 'dashboard_result_id': 16599766, '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_P27960486_30-10-2025_16_52_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27960558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27960559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27960560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27960561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27960562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27960563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27960564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27960565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27960566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27960567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27960568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27960569, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27961757, 'dashboard_result_id': 16599767, '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_P27961757_30-10-2025_17_05_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27961799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27961800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27961801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27961802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27961803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27961804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27961805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27961806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27961807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27961808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27961809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27961810, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27962460, 'dashboard_result_id': 16599768, '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_P27962460_30-10-2025_17_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27962470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27962471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27962472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27962473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27962474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27962475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27962476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27962477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27962478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27962479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27962480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27962481, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27963183, 'dashboard_result_id': 16599769, '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_P27963183_30-10-2025_17_46_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27963193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27963194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27963195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27963196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27963197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27963198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27963199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27963200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27963201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27963202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27963203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27963204, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27965326, 'dashboard_result_id': 16599770, '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_P27965326_30-10-2025_18_23_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27965493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27965494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27965495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27965496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27965497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27965498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27965499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27965500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27965501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27965502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27965503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27965504, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27966167, 'dashboard_result_id': 16599771, '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_P27966167_30-10-2025_18_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27966205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966206, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27966688, 'dashboard_result_id': 16599772, '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_P27966688_30-10-2025_20_01_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27966701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966712, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27967424, 'dashboard_result_id': 16599773, '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_P27967424_30-10-2025_19_07_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27967427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27967428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27967429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27967430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27967431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27967432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27967433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27967434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27967435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27967436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27967437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27967438, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27968079, 'dashboard_result_id': 16599774, '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_P27968079_30-10-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27968247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27968250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27968254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27968259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27968260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27968262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968263, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27968936, 'dashboard_result_id': 16599775, '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_P27968936_30-10-2025_19_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969005, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27969832, 'dashboard_result_id': 16599776, '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_P27969832_30-10-2025_19_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27969942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27969943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27969945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27969946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27969948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27969949, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27970710, 'dashboard_result_id': 16599777, '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_P27970710_30-10-2025_20_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27970753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27970754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27970756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27970757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27970758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27970759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27970760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27970761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27970762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27970763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27970764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27970766, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27971643, 'dashboard_result_id': 16599778, '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_P27971643_30-10-2025_20_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27971687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27971688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27971689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27971690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27971691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27971692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27971693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27971694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27971695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27971696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27971697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27971698, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27972492, 'dashboard_result_id': 16599779, '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_P27972492_30-10-2025_20_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27972510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27972511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27972512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27972513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27972514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27972515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27972516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27972517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27972518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27972519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27972520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27972521, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27973393, 'dashboard_result_id': 16599780, '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_P27973393_30-10-2025_21_06_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27973655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27973656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27973657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27973658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27973659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27973660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27973661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27973662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27973663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27973664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27973665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27973666, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27975321, 'dashboard_result_id': 16599781, '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_P27975321_30-10-2025_21_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975333, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27975835, 'dashboard_result_id': 16599782, '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_P27975835_30-10-2025_21_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975855, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27976551, 'dashboard_result_id': 16599783, '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_P27976551_30-10-2025_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27976570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27976571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27976572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27976573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27976574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27976575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27976576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27976577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27976578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27976579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27976580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27976582, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27977307, 'dashboard_result_id': 16599784, '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_P27977307_30-10-2025_22_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27977321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27977322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27977323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27977324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27977325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27977326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27977327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27977328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27977329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27977330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27977331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27977332, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27978319, 'dashboard_result_id': 16599785, '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_P27978319_30-10-2025_22_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978331, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27978925, 'dashboard_result_id': 16599786, '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_P27978925_30-10-2025_22_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978970, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27979628, 'dashboard_result_id': 16599787, '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_P27979628_30-10-2025_22_49_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27979738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27979739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27979740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27979741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27979742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27979743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27979744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27979745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27979746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27979747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27979748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27979749, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27980602, 'dashboard_result_id': 16599788, '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_P27980602_30-10-2025_23_00_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27980664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27980665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27980666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27980667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27980668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27980669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27980670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27980671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27980672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27980673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27980674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27980675, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27981308, 'dashboard_result_id': 16599789, '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_P27981308_30-10-2025_23_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27981363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27981364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27981365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27981366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27981367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27981368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27981369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27981370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27981371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27981372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27981373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27981374, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27982148, 'dashboard_result_id': 16599790, '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_P27982148_30-10-2025_23_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27982179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982187, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27982792, 'dashboard_result_id': 16599791, '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_P27982792_30-10-2025_23_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27982847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982858, 'pht': 3726}}"}, {'dashboat_entry_day': 2472886, 'dashboard_run_id': 2488087, 'mtr_portfolio_id': 27983628, 'dashboard_result_id': 16599792, '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_P27983628_30-10-2025_23_54_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27983629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27983630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27983631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27983632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27983633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27983634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27983635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27983636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27983637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27983638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27983639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27983640, '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 = 27928884 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': 3963961, 'mtr_portfolio_id': 27928884, 'created_at': datetime.datetime(2025, 10, 30, 6, 19, 58), 'result': '0.062346153849257756', 'result_long': None, 'result_double': None}] Qualite : 0.062346153849257756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27928884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27928884 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_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, 'pht': 3726}}" where mtr_portfolio_id = 27928884 and dashboard_run_id = 2488087 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`=27928884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599723, 0.062346153849257756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27928884_30-10-2025_06_20_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27928892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27928893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27928894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27928895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27928896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27928897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27928898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27928899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27928900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27928901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27928902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27928903, '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 = 27929435 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': 3963962, 'mtr_portfolio_id': 27929435, 'created_at': datetime.datetime(2025, 10, 30, 6, 20, 28), 'result': '0.047308975695691854', 'result_long': None, 'result_double': None}] Qualite : 0.047308975695691854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929435 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_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, 'pht': 3726}}" where mtr_portfolio_id = 27929435 and dashboard_run_id = 2488087 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`=27929435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599724, 0.047308975695691854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929435_30-10-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929451, '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 = 27929931 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': 3963963, 'mtr_portfolio_id': 27929931, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 9), 'result': '0.033146636154077376', 'result_long': None, 'result_double': None}] Qualite : 0.033146636154077376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27929931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_06_21_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27929931 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_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, 'pht': 3726}}" where mtr_portfolio_id = 27929931 and dashboard_run_id = 2488087 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`=27929931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599725, 0.033146636154077376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27929931_30-10-2025_06_21_11.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27929936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27929937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27929938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27929939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27929940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27929941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27929942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27929943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27929944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27929945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27929946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27929947, '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 = 27930441 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': 3963964, 'mtr_portfolio_id': 27930441, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 29), 'result': '0.06461271247938533', 'result_long': None, 'result_double': None}] Qualite : 0.06461271247938533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27930441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_06_21_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27930441 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_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, 'pht': 3726}}" where mtr_portfolio_id = 27930441 and dashboard_run_id = 2488087 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`=27930441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599726, 0.06461271247938533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27930441_30-10-2025_06_21_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27930445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27930446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27930447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27930448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27930449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27930450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27930451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27930452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27930453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27930454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27930455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27930456, '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 = 27931641 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': 3963965, 'mtr_portfolio_id': 27931641, 'created_at': datetime.datetime(2025, 10, 30, 6, 21, 57), 'result': '0.04891286087142294', 'result_long': None, 'result_double': None}] Qualite : 0.04891286087142294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_06_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931641 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_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, 'pht': 3726}}" where mtr_portfolio_id = 27931641 and dashboard_run_id = 2488087 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`=27931641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599727, 0.04891286087142294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931641_30-10-2025_06_21_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931654, '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 = 27931962 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': 3963966, 'mtr_portfolio_id': 27931962, 'created_at': datetime.datetime(2025, 10, 30, 6, 22, 30), 'result': '0.041105412075530284', 'result_long': None, 'result_double': None}] Qualite : 0.041105412075530284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27931962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_06_22_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27931962 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_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, 'pht': 3726}}" where mtr_portfolio_id = 27931962 and dashboard_run_id = 2488087 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`=27931962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599728, 0.041105412075530284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27931962_30-10-2025_06_22_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27931983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27931984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27931985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27931986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27931987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27931988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27931989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27931990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27931991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27931992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27931993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27931994, '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 = 27932426 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': 3963967, 'mtr_portfolio_id': 27932426, 'created_at': datetime.datetime(2025, 10, 30, 6, 23, 29), 'result': '0.044698309946748685', 'result_long': None, 'result_double': None}] Qualite : 0.044698309946748685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932426 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_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, 'pht': 3726}}" where mtr_portfolio_id = 27932426 and dashboard_run_id = 2488087 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`=27932426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599729, 0.044698309946748685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932426_30-10-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27932458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932461, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932467, '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 = 27932875 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': 3963968, 'mtr_portfolio_id': 27932875, 'created_at': datetime.datetime(2025, 10, 30, 6, 23, 58), 'result': '0.06318522430639435', 'result_long': None, 'result_double': None}] Qualite : 0.06318522430639435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27932875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_06_24_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27932875 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_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, 'pht': 3726}}" where mtr_portfolio_id = 27932875 and dashboard_run_id = 2488087 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`=27932875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599730, 0.06318522430639435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27932875_30-10-2025_06_24_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27932878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27932879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27932880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27932881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27932882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27932883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27932884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27932885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27932886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27932887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27932888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27932889, '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 = 27933317 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': 3963969, 'mtr_portfolio_id': 27933317, 'created_at': datetime.datetime(2025, 10, 30, 6, 24, 29), 'result': '0.042984225951589544', 'result_long': None, 'result_double': None}] Qualite : 0.042984225951589544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_06_24_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933317 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_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, 'pht': 3726}}" where mtr_portfolio_id = 27933317 and dashboard_run_id = 2488087 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`=27933317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599731, 0.042984225951589544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933317_30-10-2025_06_24_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27933321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933332, '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 = 27933735 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': 3963970, 'mtr_portfolio_id': 27933735, 'created_at': datetime.datetime(2025, 10, 30, 6, 25, 29), 'result': '0.07924195484013032', 'result_long': None, 'result_double': None}] Qualite : 0.07924195484013032 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27933735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_06_25_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27933735 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_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, 'pht': 3726}}" where mtr_portfolio_id = 27933735 and dashboard_run_id = 2488087 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`=27933735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599732, 0.07924195484013032, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27933735_30-10-2025_06_25_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27933745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27933746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27933747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27933748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27933749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27933750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27933751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27933752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27933753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27933754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27933755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27933756, '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 = 27934173 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': 3963971, 'mtr_portfolio_id': 27934173, 'created_at': datetime.datetime(2025, 10, 30, 6, 25, 58), 'result': '0.0517947579710479', 'result_long': None, 'result_double': None}] Qualite : 0.0517947579710479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_06_26_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934173 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_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, 'pht': 3726}}" where mtr_portfolio_id = 27934173 and dashboard_run_id = 2488087 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`=27934173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599733, 0.0517947579710479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934173_30-10-2025_06_26_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27934199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934203, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27934206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934208, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934209, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934210, '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 = 27934609 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': 3963972, 'mtr_portfolio_id': 27934609, 'created_at': datetime.datetime(2025, 10, 30, 6, 26, 14), 'result': '0.0518576423509456', 'result_long': None, 'result_double': None}] Qualite : 0.0518576423509456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_06_26_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934609 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_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, 'pht': 3726}}" where mtr_portfolio_id = 27934609 and dashboard_run_id = 2488087 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`=27934609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599734, 0.0518576423509456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934609_30-10-2025_06_26_17.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27934615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27934616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27934617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27934618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27934619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27934620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27934621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27934622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27934623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27934624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27934625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27934626, '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 = 27934992 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': 3963973, 'mtr_portfolio_id': 27934992, 'created_at': datetime.datetime(2025, 10, 30, 6, 26, 59), 'result': '0.07462635271049226', 'result_long': None, 'result_double': None}] Qualite : 0.07462635271049226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27934992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_06_27_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27934992 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_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, 'pht': 3726}}" where mtr_portfolio_id = 27934992 and dashboard_run_id = 2488087 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`=27934992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599735, 0.07462635271049226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27934992_30-10-2025_06_27_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935013, '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 = 27935398 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': 3963974, 'mtr_portfolio_id': 27935398, 'created_at': datetime.datetime(2025, 10, 30, 6, 27, 28), 'result': '0.06502241464007665', 'result_long': None, 'result_double': None}] Qualite : 0.06502241464007665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935398 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_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, 'pht': 3726}}" where mtr_portfolio_id = 27935398 and dashboard_run_id = 2488087 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`=27935398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599736, 0.06502241464007665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935398_30-10-2025_06_27_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27935403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935414, '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 = 27935710 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': 3963975, 'mtr_portfolio_id': 27935710, 'created_at': datetime.datetime(2025, 10, 30, 6, 28, 1), 'result': '0.04088164060197494', 'result_long': None, 'result_double': None}] Qualite : 0.04088164060197494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27935710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_06_28_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27935710 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_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, 'pht': 3726}}" where mtr_portfolio_id = 27935710 and dashboard_run_id = 2488087 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`=27935710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599737, 0.04088164060197494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27935710_30-10-2025_06_28_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27935734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27935735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27935736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27935737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27935738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27935739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27935740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27935741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27935742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27935743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27935744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27935745, '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 = 27936581 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': 3963976, 'mtr_portfolio_id': 27936581, 'created_at': datetime.datetime(2025, 10, 30, 6, 28, 30), 'result': '0.06090917032406601', 'result_long': None, 'result_double': None}] Qualite : 0.06090917032406601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936581 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_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, 'pht': 3726}}" where mtr_portfolio_id = 27936581 and dashboard_run_id = 2488087 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`=27936581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599738, 0.06090917032406601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936581_30-10-2025_06_28_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27936584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936595, '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 = 27936898 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': 3963977, 'mtr_portfolio_id': 27936898, 'created_at': datetime.datetime(2025, 10, 30, 6, 29, 28), 'result': '0.07205998913681783', 'result_long': None, 'result_double': None}] Qualite : 0.07205998913681783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27936898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936898_30-10-2025_06_29_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27936898 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_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, 'pht': 3726}}" where mtr_portfolio_id = 27936898 and dashboard_run_id = 2488087 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`=27936898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599739, 0.07205998913681783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27936898_30-10-2025_06_29_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27936899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27936900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27936901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27936902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27936903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27936904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27936905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27936906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27936907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27936908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27936909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27936910, '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 = 27937104 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': 3963880, 'mtr_portfolio_id': 27937104, 'created_at': datetime.datetime(2025, 10, 30, 5, 48, 57), 'result': '0.05513597335525593', 'result_long': None, 'result_double': None}] Qualite : 0.05513597335525593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937104_30-10-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937104 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_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, 'pht': 3726}}" where mtr_portfolio_id = 27937104 and dashboard_run_id = 2488087 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`=27937104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599740, 0.05513597335525593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937104_30-10-2025_05_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937119, '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 = 27937503 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': 3964060, 'mtr_portfolio_id': 27937503, 'created_at': datetime.datetime(2025, 10, 30, 6, 3, 28), 'result': '0.06333412625726831', 'result_long': None, 'result_double': None}] Qualite : 0.06333412625726831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937503_30-10-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937503 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_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, 'pht': 3726}}" where mtr_portfolio_id = 27937503 and dashboard_run_id = 2488087 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`=27937503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599741, 0.06333412625726831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937503_30-10-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27937517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937519, '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 = 27937856 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': 3964124, 'mtr_portfolio_id': 27937856, 'created_at': datetime.datetime(2025, 10, 30, 6, 17, 27), 'result': '0.07194761567433385', 'result_long': None, 'result_double': None}] Qualite : 0.07194761567433385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27937856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937856_30-10-2025_06_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27937856 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_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, 'pht': 3726}}" where mtr_portfolio_id = 27937856 and dashboard_run_id = 2488087 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`=27937856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599742, 0.07194761567433385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27937856_30-10-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27937867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27937868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27937869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27937870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27937871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27937872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27937873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27937874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27937875, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27937876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27937877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27937878, '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 = 27938278 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': 3964187, 'mtr_portfolio_id': 27938278, 'created_at': datetime.datetime(2025, 10, 30, 6, 34, 57), 'result': '0.06452872147134182', 'result_long': None, 'result_double': None}] Qualite : 0.06452872147134182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27938278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938278_30-10-2025_06_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27938278 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_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, 'pht': 3726}}" where mtr_portfolio_id = 27938278 and dashboard_run_id = 2488087 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`=27938278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599743, 0.06452872147134182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938278_30-10-2025_06_34_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27938282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27938292, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938293, '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 = 27938787 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': 3964253, 'mtr_portfolio_id': 27938787, 'created_at': datetime.datetime(2025, 10, 30, 6, 48, 58), 'result': '0.07271842284783782', 'result_long': None, 'result_double': None}] Qualite : 0.07271842284783782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27938787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938787_30-10-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27938787 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_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, 'pht': 3726}}" where mtr_portfolio_id = 27938787 and dashboard_run_id = 2488087 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`=27938787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599744, 0.07271842284783782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27938787_30-10-2025_06_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27938796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27938797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27938798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27938799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27938800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27938801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27938802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27938803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27938804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27938805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27938806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27938807, '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 = 27939227 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': 3964322, 'mtr_portfolio_id': 27939227, 'created_at': datetime.datetime(2025, 10, 30, 7, 5, 30), 'result': '0.06375441685578183', 'result_long': None, 'result_double': None}] Qualite : 0.06375441685578183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27939227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939227_30-10-2025_07_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27939227 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_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, 'pht': 3726}}" where mtr_portfolio_id = 27939227 and dashboard_run_id = 2488087 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`=27939227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599745, 0.06375441685578183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939227_30-10-2025_07_05_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939262, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939272, '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 = 27939778 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': 3964400, 'mtr_portfolio_id': 27939778, 'created_at': datetime.datetime(2025, 10, 30, 7, 20, 59), 'result': '0.09677438153756576', 'result_long': None, 'result_double': None}] Qualite : 0.09677438153756576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27939778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27939778 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_P27939778_30-10-2025_07_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, 'pht': 3726}}" where mtr_portfolio_id = 27939778 and dashboard_run_id = 2488087 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`=27939778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599746, 0.09677438153756576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27939778_30-10-2025_07_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27939805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27939807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27939808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27939809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27939810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27939811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27939812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27939813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27939814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27939815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27939816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27939817, '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 = 27940428 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': 3964480, 'mtr_portfolio_id': 27940428, 'created_at': datetime.datetime(2025, 10, 30, 7, 33), 'result': '0.05765745280576992', 'result_long': None, 'result_double': None}] Qualite : 0.05765745280576992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27940428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27940428_30-10-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27940428 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_P27940428_30-10-2025_07_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27940446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27940447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27940448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27940449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27940450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27940451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27940452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27940453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27940454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27940455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27940457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27940458, 'pht': 3726}}" where mtr_portfolio_id = 27940428 and dashboard_run_id = 2488087 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`=27940428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599747, 0.05765745280576992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27940428_30-10-2025_07_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27940446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27940447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27940448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27940449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27940450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27940451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27940452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27940453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27940454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27940455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27940457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27940458, '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 = 27940989 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': 3964548, 'mtr_portfolio_id': 27940989, 'created_at': datetime.datetime(2025, 10, 30, 7, 49), 'result': '0.06928106594745868', 'result_long': None, 'result_double': None}] Qualite : 0.06928106594745868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27940989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27940989_30-10-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27940989 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_P27940989_30-10-2025_07_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27941005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941016, 'pht': 3726}}" where mtr_portfolio_id = 27940989 and dashboard_run_id = 2488087 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`=27940989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599748, 0.06928106594745868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27940989_30-10-2025_07_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27941005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941016, '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 = 27941663 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': 3964620, 'mtr_portfolio_id': 27941663, 'created_at': datetime.datetime(2025, 10, 30, 8, 6, 29), 'result': '0.08714021297232591', 'result_long': None, 'result_double': None}] Qualite : 0.08714021297232591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27941663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27941663_30-10-2025_08_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27941663 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_P27941663_30-10-2025_08_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27941688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941690, 'pht': 3726}}" where mtr_portfolio_id = 27941663 and dashboard_run_id = 2488087 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`=27941663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599749, 0.08714021297232591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27941663_30-10-2025_08_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27941679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27941680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27941681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27941682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27941683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27941684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27941685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27941686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27941687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27941688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27941689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27941690, '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 = 27942181 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': 3964700, 'mtr_portfolio_id': 27942181, 'created_at': datetime.datetime(2025, 10, 30, 8, 19), 'result': '0.074995168861373', 'result_long': None, 'result_double': None}] Qualite : 0.074995168861373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27942181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27942181_30-10-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27942181 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_P27942181_30-10-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27942223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942234, 'pht': 3726}}" where mtr_portfolio_id = 27942181 and dashboard_run_id = 2488087 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`=27942181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599750, 0.074995168861373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27942181_30-10-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27942223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942230, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942234, '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 = 27942844 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': 3964784, 'mtr_portfolio_id': 27942844, 'created_at': datetime.datetime(2025, 10, 30, 8, 33), 'result': '0.05909016163956156', 'result_long': None, 'result_double': None}] Qualite : 0.05909016163956156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27942844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27942844_30-10-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27942844 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_P27942844_30-10-2025_08_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27942872, 'pht': 3726}}" where mtr_portfolio_id = 27942844 and dashboard_run_id = 2488087 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`=27942844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599751, 0.05909016163956156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27942844_30-10-2025_08_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27942860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27942861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27942862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27942863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27942864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27942865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27942866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27942868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27942869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27942870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27942871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27942872, '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 = 27943711 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': 3964901, 'mtr_portfolio_id': 27943711, 'created_at': datetime.datetime(2025, 10, 30, 8, 48, 58), 'result': '0.04587611744655369', 'result_long': None, 'result_double': None}] Qualite : 0.04587611744655369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27943711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27943711_30-10-2025_08_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27943711 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_P27943711_30-10-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27943727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27943728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27943729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27943730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27943731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27943732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27943733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27943734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27943735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27943736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27943737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27943738, 'pht': 3726}}" where mtr_portfolio_id = 27943711 and dashboard_run_id = 2488087 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`=27943711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599752, 0.04587611744655369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27943711_30-10-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27943727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27943728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27943729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27943730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27943731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27943732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27943733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27943734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27943735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27943736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27943737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27943738, '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 = 27944216 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': 3964950, 'mtr_portfolio_id': 27944216, 'created_at': datetime.datetime(2025, 10, 30, 9, 2, 59), 'result': '0.0616001205591981', 'result_long': None, 'result_double': None}] Qualite : 0.0616001205591981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27944216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27944216_30-10-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27944216 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_P27944216_30-10-2025_09_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944275, 'pht': 3726}}" where mtr_portfolio_id = 27944216 and dashboard_run_id = 2488087 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`=27944216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599753, 0.0616001205591981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27944216_30-10-2025_09_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944275, '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 = 27944777 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': 3965015, 'mtr_portfolio_id': 27944777, 'created_at': datetime.datetime(2025, 10, 30, 13, 59, 59), 'result': '0.10498370164364368', 'result_long': None, 'result_double': None}] Qualite : 0.10498370164364368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27944777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27944777_30-10-2025_14_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27944777 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_P27944777_30-10-2025_14_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944861, 'pht': 3726}}" where mtr_portfolio_id = 27944777 and dashboard_run_id = 2488087 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`=27944777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599754, 0.10498370164364368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27944777_30-10-2025_14_00_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27944850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27944851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27944852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27944853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27944854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27944855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27944856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27944857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27944858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27944859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27944860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27944861, '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 = 27952598 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': 3966412, 'mtr_portfolio_id': 27952598, 'created_at': datetime.datetime(2025, 10, 30, 14, 3, 1), 'result': '0.03857088416179944', 'result_long': None, 'result_double': None}] Qualite : 0.03857088416179944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27952598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27952598_30-10-2025_14_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27952598 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_P27952598_30-10-2025_14_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952616, 'pht': 3726}}" where mtr_portfolio_id = 27952598 and dashboard_run_id = 2488087 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`=27952598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599755, 0.03857088416179944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27952598_30-10-2025_14_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952616, '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 = 27952719 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': 3966418, 'mtr_portfolio_id': 27952719, 'created_at': datetime.datetime(2025, 10, 30, 14, 19), 'result': '0.038923656787020644', 'result_long': None, 'result_double': None}] Qualite : 0.038923656787020644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27952719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27952719_30-10-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27952719 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_P27952719_30-10-2025_14_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952748, 'pht': 3726}}" where mtr_portfolio_id = 27952719 and dashboard_run_id = 2488087 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`=27952719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599756, 0.038923656787020644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27952719_30-10-2025_14_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27952736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27952737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27952738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27952739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27952740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27952741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27952743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27952744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27952745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27952746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27952747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27952748, '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 = 27953707 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': 3966470, 'mtr_portfolio_id': 27953707, 'created_at': datetime.datetime(2025, 10, 30, 14, 38, 30), 'result': '0.04597993884731558', 'result_long': None, 'result_double': None}] Qualite : 0.04597993884731558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27953707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27953707_30-10-2025_14_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27953707 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_P27953707_30-10-2025_14_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27953710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27953711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27953712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27953713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27953714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27953715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27953716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27953717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27953718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27953719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27953720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27953721, 'pht': 3726}}" where mtr_portfolio_id = 27953707 and dashboard_run_id = 2488087 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`=27953707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599757, 0.04597993884731558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27953707_30-10-2025_14_38_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27953710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27953711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27953712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27953713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27953714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27953715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27953716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27953717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27953718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27953719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27953720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27953721, '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 = 27954575 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': 3966532, 'mtr_portfolio_id': 27954575, 'created_at': datetime.datetime(2025, 10, 30, 14, 48, 59), 'result': '0.07519359466651779', 'result_long': None, 'result_double': None}] Qualite : 0.07519359466651779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27954575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27954575_30-10-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27954575 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_P27954575_30-10-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954626, 'pht': 3726}}" where mtr_portfolio_id = 27954575 and dashboard_run_id = 2488087 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`=27954575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599758, 0.07519359466651779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27954575_30-10-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954626, '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 = 27954783 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': 3966551, 'mtr_portfolio_id': 27954783, 'created_at': datetime.datetime(2025, 10, 30, 15, 3, 58), 'result': '0.058295615990912396', 'result_long': None, 'result_double': None}] Qualite : 0.058295615990912396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27954783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27954783_30-10-2025_15_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27954783 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_P27954783_30-10-2025_15_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954842, 'pht': 3726}}" where mtr_portfolio_id = 27954783 and dashboard_run_id = 2488087 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`=27954783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599759, 0.058295615990912396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27954783_30-10-2025_15_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27954831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27954832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27954833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27954834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27954835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27954836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27954837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27954838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27954839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27954840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27954841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27954842, '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 = 27955664 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': 3966624, 'mtr_portfolio_id': 27955664, 'created_at': datetime.datetime(2025, 10, 30, 15, 19), 'result': '0.06755999227295714', 'result_long': None, 'result_double': None}] Qualite : 0.06755999227295714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27955664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27955664_30-10-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27955664 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_P27955664_30-10-2025_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27955669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27955670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27955671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27955672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27955673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27955674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27955675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27955676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27955677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27955678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27955679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27955680, 'pht': 3726}}" where mtr_portfolio_id = 27955664 and dashboard_run_id = 2488087 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`=27955664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599760, 0.06755999227295714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27955664_30-10-2025_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27955669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27955670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27955671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27955672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27955673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27955674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27955675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27955676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27955677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27955678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27955679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27955680, '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 = 27956493 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': 3966693, 'mtr_portfolio_id': 27956493, 'created_at': datetime.datetime(2025, 10, 30, 15, 32, 57), 'result': '0.049582568205419265', 'result_long': None, 'result_double': None}] Qualite : 0.049582568205419265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27956493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27956493_30-10-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27956493 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_P27956493_30-10-2025_15_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27956546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27956547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27956548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27956549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27956550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27956551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27956553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27956554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27956555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27956556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27956557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27956558, 'pht': 3726}}" where mtr_portfolio_id = 27956493 and dashboard_run_id = 2488087 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`=27956493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599761, 0.049582568205419265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27956493_30-10-2025_15_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27956546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27956547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27956548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27956549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27956550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27956551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27956553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27956554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27956555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27956556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27956557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27956558, '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 = 27957270 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': 3966761, 'mtr_portfolio_id': 27957270, 'created_at': datetime.datetime(2025, 10, 30, 15, 49, 28), 'result': '0.06542757505087471', 'result_long': None, 'result_double': None}] Qualite : 0.06542757505087471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27957270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27957270_30-10-2025_15_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27957270 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_P27957270_30-10-2025_15_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27957295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27957296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27957297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27957298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27957299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27957300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27957301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27957302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27957303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27957304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27957305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27957306, 'pht': 3726}}" where mtr_portfolio_id = 27957270 and dashboard_run_id = 2488087 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`=27957270 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599762, 0.06542757505087471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27957270_30-10-2025_15_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27957295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27957296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27957297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27957298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27957299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27957300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27957301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27957302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27957303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27957304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27957305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27957306, '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 = 27958034 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': 3966825, 'mtr_portfolio_id': 27958034, 'created_at': datetime.datetime(2025, 10, 30, 16, 4, 58), 'result': '0.061569859054067394', 'result_long': None, 'result_double': None}] Qualite : 0.061569859054067394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27958034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27958034_30-10-2025_16_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27958034 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_P27958034_30-10-2025_16_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27958044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958054, 'pht': 3726}}" where mtr_portfolio_id = 27958034 and dashboard_run_id = 2488087 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`=27958034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599763, 0.061569859054067394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27958034_30-10-2025_16_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27958044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958054, '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 = 27958868 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': 3966913, 'mtr_portfolio_id': 27958868, 'created_at': datetime.datetime(2025, 10, 30, 16, 18, 56), 'result': '0.054948777802178224', 'result_long': None, 'result_double': None}] Qualite : 0.054948777802178224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27958868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27958868_30-10-2025_16_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27958868 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_P27958868_30-10-2025_16_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27958897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958908, 'pht': 3726}}" where mtr_portfolio_id = 27958868 and dashboard_run_id = 2488087 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`=27958868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599764, 0.054948777802178224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27958868_30-10-2025_16_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27958897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27958898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27958899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27958900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27958901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27958902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27958903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27958904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27958905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27958906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27958907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27958908, '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 = 27959684 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': 3966990, 'mtr_portfolio_id': 27959684, 'created_at': datetime.datetime(2025, 10, 30, 16, 37), 'result': '0.05227260944133476', 'result_long': None, 'result_double': None}] Qualite : 0.05227260944133476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27959684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27959684_30-10-2025_16_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27959684 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_P27959684_30-10-2025_16_37_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27959754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27959755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27959756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27959757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27959758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27959759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27959760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27959762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27959763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27959764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27959766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27959767, 'pht': 3726}}" where mtr_portfolio_id = 27959684 and dashboard_run_id = 2488087 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`=27959684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599765, 0.05227260944133476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27959684_30-10-2025_16_37_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27959754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27959755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27959756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27959757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27959758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27959759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27959760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27959762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27959763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27959764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27959766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27959767, '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 = 27960486 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': 3967083, 'mtr_portfolio_id': 27960486, 'created_at': datetime.datetime(2025, 10, 30, 16, 52, 29), 'result': '0.03671725413027658', 'result_long': None, 'result_double': None}] Qualite : 0.03671725413027658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27960486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27960486_30-10-2025_16_52_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27960486 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_P27960486_30-10-2025_16_52_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27960558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27960559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27960560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27960561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27960562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27960563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27960564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27960565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27960566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27960567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27960568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27960569, 'pht': 3726}}" where mtr_portfolio_id = 27960486 and dashboard_run_id = 2488087 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`=27960486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599766, 0.03671725413027658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27960486_30-10-2025_16_52_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27960558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27960559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27960560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27960561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27960562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27960563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27960564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27960565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27960566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27960567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27960568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27960569, '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 = 27961757 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': 3967197, 'mtr_portfolio_id': 27961757, 'created_at': datetime.datetime(2025, 10, 30, 17, 5, 27), 'result': '0.053052992760339805', 'result_long': None, 'result_double': None}] Qualite : 0.053052992760339805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27961757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27961757_30-10-2025_17_05_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27961757 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_P27961757_30-10-2025_17_05_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27961799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27961800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27961801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27961802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27961803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27961804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27961805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27961806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27961807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27961808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27961809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27961810, 'pht': 3726}}" where mtr_portfolio_id = 27961757 and dashboard_run_id = 2488087 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`=27961757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599767, 0.053052992760339805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27961757_30-10-2025_17_05_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27961799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27961800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27961801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27961802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27961803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27961804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27961805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27961806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27961807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27961808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27961809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27961810, '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 = 27962460 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': 3967279, 'mtr_portfolio_id': 27962460, 'created_at': datetime.datetime(2025, 10, 30, 17, 18, 56), 'result': '0.053726195824620016', 'result_long': None, 'result_double': None}] Qualite : 0.053726195824620016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27962460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27962460_30-10-2025_17_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27962460 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_P27962460_30-10-2025_17_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27962470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27962471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27962472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27962473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27962474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27962475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27962476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27962477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27962478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27962479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27962480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27962481, 'pht': 3726}}" where mtr_portfolio_id = 27962460 and dashboard_run_id = 2488087 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`=27962460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599768, 0.053726195824620016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27962460_30-10-2025_17_18_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27962470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27962471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27962472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27962473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27962474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27962475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27962476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27962477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27962478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27962479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27962480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27962481, '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 = 27963183 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': 3967337, 'mtr_portfolio_id': 27963183, 'created_at': datetime.datetime(2025, 10, 30, 17, 46, 7), 'result': '0.044526084928403944', 'result_long': None, 'result_double': None}] Qualite : 0.044526084928403944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27963183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27963183_30-10-2025_17_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27963183 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_P27963183_30-10-2025_17_46_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27963193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27963194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27963195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27963196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27963197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27963198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27963199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27963200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27963201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27963202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27963203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27963204, 'pht': 3726}}" where mtr_portfolio_id = 27963183 and dashboard_run_id = 2488087 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`=27963183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599769, 0.044526084928403944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27963183_30-10-2025_17_46_07.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27963193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27963194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27963195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27963196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27963197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27963198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27963199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27963200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27963201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27963202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27963203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27963204, '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 = 27965326 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': 3967514, 'mtr_portfolio_id': 27965326, 'created_at': datetime.datetime(2025, 10, 30, 18, 23, 27), 'result': '0.03493853735808583', 'result_long': None, 'result_double': None}] Qualite : 0.03493853735808583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27965326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27965326_30-10-2025_18_23_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27965326 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_P27965326_30-10-2025_18_23_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27965493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27965494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27965495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27965496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27965497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27965498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27965499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27965500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27965501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27965502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27965503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27965504, 'pht': 3726}}" where mtr_portfolio_id = 27965326 and dashboard_run_id = 2488087 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`=27965326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599770, 0.03493853735808583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27965326_30-10-2025_18_23_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27965493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27965494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27965495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27965496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27965497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27965498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27965499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27965500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27965501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27965502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27965503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27965504, '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 = 27966167 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': 3967563, 'mtr_portfolio_id': 27966167, 'created_at': datetime.datetime(2025, 10, 30, 18, 33, 59), 'result': '0.06681340803795076', 'result_long': None, 'result_double': None}] Qualite : 0.06681340803795076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27966167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27966167_30-10-2025_18_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27966167 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_P27966167_30-10-2025_18_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27966205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966206, 'pht': 3726}}" where mtr_portfolio_id = 27966167 and dashboard_run_id = 2488087 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`=27966167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599771, 0.06681340803795076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27966167_30-10-2025_18_34_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27966205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966206, '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 = 27966688 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': 3967615, 'mtr_portfolio_id': 27966688, 'created_at': datetime.datetime(2025, 10, 30, 20, 1, 9), 'result': '0.04429801380865543', 'result_long': None, 'result_double': None}] Qualite : 0.04429801380865543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27966688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27966688_30-10-2025_20_01_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27966688 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_P27966688_30-10-2025_20_01_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27966701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966712, 'pht': 3726}}" where mtr_portfolio_id = 27966688 and dashboard_run_id = 2488087 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`=27966688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599772, 0.04429801380865543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27966688_30-10-2025_20_01_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27966701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27966702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27966703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27966704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27966705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27966706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27966707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27966708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27966709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27966710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27966711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27966712, '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 = 27967424 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': 3967702, 'mtr_portfolio_id': 27967424, 'created_at': datetime.datetime(2025, 10, 30, 19, 7, 27), 'result': '0.06324460028527013', 'result_long': None, 'result_double': None}] Qualite : 0.06324460028527013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27967424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27967424_30-10-2025_19_07_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27967424 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_P27967424_30-10-2025_19_07_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27967427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27967428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27967429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27967430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27967431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27967432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27967433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27967434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27967435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27967436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27967437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27967438, 'pht': 3726}}" where mtr_portfolio_id = 27967424 and dashboard_run_id = 2488087 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`=27967424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599773, 0.06324460028527013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27967424_30-10-2025_19_07_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27967427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27967428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27967429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27967430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27967431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27967432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27967433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27967434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27967435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27967436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27967437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27967438, '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 = 27968079 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': 3967776, 'mtr_portfolio_id': 27968079, 'created_at': datetime.datetime(2025, 10, 30, 19, 18, 57), 'result': '0.02792594875128542', 'result_long': None, 'result_double': None}] Qualite : 0.02792594875128542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27968079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27968079_30-10-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27968079 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_P27968079_30-10-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27968247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27968250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27968254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27968259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27968260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27968262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968263, 'pht': 3726}}" where mtr_portfolio_id = 27968079 and dashboard_run_id = 2488087 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`=27968079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599774, 0.02792594875128542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27968079_30-10-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27968247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27968250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27968254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27968259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27968260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27968262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968263, '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 = 27968936 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': 3967875, 'mtr_portfolio_id': 27968936, 'created_at': datetime.datetime(2025, 10, 30, 19, 34, 58), 'result': '0.04622994735088095', 'result_long': None, 'result_double': None}] Qualite : 0.04622994735088095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27968936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27968936_30-10-2025_19_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27968936 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_P27968936_30-10-2025_19_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969005, 'pht': 3726}}" where mtr_portfolio_id = 27968936 and dashboard_run_id = 2488087 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`=27968936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599775, 0.04622994735088095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27968936_30-10-2025_19_34_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27968993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27968994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27968995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27968996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27968997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27968998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969005, '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 = 27969832 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': 3967968, 'mtr_portfolio_id': 27969832, 'created_at': datetime.datetime(2025, 10, 30, 19, 48, 59), 'result': '0.04450998837288252', 'result_long': None, 'result_double': None}] Qualite : 0.04450998837288252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27969832 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27969832_30-10-2025_19_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27969832 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_P27969832_30-10-2025_19_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27969942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27969943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27969945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27969946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27969948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27969949, 'pht': 3726}}" where mtr_portfolio_id = 27969832 and dashboard_run_id = 2488087 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`=27969832 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599776, 0.04450998837288252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27969832_30-10-2025_19_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27969938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27969939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27969940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27969941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27969942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27969943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27969944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27969945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27969946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27969947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27969948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27969949, '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 = 27970710 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': 3968058, 'mtr_portfolio_id': 27970710, 'created_at': datetime.datetime(2025, 10, 30, 20, 4, 58), 'result': '0.041494729008568355', 'result_long': None, 'result_double': None}] Qualite : 0.041494729008568355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27970710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27970710_30-10-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27970710 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_P27970710_30-10-2025_20_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27970753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27970754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27970756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27970757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27970758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27970759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27970760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27970761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27970762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27970763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27970764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27970766, 'pht': 3726}}" where mtr_portfolio_id = 27970710 and dashboard_run_id = 2488087 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`=27970710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599777, 0.041494729008568355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27970710_30-10-2025_20_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27970753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27970754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27970756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27970757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27970758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27970759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27970760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27970761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27970762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27970763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27970764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27970766, '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 = 27971643 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': 3968239, 'mtr_portfolio_id': 27971643, 'created_at': datetime.datetime(2025, 10, 30, 20, 16, 59), 'result': '0.044824973318172215', 'result_long': None, 'result_double': None}] Qualite : 0.044824973318172215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27971643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27971643_30-10-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27971643 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_P27971643_30-10-2025_20_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27971687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27971688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27971689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27971690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27971691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27971692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27971693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27971694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27971695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27971696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27971697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27971698, 'pht': 3726}}" where mtr_portfolio_id = 27971643 and dashboard_run_id = 2488087 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`=27971643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599778, 0.044824973318172215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27971643_30-10-2025_20_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27971687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27971688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27971689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27971690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27971691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27971692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27971693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27971694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27971695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27971696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27971697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27971698, '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 = 27972492 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': 3968319, 'mtr_portfolio_id': 27972492, 'created_at': datetime.datetime(2025, 10, 30, 20, 33, 27), 'result': '0.08588604932522238', 'result_long': None, 'result_double': None}] Qualite : 0.08588604932522238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27972492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27972492_30-10-2025_20_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27972492 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_P27972492_30-10-2025_20_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27972510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27972511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27972512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27972513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27972514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27972515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27972516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27972517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27972518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27972519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27972520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27972521, 'pht': 3726}}" where mtr_portfolio_id = 27972492 and dashboard_run_id = 2488087 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`=27972492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599779, 0.08588604932522238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27972492_30-10-2025_20_33_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27972510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27972511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27972512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27972513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27972514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27972515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27972516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27972517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27972518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27972519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27972520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27972521, '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 = 27973393 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': 3968435, 'mtr_portfolio_id': 27973393, 'created_at': datetime.datetime(2025, 10, 30, 21, 6, 58), 'result': '0.034008879922415754', 'result_long': None, 'result_double': None}] Qualite : 0.034008879922415754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27973393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27973393_30-10-2025_21_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27973393 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_P27973393_30-10-2025_21_06_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27973655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27973656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27973657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27973658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27973659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27973660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27973661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27973662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27973663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27973664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27973665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27973666, 'pht': 3726}}" where mtr_portfolio_id = 27973393 and dashboard_run_id = 2488087 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`=27973393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599780, 0.034008879922415754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27973393_30-10-2025_21_06_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27973655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27973656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27973657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27973658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27973659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27973660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27973661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27973662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27973663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27973664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27973665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27973666, '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 = 27975321 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': 3968602, 'mtr_portfolio_id': 27975321, 'created_at': datetime.datetime(2025, 10, 30, 21, 18, 59), 'result': '0.05896235341227533', 'result_long': None, 'result_double': None}] Qualite : 0.05896235341227533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27975321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27975321_30-10-2025_21_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27975321 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_P27975321_30-10-2025_21_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975333, 'pht': 3726}}" where mtr_portfolio_id = 27975321 and dashboard_run_id = 2488087 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`=27975321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599781, 0.05896235341227533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27975321_30-10-2025_21_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975333, '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 = 27975835 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': 3968644, 'mtr_portfolio_id': 27975835, 'created_at': datetime.datetime(2025, 10, 30, 21, 34, 58), 'result': '0.03744477120762449', 'result_long': None, 'result_double': None}] Qualite : 0.03744477120762449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27975835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27975835_30-10-2025_21_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27975835 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_P27975835_30-10-2025_21_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975855, 'pht': 3726}}" where mtr_portfolio_id = 27975835 and dashboard_run_id = 2488087 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`=27975835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599782, 0.03744477120762449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27975835_30-10-2025_21_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27975844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27975845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27975846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27975847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27975848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27975849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27975850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27975851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27975852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27975853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27975854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27975855, '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 = 27976551 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': 3968736, 'mtr_portfolio_id': 27976551, 'created_at': datetime.datetime(2025, 10, 30, 21, 49), 'result': '0.053795923484764696', 'result_long': None, 'result_double': None}] Qualite : 0.053795923484764696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27976551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27976551_30-10-2025_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27976551 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_P27976551_30-10-2025_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27976570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27976571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27976572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27976573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27976574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27976575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27976576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27976577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27976578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27976579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27976580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27976582, 'pht': 3726}}" where mtr_portfolio_id = 27976551 and dashboard_run_id = 2488087 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`=27976551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599783, 0.053795923484764696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27976551_30-10-2025_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27976570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27976571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27976572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27976573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27976574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27976575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27976576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27976577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27976578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27976579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27976580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27976582, '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 = 27977307 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': 3968824, 'mtr_portfolio_id': 27977307, 'created_at': datetime.datetime(2025, 10, 30, 22, 4, 57), 'result': '0.06694654670551611', 'result_long': None, 'result_double': None}] Qualite : 0.06694654670551611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27977307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27977307_30-10-2025_22_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27977307 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_P27977307_30-10-2025_22_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27977321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27977322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27977323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27977324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27977325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27977326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27977327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27977328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27977329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27977330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27977331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27977332, 'pht': 3726}}" where mtr_portfolio_id = 27977307 and dashboard_run_id = 2488087 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`=27977307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599784, 0.06694654670551611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27977307_30-10-2025_22_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27977321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27977322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27977323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27977324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27977325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27977326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27977327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27977328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27977329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27977330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27977331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27977332, '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 = 27978319 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': 3968966, 'mtr_portfolio_id': 27978319, 'created_at': datetime.datetime(2025, 10, 30, 22, 18, 59), 'result': '0.06021751094140845', 'result_long': None, 'result_double': None}] Qualite : 0.06021751094140845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27978319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27978319_30-10-2025_22_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27978319 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_P27978319_30-10-2025_22_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978331, 'pht': 3726}}" where mtr_portfolio_id = 27978319 and dashboard_run_id = 2488087 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`=27978319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599785, 0.06021751094140845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27978319_30-10-2025_22_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978331, '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 = 27978925 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': 3969016, 'mtr_portfolio_id': 27978925, 'created_at': datetime.datetime(2025, 10, 30, 22, 32, 57), 'result': '0.06402028459185717', 'result_long': None, 'result_double': None}] Qualite : 0.06402028459185717 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27978925 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27978925_30-10-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27978925 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_P27978925_30-10-2025_22_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978970, 'pht': 3726}}" where mtr_portfolio_id = 27978925 and dashboard_run_id = 2488087 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`=27978925 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599786, 0.06402028459185717, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27978925_30-10-2025_22_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27978959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27978960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27978961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27978962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27978963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27978964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27978965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27978966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27978967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27978968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27978969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27978970, '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 = 27979628 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': 3969076, 'mtr_portfolio_id': 27979628, 'created_at': datetime.datetime(2025, 10, 30, 22, 49, 1), 'result': '0.03100355579404455', 'result_long': None, 'result_double': None}] Qualite : 0.03100355579404455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27979628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27979628_30-10-2025_22_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27979628 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_P27979628_30-10-2025_22_49_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27979738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27979739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27979740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27979741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27979742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27979743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27979744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27979745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27979746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27979747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27979748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27979749, 'pht': 3726}}" where mtr_portfolio_id = 27979628 and dashboard_run_id = 2488087 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`=27979628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599787, 0.03100355579404455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27979628_30-10-2025_22_49_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27979738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27979739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27979740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27979741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27979742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27979743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27979744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27979745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27979746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27979747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27979748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27979749, '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 = 27980602 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': 3969145, 'mtr_portfolio_id': 27980602, 'created_at': datetime.datetime(2025, 10, 30, 23, 3, 27), 'result': '0.06575694513341146', 'result_long': None, 'result_double': None}] Qualite : 0.06575694513341146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27980602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27980602_30-10-2025_23_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27980602 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_P27980602_30-10-2025_23_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27980664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27980665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27980666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27980667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27980668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27980669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27980670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27980671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27980672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27980673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27980674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27980675, 'pht': 3726}}" where mtr_portfolio_id = 27980602 and dashboard_run_id = 2488087 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`=27980602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599788, 0.06575694513341146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27980602_30-10-2025_23_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27980664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27980665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27980666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27980667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27980668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27980669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27980670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27980671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27980672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27980673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27980674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27980675, '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 = 27981308 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': 3969205, 'mtr_portfolio_id': 27981308, 'created_at': datetime.datetime(2025, 10, 30, 23, 20, 57), 'result': '0.0560840976233042', 'result_long': None, 'result_double': None}] Qualite : 0.0560840976233042 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27981308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27981308_30-10-2025_23_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27981308 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_P27981308_30-10-2025_23_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27981363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27981364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27981365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27981366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27981367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27981368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27981369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27981370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27981371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27981372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27981373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27981374, 'pht': 3726}}" where mtr_portfolio_id = 27981308 and dashboard_run_id = 2488087 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`=27981308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599789, 0.0560840976233042, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27981308_30-10-2025_23_20_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27981363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27981364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27981365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27981366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27981367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27981368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27981369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27981370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27981371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27981372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27981373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27981374, '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 = 27982148 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': 3969277, 'mtr_portfolio_id': 27982148, 'created_at': datetime.datetime(2025, 10, 30, 23, 33), 'result': '0.06205509966446354', 'result_long': None, 'result_double': None}] Qualite : 0.06205509966446354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27982148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27982148_30-10-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27982148 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_P27982148_30-10-2025_23_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27982179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982187, 'pht': 3726}}" where mtr_portfolio_id = 27982148 and dashboard_run_id = 2488087 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`=27982148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599790, 0.06205509966446354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27982148_30-10-2025_23_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27982179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982183, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982187, '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 = 27982792 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': 3969354, 'mtr_portfolio_id': 27982792, 'created_at': datetime.datetime(2025, 10, 30, 23, 46, 58), 'result': '0.0361888538641159', 'result_long': None, 'result_double': None}] Qualite : 0.0361888538641159 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27982792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27982792_30-10-2025_23_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27982792 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_P27982792_30-10-2025_23_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27982847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982858, 'pht': 3726}}" where mtr_portfolio_id = 27982792 and dashboard_run_id = 2488087 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`=27982792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599791, 0.0361888538641159, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27982792_30-10-2025_23_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27982847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27982848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27982849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27982850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27982851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27982852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27982853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27982854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27982855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27982856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27982857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27982858, '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 = 27983628 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': 3969443, 'mtr_portfolio_id': 27983628, 'created_at': datetime.datetime(2025, 10, 30, 23, 56, 29), 'result': '0.03813712030589811', 'result_long': None, 'result_double': None}] Qualite : 0.03813712030589811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27983628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27983628_30-10-2025_23_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27983628 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_P27983628_30-10-2025_23_56_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27983629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27983630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27983631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27983632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27983633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27983634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27983635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27983636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27983637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27983638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27983639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27983640, 'pht': 3726}}" where mtr_portfolio_id = 27983628 and dashboard_run_id = 2488087 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`=27983628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16599792, 0.03813712030589811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27983628_30-10-2025_23_56_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27983629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27983630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27983631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27983632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27983633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27983634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27983635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27983636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27983637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27983638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27983639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27983640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27928884,27929435,27929931,27930441,27931641,27931962,27932426,27932875,27933317,27933735,27934173,27934609,27934992,27935398,27935710,27936581,27936898,27937104,27937503,27937856,27938278,27938787,27939227,27939778,27940428,27940989,27941663,27942181,27942844,27943711,27944216,27944777,27952598,27952719,27953707,27954575,27954783,27955664,27956493,27957270,27958034,27958868,27959684,27960486,27961757,27962460,27963183,27965326,27966167,27966688,27967424,27968079,27968936,27969832,27970710,27971643,27972492,27973393,27975321,27975835,27976551,27977307,27978319,27978925,27979628,27980602,27981308,27982148,27982792,27983628) result : ((1390202042,), (1390202046,), (1390202076,), (1390202079,), (1390202084,), (1390202088,), (1390202126,), (1390202128,), (1390202131,), (1390202134,), (1390202136,), (1390202181,), (1390202182,), (1390202185,), (1390202188,), (1390202223,), (1390202227,), (1390202271,), (1390202274,), (1390202277,), (1390202280,), (1390202282,), (1390202332,), (1390202334,), (1390202352,), (1390202378,), (1390202384,), (1390202446,), (1390202450,), (1390202453,), (1390202456,), (1390202462,), (1390202467,), (1390202471,), (1390202475,), (1390202480,), (1390202561,), (1390202566,), (1390202600,), (1390202602,), (1390202604,), (1390202620,), (1390202790,), (1390202803,), (1390202809,), (1390202858,), (1390202897,), (1390202970,), (1390202977,), (1390202988,), (1390202996,), (1390203257,), (1390203261,), (1390203262,), (1390203264,), (1390203267,), (1390203308,), (1390203310,), (1390203314,), (1390203319,), (1390203359,), (1390203360,), (1390203363,), (1390203608,), (1390203576,), (1390203589,), (1390203594,), (1390203598,), (1390203603,), (1390203649,), (1390203654,), (1390203657,), (1390203673,), (1390203677,), (1390203763,), (1390203797,), (1390203825,), (1390203829,), (1390203833,), (1390203838,), (1390203898,), (1390204088,), (1390204090,), (1390204094,), (1390204098,), (1390204135,), (1390204161,), (1390204171,), (1390204182,), (1390204192,), (1390204203,), (1390204316,), (1390204318,), (1390204323,), (1390204328,), (1390204385,), (1390204407,), (1390204441,), (1390204486,), (1390204520,), (1390204532,), (1390204729,), (1390204731,), (1390204739,), (1390204743,), (1390204758,), (1390204761,), (1390204762,), (1390204764,), (1390204870,), (1390204903,), (1390204937,), (1390204966,), (1390204999,), (1390205001,), (1390205011,), (1390205021,), (1390205062,), (1390205064,), (1390205067,), (1390205071,), (1390205116,), (1390205118,), (1390205122,), (1390205125,), (1390205200,), (1390205212,), (1390205222,), (1390205231,), (1390205354,), (1390205357,), (1390205369,), (1390205371,), (1390205377,), (1390205341,), (1390205344,), (1390205347,), (1390205351,), (1390205390,), (1390205394,), (1390205396,), (1390205399,), (1390205400,), (1390205434,), (1390205440,), (1390205443,), (1390205487,), (1390205489,), (1390205491,), (1390205536,), (1390205572,), (1390205609,), (1390205648,), (1390205687,), (1390206147,), (1390206148,), (1390206184,), (1390206186,), (1390206220,), (1390206228,), (1390207854,), (1390207855,), (1390207859,), (1390207860,), (1390208225,), (1390208226,), (1390208230,), (1390208242,), (1390208245,), (1390208248,), (1390208289,), (1390208293,), (1390208296,), (1390208299,), (1390208302,), (1390208459,), (1390208457,), (1390208502,), (1390208506,), (1390208510,), (1390208515,), (1390208617,), (1390208622,), (1390208628,), (1390208632,), (1390208667,), (1390208670,), (1390208675,), (1390208679,), (1390208703,), (1390208865,), (1390208866,), (1390208869,), (1390208870,), (1390208873,), (1390208874,), (1390208879,), (1390208880,), (1390208884,), (1390208885,), (1390208889,), (1390208891,), (1390208917,), (1390208920,), (1390208940,), (1390209024,), (1390209030,), (1390209035,), (1390209039,), (1390209212,), (1390209221,), (1390209225,), (1390209290,), (1390209300,), (1390209339,), (1390209343,), (1390209355,), (1390209361,), (1390209365,), (1390209368,), (1390209378,), (1390209381,), (1390209384,), (1390209385,), (1390209386,), (1390209387,), (1390209400,), (1390209403,), (1390209407,), (1390209412,), (1390209502,), (1390209538,), (1390209576,), (1390209612,), (1390209653,), (1390209779,), (1390209780,), (1390209783,), (1390209785,), (1390209790,), (1390209792,), (1390209801,), (1390209808,), (1390209815,), (1390209816,), (1390209835,), (1390209845,), (1390209850,), (1390209924,), (1390209932,), (1390209936,), (1390209942,), (1390209947,), (1390209952,), (1390209998,), (1390216052,), (1390216058,), (1390216062,), (1390216135,), (1390216138,), (1390216141,), (1390216219,), (1390216222,), (1390216285,), (1390216319,), (1390216355,), (1390216388,), (1390216426,), (1390216760,), (1390216762,), (1390216800,), (1390216804,), (1390216854,), (1390216869,), (1390216932,), (1390216941,), (1390217000,), (1390217007,), (1390217167,), (1390217207,), (1390217245,), (1390217592,), (1390217596,), (1390217608,), (1390217623,), (1390217778,), (1390217813,), (1390217850,), (1390217893,), (1390218122,), (1390218127,), (1390218130,), (1390218133,), (1390218158,), (1390218199,), (1390218380,), (1390218383,), (1390218385,), (1390218388,), (1390218487,), (1390218523,), (1390218560,), (1390218602,), (1390218644,), (1390218725,), (1390218771,), (1390218774,), (1390218779,), (1390218815,), (1390218817,), (1390218820,), (1390218823,), (1390218872,), (1390218864,), (1390218867,), (1390218910,), (1390218915,), (1390218926,), (1390218933,), (1390218937,), (1390218995,), (1390218999,), (1390219003,), (1390219005,), (1390219007,), (1390219040,), (1390219045,), (1390219050,), (1390219055,), (1390219093,), (1390219094,), (1390219120,), (1390219125,), (1390219129,), (1390219134,), (1390219138,), (1390219182,), (1390219183,), (1390219206,), (1390219207,), (1390219209,), (1390219210,), (1390219213,), (1390219214,), (1390219247,), (1390219250,), (1390219253,), (1390219257,), (1390219259,), (1390219265,), (1390219269,), (1390219271,), (1390219274,), (1390219277,), (1390219320,), (1390219329,), (1390219384,), (1390219385,), (1390219386,), (1390219387,), (1390219389,), (1390219396,), (1390219411,), (1390219417,), (1390219420,), (1390219422,), (1390219423,), (1390219485,), (1390219488,), (1390219492,), (1390219499,), (1390219529,), (1390219533,), (1390219537,), (1390219633,), (1390219616,), (1390219620,), (1390219624,), (1390219628,), (1390219826,), (1390219861,), (1390219896,), (1390219932,), (1390219966,), (1390220445,), (1390220481,), (1390220526,), (1390220612,), (1390220616,), (1390220621,), (1390220626,), (1390220629,), (1390220921,), (1390220953,), (1390220986,), (1390221121,), (1390221157,), (1390221192,), (1390221340,), (1390221341,), (1390221345,), (1390221346,), (1390221623,), (1390221624,), (1390221626,), (1390221627,), (1390221628,), (1390221630,), (1390221750,), (1390221754,), (1390221760,), (1390221765,), (1390221795,), (1390221797,), (1390221801,), (1390221804,), (1390221844,), (1390221848,), (1390221850,), (1390221886,), (1390221891,), (1390221894,), (1390221899,), (1390221960,), (1390221955,), (1390221958,), (1390221992,), (1390221995,), (1390221999,), (1390222003,), (1390222009,), (1390222047,), (1390222048,), (1390222052,), (1390222053,), (1390222056,), (1390222057,), (1390222093,), (1390222096,), (1390222100,), (1390222103,), (1390222107,), (1390222142,), (1390222146,), (1390222150,), (1390222154,), (1390222157,), (1390222165,), (1390222169,), (1390222177,), (1390222183,), (1390222193,), (1390222201,), (1390222212,), (1390222216,), (1390222219,), (1390222243,), (1390222250,), (1390222253,), (1390222292,), (1390222331,), (1390222334,), (1390222338,), (1390222340,), (1390222343,), (1390222391,), (1390222395,), (1390222443,), (1390222457,), (1390222462,), (1390222466,), (1390222530,), (1390222533,), (1390222537,), (1390222540,), (1390222542,), (1390222545,), (1390222577,), (1390222580,), (1390222582,), (1390222591,), (1390223066,), (1390223103,), (1390223137,), (1390223325,), (1390223292,), (1390223589,), (1390223594,), (1390223597,), (1390223601,), (1390223832,), (1390223833,), (1390223874,), (1390223909,), (1390223912,), (1390223945,), (1390223950,), (1390223981,), (1390224070,), (1390224105,), (1390224139,), (1390224177,), (1390224214,), (1390224250,), (1390224295,), (1390224298,), (1390224302,), (1390224523,), (1390224564,), (1390224602,), (1390224664,), (1390224730,), (1390224732,), (1390224734,), (1390224773,), (1390224776,), (1390224779,), (1390224783,), (1390224787,), (1390224818,), (1390224822,), (1390224827,), (1390224832,), (1390224836,), (1390224838,), (1390224876,), (1390224883,), (1390224887,), (1390224888,), (1390224892,), (1390224936,), (1390224940,), (1390224942,), (1390224946,), (1390224949,), (1390224951,), (1390224963,), (1390224965,), (1390224967,), (1390224970,), (1390224971,), (1390224978,), (1390225048,), (1390225050,), (1390225052,), (1390225055,), (1390225069,), (1390225074,), (1390225076,), (1390225079,), (1390225080,), (1390225082,), (1390225141,), (1390225143,), (1390225129,), (1390225130,), (1390225135,), (1390225137,), (1390225184,), (1390225185,), (1390225188,), (1390225189,), (1390225192,), (1390225193,), (1390225197,), (1390225200,), (1390225207,), (1390225208,), (1390225209,), (1390225213,), (1390225234,), (1390225239,), (1390225241,), (1390225243,), (1390225246,), (1390225284,), (1390225290,), (1390225294,), (1390225350,), (1390225356,), (1390225362,), (1390225368,), (1390225407,), (1390225410,), (1390225412,), (1390225421,), (1390225428,), (1390225431,), (1390225498,), (1390225500,), (1390225504,), (1390225508,), (1390225552,), (1390225556,), (1390225561,), (1390225562,), (1390225583,), (1390225590,), (1390225612,), (1390225617,), (1390225623,), (1390225627,), (1390225629,), (1390225632,), (1390225641,), (1390225649,), (1390225654,), (1390225657,), (1390225660,), (1390225663,), (1390225674,), (1390225677,), (1390225680,), (1390225682,), (1390225686,), (1390225723,), (1390225726,), (1390225732,), (1390225737,), (1390225791,), (1390225795,), (1390225798,), (1390225801,), (1390225804,), (1390225837,), (1390225841,), (1390225845,), (1390225857,), (1390225858,), (1390225922,), (1390225921,), (1390225931,), (1390225936,), (1390225941,), (1390225945,), (1390225948,), (1390226045,), (1390226080,), (1390226120,), (1390226156,), (1390226195,), (1390226662,), (1390226701,), (1390226743,), (1390226934,), (1390226936,), (1390226939,), (1390227177,), (1390227179,), (1390227213,), (1390227217,), (1390227253,), (1390227256,), (1390227293,), (1390227294,), (1390227333,), (1390227342,), (1390227447,), (1390227458,), (1390227641,), (1390227645,), (1390227649,), (1390227653,), (1390227658,), (1390227962,), (1390227973,), (1390227979,), (1390227984,), (1390227988,), (1390228038,), (1390228041,), (1390228090,), (1390228093,), (1390228159,), (1390228161,), (1390228164,), (1390228168,), (1390228172,), (1390228206,), (1390228256,), (1390228260,), (1390228263,), (1390228269,), (1390228304,), (1390228309,), (1390228312,), (1390228315,), (1390228375,), (1390228370,), (1390228431,), (1390228433,), (1390228435,), (1390228449,), (1390228453,), (1390228458,), (1390228460,), (1390228497,), (1390228502,), (1390228506,), (1390228509,), (1390228551,), (1390228554,), (1390228556,), (1390228558,), (1390228611,), (1390228612,), (1390228614,), (1390228615,), (1390228618,), (1390228619,), (1390228623,), (1390228624,), (1390228668,), (1390228671,), (1390228674,), (1390228712,), (1390228717,), (1390228720,), (1390228728,), (1390228737,), (1390228738,), (1390228740,), (1390228741,), (1390228743,), (1390228745,), (1390228749,), (1390228750,), (1390228757,), (1390228758,), (1390228771,), (1390228775,), (1390228779,), (1390228830,), (1390228835,), (1390228837,), (1390228838,), (1390228874,), (1390228878,), (1390228884,), (1390228887,), (1390228922,), (1390228923,), (1390228925,), (1390228926,), (1390229097,), (1390229135,), (1390229173,), (1390229210,), (1390229252,), (1390229390,), (1390229425,), (1390229463,), (1390229499,), (1390229867,), (1390229868,), (1390229871,), (1390229874,), (1390229914,), (1390229926,), (1390229941,), (1390229853,), (1390229854,), (1390229857,), (1390229858,), (1390229859,), (1390229860,), (1390229863,), (1390229864,), (1390229889,), (1390229893,), (1390229898,), (1390230363,), (1390230378,), (1390230392,), (1390230399,), (1390230590,), (1390230593,), (1390230595,), (1390230597,), (1390230599,), (1390230704,), (1390230741,), (1390230776,), (1390231040,), (1390231052,), (1390231055,), (1390231059,), (1390231092,), (1390231094,), (1390231096,), (1390231103,), (1390231108,), (1390231113,), (1390231125,), (1390231129,), (1390231139,), (1390231141,), (1390231143,), (1390231145,), (1390231152,), (1390231153,), (1390231171,), (1390231179,), (1390231183,), (1390231186,), (1390231251,), (1390231255,), (1390231259,), (1390231262,), (1390231302,), (1390231350,), (1390231352,), (1390231355,), (1390231358,), (1390231405,), (1390231406,), (1390231413,), (1390231414,), (1390231418,), (1390231419,), (1390231422,), (1390231423,), (1390231469,), (1390231471,), (1390231473,), (1390231474,), (1390231478,), (1390231489,), (1390231492,), (1390231496,), (1390231498,), (1390231553,), (1390231551,), (1390231596,), (1390231600,), (1390231604,), (1390231608,), (1390231652,), (1390231656,), (1390231660,), (1390231662,), (1390231666,), (1390231670,), (1390231677,), (1390231680,), (1390231682,), (1390231692,), (1390231695,), (1390231701,), (1390231708,), (1390231752,), (1390231753,), (1390231755,), (1390231756,), (1390231763,), (1390231764,), (1390231775,), (1390231776,), (1390231780,), (1390231855,), (1390231897,), (1390231904,), (1390231909,), (1390231943,), (1390231950,), (1390231952,), (1390231953,), (1390231991,), (1390231995,), (1390231998,), (1390232001,), (1390232004,), (1390232008,), (1390232681,), (1390232724,), (1390232763,), (1390232800,), (1390232839,), (1390232878,), (1390233119,), (1390233163,), (1390233644,), (1390233658,), (1390233661,), (1390233955,), (1390233994,), (1390234034,), (1390234050,), (1390234092,), (1390234096,), (1390234145,), (1390234147,), (1390234150,), (1390234158,), (1390234203,), (1390234206,), (1390234208,), (1390234211,), (1390234280,), (1390234281,), (1390234283,), (1390234285,), (1390234288,), (1390234293,), (1390234329,), (1390234332,), (1390234335,), (1390234338,), (1390234340,), (1390234342,), (1390234350,), (1390234354,), (1390234360,), (1390234364,), (1390234369,), (1390234373,), (1390234387,), (1390234388,), (1390234397,), (1390234402,), (1390234520,), (1390234521,), (1390239811,), (1390239812,), (1390239806,), (1390239807,), (1390240009,), (1390240011,), (1390240013,), (1390240057,), (1390240061,), (1390240063,), (1390240067,), (1390240119,), (1390240123,), (1390240125,), (1390240129,), (1390240136,), (1390240138,), (1390240141,), (1390240144,), (1390240187,), (1390240188,), (1390240194,), (1390240196,), (1390240199,), (1390240238,), (1390240239,), (1390240243,), (1390240245,), (1390240249,), (1390240250,), (1390240254,), (1390240256,), (1390240287,), (1390240298,), (1390240302,), (1390240318,), (1390240327,), (1390240333,), (1390240338,), (1390240341,), (1390240344,), (1390240345,), (1390240354,), (1390240355,), (1390240360,), (1390240361,), (1390240366,), (1390240367,), (1390240371,), (1390240372,), (1390240376,), (1390240377,), (1390240380,), (1390240388,), (1390240500,), (1390240596,), (1390240635,), (1390240671,), (1390240676,), (1390240737,), (1390240740,), (1390240744,), (1390240749,), (1390240753,), (1390240757,), (1390240764,), (1390240766,), (1390240769,), (1390240772,), (1390240810,), (1390240813,), (1390240817,), (1390240820,), (1390240864,), (1390240867,), (1390240870,), (1390240874,), (1390240878,), (1390240914,), (1390240918,), (1390240922,), (1390240926,), (1390240929,), (1390240940,), (1390240979,), (1390240982,), (1390240984,), (1390240988,), (1390241032,), (1390241036,), (1390241040,), (1390241049,), (1390241080,), (1390241083,), (1390241085,), (1390241087,), (1390241089,), (1390241094,), (1390241121,), (1390241123,), (1390241126,), (1390241139,), (1390241142,), (1390241111,), (1390241115,), (1390241117,), (1390241154,), (1390241165,), (1390241214,), (1390241216,), (1390241220,), (1390241224,), (1390241228,), (1390241288,), (1390241290,), (1390241291,), (1390241292,), (1390241325,), (1390241326,), (1390241332,), (1390241334,), (1390241343,), (1390241344,), (1390241349,), (1390241350,), (1390241404,), (1390241407,), (1390241410,), (1390241412,), (1390241414,), (1390241420,), (1390241423,), (1390241427,), (1390241433,), (1390241482,), (1390241484,), (1390241487,), (1390241490,), (1390241520,), (1390241524,), (1390241527,), (1390241530,), (1390241534,), (1390241607,), (1390241610,), (1390241614,), (1390241616,), (1390241618,), (1390241621,), (1390241626,), (1390241630,), (1390241634,), (1390241681,), (1390241682,), (1390241687,), (1390241688,), (1390241693,), (1390241694,), (1390241697,), (1390241698,), (1390241711,), (1390241712,), (1390241721,), (1390241725,), (1390241728,), (1390241731,), (1390241790,), (1390241793,), (1390241795,), (1390241797,), (1390241799,), (1390241915,), (1390241917,), (1390241902,), (1390241903,), (1390241905,), (1390241906,), (1390241908,), (1390241909,), (1390241911,), (1390241912,), (1390241930,), (1390241933,), (1390241935,), (1390241937,), (1390241988,), (1390241990,), (1390241993,), (1390241997,), (1390242000,), (1390242037,), (1390242039,), (1390242043,), (1390242047,), (1390242051,), (1390242095,), (1390242098,), (1390242102,), (1390242105,), (1390242108,), (1390242141,), (1390242145,), (1390242152,), (1390242154,), (1390242210,), (1390242211,), (1390242215,), (1390242217,), (1390242221,), (1390242223,), (1390242227,), (1390242228,), (1390242233,), (1390242234,), (1390242271,), (1390242276,), (1390242280,), (1390242283,), (1390242286,), (1390242300,), (1390242304,), (1390242308,), (1390242343,), (1390242344,), (1390242347,), (1390242350,), (1390242397,), (1390242399,), (1390242401,), (1390242404,), (1390242407,), (1390242436,), (1390242439,), (1390242443,), (1390242446,), (1390242448,), (1390242489,), (1390242492,), (1390242494,), (1390242508,), (1390242512,), (1390242518,), (1390242523,), (1390242528,), (1390242533,), (1390242538,), (1390242544,), (1390242547,), (1390242595,), (1390242597,), (1390242602,), (1390242606,), (1390242590,), (1390242593,), (1390242619,), (1390242621,), (1390242623,), (1390242625,), (1390242661,), (1390242662,), (1390242665,), (1390242666,), (1390242668,), (1390242670,), (1390242673,), (1390242679,), (1390242712,), (1390242716,), (1390242719,), (1390242721,), (1390242727,), (1390242735,), (1390242738,), (1390242785,), (1390242797,), (1390242800,), (1390242803,), (1390242854,), (1390242859,), (1390242868,), (1390242873,), (1390242893,), (1390242896,), (1390242899,), (1390242902,), (1390242949,), (1390242950,), (1390243008,), (1390243011,), (1390243014,), (1390243018,), (1390243050,), (1390243053,), (1390243056,), (1390243119,), (1390243122,), (1390243126,), (1390243130,), (1390243133,), (1390243165,), (1390243168,), (1390243172,), (1390243177,), (1390243233,), (1390243234,), (1390243273,), (1390243275,), (1390243278,), (1390243281,), (1390243284,), (1390243286,), (1390243297,), (1390243298,), (1390243301,), (1390243302,), (1390243330,), (1390243322,), (1390243326,), (1390243328,), (1390243359,), (1390243361,), (1390243364,), (1390243368,), (1390243372,), (1390243420,), (1390243424,), (1390243461,), (1390243463,), (1390243466,), (1390243471,), (1390243475,), (1390243479,), (1390243529,), (1390243533,), (1390243536,), (1390243538,), (1390243540,), (1390243570,), (1390243573,), (1390243576,), (1390243581,), (1390243644,), (1390243645,), (1390243646,), (1390243647,), (1390243649,), (1390243650,), (1390243653,), (1390243654,), (1390243696,), (1390243700,), (1390243705,), (1390243710,), (1390243786,), (1390243789,), (1390243791,), (1390243829,), (1390243831,), (1390243833,), (1390243878,), (1390243880,), (1390243887,), (1390243888,), (1390243891,), (1390243893,), (1390243898,), (1390243899,), (1390243953,), (1390243957,), (1390243995,), (1390243996,), (1390243998,), (1390243999,), (1390244041,), (1390244044,), (1390244046,), (1390244048,), (1390244116,), (1390244117,), (1390244137,), (1390244140,), (1390244144,), (1390244147,), (1390244083,), (1390244084,), (1390244087,), (1390244088,), (1390244091,), (1390244092,), (1390244097,), (1390244100,), (1390244110,), (1390244111,), (1390244133,), (1390244135,), (1390244194,), (1390244197,), (1390244202,), (1390244206,), (1390244240,), (1390244243,), (1390244247,), (1390244250,), (1390244311,), (1390244312,), (1390244314,), (1390244316,), (1390244322,), (1390244323,), (1390244364,), (1390244367,), (1390244372,), (1390244426,), (1390244429,), (1390244432,), (1390244440,), (1390244443,), (1390244446,), (1390244454,), (1390244499,), (1390244502,), (1390244507,), (1390244567,), (1390244572,), (1390244575,), (1390244576,), (1390244609,), (1390244613,), (1390244616,), (1390244650,), (1390244654,), (1390244658,), (1390244661,), (1390244708,), (1390244709,), (1390244710,), (1390244711,), (1390244712,), (1390244713,), (1390244761,), (1390244762,), (1390244765,), (1390244766,), (1390244767,), (1390244768,), (1390244805,), (1390244806,), (1390244809,), (1390244810,), (1390244812,), (1390244814,), (1390244869,), (1390244870,), (1390244860,), (1390244861,), (1390244862,), (1390244864,), (1390244865,), (1390244866,), (1390244932,), (1390244936,), (1390244939,), (1390244943,), (1390244946,), (1390244949,), (1390244965,), (1390244968,), (1390244974,), (1390245037,), (1390245039,), (1390245042,), (1390245046,), (1390245120,), (1390245121,), (1390245123,), (1390245126,), (1390245156,), (1390245159,), (1390245163,), (1390245220,), (1390245224,), (1390245253,), (1390245260,), (1390245264,), (1390245331,), (1390245334,), (1390245336,), (1390245340,), (1390245344,), (1390245378,), (1390245383,), (1390245388,), (1390245390,), (1390245393,), (1390245436,), (1390245439,), (1390245445,), (1390245446,), (1390245447,), (1390245448,), (1390245463,), (1390245467,), (1390245472,), (1390245477,), (1390245479,), (1390245527,), (1390245528,), (1390245531,), (1390245532,), (1390245536,), (1390245537,), (1390245541,), (1390245542,), (1390245546,), (1390245548,), (1390245564,), (1390245569,), (1390245575,), (1390245581,), (1390245654,), (1390245646,), (1390245650,), (1390245713,), (1390245715,), (1390245717,), (1390245758,), (1390245772,), (1390245779,), (1390245786,), (1390245790,), (1390245802,), (1390245804,), (1390245806,), (1390245812,), (1390245815,), (1390245819,), (1390245857,), (1390245859,), (1390245863,), (1390245865,), (1390245869,), (1390245870,), (1390245874,), (1390245875,), (1390245922,), (1390245926,), (1390245937,), (1390245939,), (1390245944,), (1390245958,), (1390245960,), (1390245963,), (1390245966,), (1390245968,), (1390245971,), (1390246031,), (1390246033,), (1390246036,), (1390246053,), (1390246056,), (1390246174,), (1390246175,), (1390246178,), (1390246179,), (1390246181,), (1390246182,), (1390246186,), (1390246196,), (1390246211,), (1390246221,), (1390246291,), (1390246294,), (1390246297,), (1390246386,), (1390246404,), (1390246427,), (1390246603,), (1390246606,), (1390246674,), (1390246677,), (1390246682,), (1390246688,), (1390246763,), (1390246779,), (1390246783,), (1390246786,), (1390246788,), (1390246802,), (1390246821,), (1390246857,), (1390246891,), (1390246893,), (1390246896,), (1390246900,), (1390246930,), (1390247133,), (1390247310,), (1390247112,), (1390247114,), (1390247120,), (1390247130,), (1390247215,), (1390247216,), (1390247222,), (1390247223,), (1390247226,), (1390247227,), (1390247244,), (1390247248,), (1390247250,), (1390247251,), (1390247254,), (1390247255,), (1390247274,), (1390247277,), (1390247280,), (1390247283,), (1390247286,), (1390247290,), (1390247299,), (1390247302,), (1390247318,), (1390247322,), (1390247326,), (1390247329,), (1390247333,), (1390247587,), (1390247591,), (1390247594,), (1390247598,), (1390247670,), (1390247682,), (1390247692,), (1390247703,), (1390247707,), (1390247736,), (1390247838,), (1390247843,), (1390247847,), (1390247853,), (1390247858,), (1390247862,), (1390247962,), (1390247994,), (1390248062,), (1390248066,), (1390248073,), (1390248085,), (1390248090,), (1390248097,), (1390248100,), (1390248169,), (1390248218,), (1390248470,), (1390248504,), (1390248505,), (1390248543,), (1390248626,), (1390248629,), (1390248613,), (1390248617,), (1390248656,), (1390248657,), (1390248688,), (1390248690,), (1390248750,), (1390248755,), (1390248758,), (1390248765,), (1390249255,), (1390249298,), (1390249341,), (1390249376,), (1390249387,), (1390249391,), (1390249560,), (1390249563,), (1390249566,), (1390249569,), (1390249572,), (1390249662,), (1390249666,), (1390249668,), (1390249670,), (1390249717,), (1390249725,), (1390249731,), (1390249735,), (1390249738,), (1390249837,), (1390250204,), (1390250200,), (1390250310,), (1390250409,), (1390250410,), (1390250709,), (1390250711,), (1390250717,), (1390250721,), (1390250726,), (1390250792,), (1390250793,), (1390250798,), (1390250799,), (1390250803,), (1390250804,), (1390250807,), (1390250808,), (1390250845,), (1390250847,), (1390250850,), (1390250861,), (1390250864,), (1390250868,), (1390250892,), (1390250896,), (1390250901,), (1390251015,), (1390251018,), (1390251020,), (1390251021,), (1390251025,), (1390251028,), (1390251031,), (1390251034,), (1390251037,), (1390251040,), (1390251204,), (1390251211,), (1390251217,), (1390251240,), (1390251319,), (1390251323,), (1390251328,), (1390251384,), (1390251391,), (1390251400,), (1390251416,), (1390251419,), (1390251448,), (1390251555,), (1390251586,), (1390251589,), (1390251594,), (1390251597,), (1390251616,), (1390251809,), (1390251811,), (1390251813,), (1390251815,), (1390251990,), (1390251994,), (1390252070,), (1390252075,), (1390252089,), (1390252175,), (1390252188,), (1390252199,), (1390251979,), (1390251983,), (1390251985,), (1390251987,), (1390252004,), (1390252025,), (1390252058,), (1390252148,), (1390252162,), (1390252166,), (1390252169,), (1390252172,), (1390252183,), (1390252185,), (1390252252,), (1390252258,), (1390252262,), (1390252292,), (1390252296,), (1390252346,), (1390252350,), (1390252354,), (1390252397,), (1390252401,), (1390252413,), (1390252421,), (1390252428,), (1390252479,), (1390252482,), (1390252485,), (1390252489,), (1390252540,), (1390252541,), (1390252543,), (1390252544,), (1390252546,), (1390252549,), (1390252550,), (1390252553,), (1390252554,), (1390252556,), (1390252561,), (1390252564,), (1390252567,), (1390252613,), (1390252615,), (1390252619,), (1390252623,), (1390252627,), (1390252631,), (1390252726,), (1390252733,), (1390252736,), (1390252739,), (1390252743,), (1390252753,), (1390252756,), (1390252759,), (1390252793,), (1390252795,), (1390252802,), (1390252805,), (1390252808,), (1390253303,), (1390253308,), (1390253153,), (1390253154,), (1390253207,), (1390253212,), (1390253263,), (1390253269,), (1390253594,), (1390253599,), (1390253613,), (1390253630,), (1390253653,), (1390253663,), (1390253699,), (1390253738,), (1390253876,), (1390253905,), (1390253960,), (1390253964,), (1390253972,), (1390254237,), (1390254240,), (1390254245,), (1390254252,), (1390254266,), (1390254269,), (1390254326,), (1390254348,), (1390254351,), (1390254354,), (1390254362,), (1390254379,), (1390254382,), (1390254391,), (1390254437,), (1390254439,), (1390254443,), (1390254447,), (1390254449,), (1390254452,), (1390254471,), (1390254473,), (1390254501,), (1390254505,), (1390254510,), (1390254517,), (1390254560,), (1390254564,), (1390254569,), (1390254573,), (1390254624,), (1390254625,), (1390254628,), (1390254629,), (1390254708,), (1390254719,), (1390254727,), (1390254729,), (1390254731,), (1390254733,), (1390254773,), (1390254782,), (1390254785,), (1390254788,), (1390254791,), (1390254805,), (1390254813,), (1390254814,), (1390254816,), (1390254868,), (1390255238,), (1390255281,), (1390255288,), (1390255343,), (1390255345,), (1390255347,), (1390255395,), (1390255396,), (1390255398,), (1390255400,), (1390255505,), (1390255537,), (1390255540,), (1390255574,), (1390255577,), (1390255580,), (1390255641,), (1390255644,), (1390255646,), (1390255717,), (1390255719,), (1390255729,), (1390255732,), (1390255735,), (1390255738,), (1390256026,), (1390255980,), (1390256001,), (1390256015,), (1390256021,), (1390256024,), (1390256161,), (1390256162,), (1390256171,), (1390256173,), (1390256177,), (1390256178,), (1390256180,), (1390256181,), (1390256182,), (1390256184,), (1390256188,), (1390256192,), (1390256196,), (1390256205,), (1390256243,), (1390256558,), (1390256559,), (1390256724,), (1390256729,), (1390256734,), (1390256789,), (1390256804,), (1390256807,), (1390257918,), (1390257958,), (1390257975,), (1390257984,), (1390257996,), (1390257999,), (1390258002,), (1390258144,), (1390258184,), (1390258225,), (1390258267,), (1390258329,), (1390258794,), (1390258806,), (1390258846,), (1390258868,), (1390259086,), (1390259090,), (1390259093,), (1390259172,), (1390259174,), (1390259163,), (1390259164,), (1390259167,), (1390259168,), (1390259385,), (1390259386,), (1390259389,), (1390259390,), (1390259406,), (1390259428,), (1390259444,), (1390259465,), (1390259652,), (1390259653,), (1390259761,), (1390259762,), (1390259766,), (1390259767,), (1390259770,), (1390259771,), (1390259776,), (1390259777,), (1390259808,), (1390259810,), (1390259813,), (1390259815,), (1390259819,), (1390259833,), (1390259842,), (1390259843,), (1390259846,), (1390259849,), (1390259884,), (1390260596,), (1390354145,), (1390350055,), (1390354255,), (1390354258,), (1390354269,), (1390354303,), (1390354337,), (1390354368,), (1390355444,), (1390355553,), (1390357993,), (1390357742,), (1390357871,), (1390358384,), (1390358888,), (1390358891,), (1390359192,), (1390359229,), (1390359268,), (1390359305,), (1390359719,), (1390359769,), (1390360450,), (1390361608,), (1390362818,), (1390363410,), (1390363438,), (1390363443,), (1390363447,), (1390363451,), (1390363943,), (1390364009,), (1390364080,), (1390364801,), (1390364848,), (1390364887,), (1390364927,), (1390365004,), (1390365073,), (1390365753,), (1390365710,), (1390365713,), (1390365717,), (1390366179,), (1390366217,), (1390366275,), (1390366368,), (1390366405,), (1390366449,), (1390366725,), (1390366730,), (1390366741,), (1390366744,), (1390366776,), (1390366779,), (1390366796,), (1390366797,), (1390367126,), (1390367159,), (1390367191,), (1390367212,), (1390367261,), (1390367319,), (1390367558,), (1390367611,), (1390367670,), (1390367735,), (1390367811,), (1390367918,), (1390368930,), (1390368950,), (1390368993,), (1390369063,), (1390369092,), (1390369722,), (1390369723,), (1390369752,), (1390369754,), (1390369810,), (1390369818,), (1390369881,), (1390369882,), (1390369968,), (1390369974,), (1390370097,), (1390370106,), (1390370445,), (1390370505,), (1390370693,), (1390370833,), (1390371317,), (1390371344,), (1390371370,), (1390371395,), (1390371420,), (1390372038,), (1390372039,), (1390372066,), (1390372067,), (1390372103,), (1390372105,), (1390372948,), (1390372949,), (1390372996,), (1390372998,), (1390373053,), (1390373060,), (1390373112,), (1390373128,), (1390373386,), (1390383375,), (1390380088,), (1390385719,), (1390385776,), (1390386718,), (1390386733,), (1390386761,), (1390386782,), (1390386907,), (1390386955,), (1390387013,), (1390387093,), (1390388963,), (1390389038,), (1390389097,), (1390389154,), (1390390184,), (1390389953,), (1390390044,), (1390390109,), (1390391595,), (1390391667,), (1390391720,), (1390391744,), (1390391799,), (1390391848,), (1390392242,), (1390392275,), (1390392350,), (1390392412,), (1390392450,), (1390393488,), (1390393553,), (1390393578,), (1390393604,), (1390393669,), (1390393697,), (1390393825,), (1390393853,), (1390393881,), (1390393902,), (1390393929,), (1390394229,), (1390394258,), (1390394291,), (1390394317,), (1390394340,), (1390394365,), (1390394865,), (1390394866,), (1390394914,), (1390394917,), (1390394960,), (1390394978,), (1390395018,), (1390395032,), (1390395079,), (1390395107,), (1390395649,), (1390395683,), (1390395709,), (1390395742,), (1390395768,), (1390395793,), (1390395948,), (1390396000,), (1390396069,), (1390396166,), (1390396263,), (1390396328,), (1390397025,), (1390397231,), (1390397403,), (1390397609,), (1390397630,), (1390397652,), (1390397694,), (1390397742,), (1390398509,), (1390398523,), (1390398537,), (1390398552,), (1390398567,), (1390398582,), (1390398720,), (1390398734,), (1390398745,), (1390398757,), (1390398773,), (1390399103,), (1390399191,), (1390399230,), (1390399276,), (1390399317,), (1390399364,), (1390399838,), (1390399891,), (1390399931,), (1390399962,), (1390400593,), (1390400597,), (1390400730,), (1390400742,), (1390400803,), (1390400804,), (1390400818,), (1390400819,), (1390402571,), (1390402105,), (1390402194,), (1390402270,), (1390402350,), (1390402492,), (1390402835,), (1390402888,), (1390402936,), (1390402983,), (1390403757,), (1390403766,), (1390403776,), (1390403786,), (1390403827,), (1390403980,), (1390404019,), (1390404069,), (1390404117,), (1390404182,), (1390405007,), (1390405008,), (1390405065,), (1390405069,), (1390405195,), (1390405197,), (1390405374,), (1390405375,), (1390405566,), (1390405567,), (1390406601,), (1390406643,), (1390406677,), (1390406726,), (1390406773,), (1390407097,), (1390407151,), (1390407196,), (1390407238,), (1390407278,), (1390407287,), (1390407518,), (1390407539,), (1390407548,), (1390407563,), (1390407580,), (1390408207,), (1390408326,), (1390408340,), (1390408355,), (1390408366,), (1390408381,), (1390408736,), (1390408744,), (1390408760,), (1390408769,), (1390408809,), (1390408837,), (1390408883,), (1390408925,), (1390408975,), (1390409021,), (1390409606,), (1390409651,), (1390409694,), (1390409741,), (1390409795,), (1390410409,), (1390410458,), (1390410504,), (1390410571,), (1390410703,), (1390410769,), (1390411655,), (1390411663,), (1390411672,), (1390411687,), (1390411703,), (1390411719,), (1390411859,), (1390411898,), (1390411945,), (1390411997,), (1390412045,), (1390412096,), (1390412195,), (1390412251,), (1390412326,), (1390412378,), (1390412744,), (1390412533,), (1390412571,), (1390412607,), (1390412672,), (1390413253,), (1390413272,), (1390413292,), (1390413298,), (1390413300,), (1390413336,), (1390413338,), (1390413340,), (1390413342,), (1390413344,), (1390413347,), (1390414027,), (1390414028,), (1390414192,), (1390414199,), (1390414359,), (1390414364,), (1390414526,), (1390414531,), (1390414545,), (1390414546,), (1390414809,), (1390414843,), (1390414933,), (1390414993,), (1390415106,), (1390415124,), (1390415148,), (1390415162,), (1390415184,), (1390415207,), (1390415498,), (1390415554,), (1390415608,), (1390415661,), (1390416425,), (1390416453,), (1390416511,), (1390416575,), (1390417827,), (1390417853,), (1390417874,), (1390417895,), (1390417907,), (1390417960,), (1390418073,), (1390418074,), (1390418088,), (1390418089,), (1390418110,), (1390418116,), (1390418131,), (1390418139,), (1390418812,), (1390418894,), (1390418911,), (1390418942,), (1390418975,), (1390419002,), (1390419088,), (1390419110,), (1390419137,), (1390420877,), (1390421261,), (1390421262,), (1390421288,), (1390421289,), (1390421234,), (1390421235,), (1390422037,), (1390422122,), (1390422207,), (1390422304,), (1390422968,), (1390422993,), (1390423023,), (1390423050,), (1390423092,), (1390424240,), (1390424273,), (1390424322,), (1390424353,), (1390424380,), (1390424406,), (1390424486,), (1390424515,), (1390424546,), (1390424564,), (1390424591,), (1390424605,), (1390424693,), (1390424720,), (1390424735,), (1390424822,), (1390425304,), (1390425355,), (1390425405,), (1390425453,), (1390425887,), (1390425888,), (1390425913,), (1390425917,), (1390425948,), (1390425949,), (1390425971,), (1390425975,), (1390425977,), (1390425984,), (1390426142,), (1390426200,), (1390426250,), (1390426310,), (1390426825,), (1390426855,), (1390427102,), (1390427129,), (1390427146,), (1390427401,), (1390427414,), (1390427771,), (1390427792,), (1390427806,), (1390427881,), (1390427901,), (1390431682,), (1390431685,), (1390431599,), (1390431600,), (1390431629,), (1390431630,), (1390432307,), (1390432308,), (1390432326,), (1390432332,), (1390432347,), (1390432361,), (1390433577,), (1390433674,), (1390433878,), (1390433971,), (1390434038,), (1390434134,), (1390434342,), (1390434404,), (1390434429,), (1390434733,), (1390434789,), (1390434857,), (1390434905,), (1390434967,), (1390435009,), (1390435667,), (1390435726,), (1390435779,), (1390435833,), (1390435892,), (1390436262,), (1390436302,), (1390436334,), (1390436349,), (1390436370,), (1390436602,), (1390436603,), (1390436617,), (1390436623,), (1390436644,), (1390436654,), (1390436692,), (1390436696,), (1390436748,), (1390436750,), (1390436790,), (1390436793,), (1390436996,), (1390437052,), (1390437106,), (1390437168,), (1390438523,), (1390438541,), (1390438585,), (1390438615,), (1390438637,), (1390439093,), (1390439108,), (1390439137,), (1390439152,), (1390439183,), (1390439202,), (1390439471,), (1390439485,), (1390439509,), (1390439530,), (1390441242,), (1390441340,), (1390441434,), (1390441524,), (1390441619,), (1390444153,), (1390442818,), (1390443063,), (1390443431,), (1390443730,), (1390444684,), (1390444738,), (1390444799,), (1390444824,), (1390444932,), (1390444958,), (1390445010,), (1390445049,), (1390445078,), (1390445111,), (1390446119,), (1390446241,), (1390446301,), (1390446362,), (1390446978,), (1390447034,), (1390447095,), (1390447145,), (1390447162,), (1390447186,), (1390448229,), (1390448384,), (1390448463,), (1390448489,), (1390448503,), (1390448662,), (1390448710,), (1390448785,), (1390448870,), (1390449045,), (1390449696,), (1390449714,), (1390449741,), (1390449762,), (1390449795,), (1390450790,), (1390450816,), (1390450879,), (1390450998,), (1390451458,), (1390451536,), (1390451600,), (1390451660,), (1390451724,), (1390451788,), (1390452456,), (1390452537,), (1390452628,), (1390452723,), (1390452997,), (1390453061,), (1390453110,), (1390453207,), (1390453271,), (1390453836,), (1390453863,), (1390453898,), (1390453964,), (1390454044,), (1390454125,), (1390455173,), (1390455235,), (1390455293,), (1390455341,), (1390456188,), (1390456189,), (1390456210,), (1390456212,), (1390456240,), (1390456241,), (1390456272,), (1390456275,), (1390456301,), (1390456302,), (1390456318,), (1390456325,), (1390457156,), (1390456422,), (1390456590,), (1390456773,), (1390456965,), (1390458504,), (1390458694,), (1390459733,), (1390459754,), (1390459780,), (1390459804,), (1390459819,), (1390460718,), (1390460781,), (1390460863,), (1390461572,), (1390461639,), (1390461783,), (1390461919,), (1390462235,), (1390462579,), (1390463117,), (1390463119,), (1390463121,), (1390463126,), (1390463131,), (1390463142,), (1390463331,), (1390463332,), (1390463333,), (1390463341,), (1390463390,), (1390463391,), (1390463529,), (1390463567,), (1390463605,), (1390463641,), (1390463677,), (1390464120,), (1390464123,), (1390464212,), (1390464217,), (1390464253,), (1390464262,), (1390464296,), (1390464306,), (1390464334,), (1390464345,), (1390464790,), (1390464792,), (1390464794,), (1390464796,), (1390464832,), (1390465053,), (1390465105,), (1390465143,), (1390465181,), (1390465228,), (1390465302,), (1390465703,), (1390465705,), (1390465708,), (1390465717,), (1390465719,), (1390466122,), (1390466125,), (1390466158,), (1390466170,), (1390466173,), (1390466577,), (1390466578,), (1390466610,), (1390466613,), (1390466648,), (1390466653,), (1390466683,), (1390466690,), (1390466710,), (1390466711,), (1390466739,), (1390466741,), (1390466747,), (1390466791,), (1390466834,), (1390467012,), (1390467015,), (1390467018,), (1390467022,), (1390467026,), (1390467030,), (1390468086,), (1390468096,), (1390468098,), (1390469305,), (1390469327,), (1390469330,), (1390469348,), (1390469351,), (1390469420,), (1390470049,), (1390467823,), (1390467971,), (1390468076,), (1390468734,), (1390468811,), (1390468867,), (1390468943,), (1390468987,), (1390469024,), (1390469202,), (1390469237,), (1390469271,), (1390469338,), (1390469342,), (1390469344,), (1390469898,), (1390469963,), (1390470006,), (1390470975,), (1390471014,), (1390471321,), (1390471337,), (1390471340,), (1390471343,), (1390471346,), (1390471349,), (1390471673,), (1390471693,), (1390471697,), (1390471703,), (1390471821,), (1390471823,), (1390471824,), (1390471827,), (1390471840,), (1390471843,), (1390472341,), (1390472345,), (1390472347,), (1390472364,), (1390472415,), (1390472579,), (1390472627,), (1390472671,), (1390472782,), (1390474400,), (1390474506,), (1390474624,), (1390474721,), (1390474764,), (1390474915,), (1390474952,), (1390474967,), (1390474970,), (1390474972,), (1390475113,), (1390475172,), (1390475216,), (1390475252,), (1390475930,), (1390475941,), (1390475945,), (1390475951,), (1390475991,), (1390476029,), (1390476667,), (1390476671,), (1390476674,), (1390476703,), (1390476724,), (1390476941,), (1390476986,), (1390477024,), (1390477061,), (1390477099,), (1390477173,), (1390477174,), (1390477152,), (1390477153,), (1390477157,), (1390477159,), (1390477164,), (1390477165,), (1390477167,), (1390477168,), (1390477170,), (1390477171,), (1390477206,), (1390477246,), (1390477285,), (1390477317,), (1390477325,), (1390477565,), (1390477581,), (1390477590,), (1390477601,), (1390477606,), (1390478049,), (1390478091,), (1390478120,), (1390478162,), (1390478325,), (1390478362,), (1390478404,), (1390478471,), (1390478553,), (1390479188,), (1390479254,), (1390479328,), (1390479365,), (1390479402,), (1390479439,), (1390479841,), (1390479878,), (1390479915,), (1390479949,), (1390479980,), (1390480010,), (1390480200,), (1390480273,), (1390480355,), (1390480385,), (1390480421,), (1390480637,), (1390480638,), (1390480681,), (1390480683,), (1390480739,), (1390480759,), (1390480785,), (1390480799,), (1390480825,), (1390480851,), (1390480864,), (1390480890,), (1390481087,), (1390481162,), (1390481237,), (1390481309,), (1390481385,), (1390482034,), (1390482063,), (1390482115,), (1390482187,), (1390482266,), (1390483444,), (1390483654,), (1390483881,), (1390484070,), (1390484212,), (1390484295,), (1390484608,), (1390484663,), (1390484697,), (1390484738,), (1390484780,), (1390485115,), (1390485260,), (1390485305,), (1390485339,), (1390485385,), (1390485974,), (1390486013,), (1390486041,), (1390486075,), (1390486113,), (1390486154,), (1390486658,), (1390486694,), (1390486732,), (1390486765,), (1390488487,), (1390488164,), (1390488270,), (1390488368,), (1390489389,), (1390489705,), (1390489904,), (1390490065,), (1390490123,), (1390490218,), (1390491309,), (1390491310,), (1390491382,), (1390491385,), (1390491451,), (1390491457,), (1390491530,), (1390491538,), (1390492560,), (1390492630,), (1390492702,), (1390492774,), (1390492840,), (1390493110,), (1390493213,), (1390493296,), (1390493364,), (1390493438,), (1390493543,), (1390494174,), (1390494213,), (1390494255,), (1390494288,), (1390495573,), (1390495731,), (1390495782,), (1390495836,), (1390495885,), (1390496606,), (1390496642,), (1390496691,), (1390496730,), (1390496766,), (1390496919,), (1390496954,), (1390496986,), (1390497029,), (1390497068,), (1390497111,), (1390497983,), (1390497984,), (1390498048,), (1390498055,), (1390498122,), (1390498123,), (1390498192,), (1390498198,), (1390498266,), (1390498268,), (1390498567,), (1390498649,), (1390498712,), (1390498784,), (1390498882,), (1390498920,), (1390499877,), (1390500048,), (1390500202,), (1390500274,), (1390500353,), (1390501243,), (1390501279,), (1390501313,), (1390501356,), (1390501393,), (1390501565,), (1390501638,), (1390501705,), (1390501771,), (1390501837,), (1390502260,), (1390502292,), (1390502359,), (1390502432,), (1390502513,), (1390502611,), (1390503092,), (1390503221,), (1390503356,), (1390503523,), (1390504900,), (1390504068,), (1390504161,), (1390504297,), (1390504528,), (1390504727,), (1390506358,), (1390506432,), (1390506478,), (1390506552,), (1390507194,), (1390507274,), (1390507361,), (1390507466,), (1390507563,), (1390507635,), (1390507866,), (1390507932,), (1390508005,), (1390508091,), (1390508166,), (1390508956,), (1390509033,), (1390509093,), (1390509163,), (1390509220,), (1390509258,), (1390511084,), (1390511152,), (1390511225,), (1390511269,), (1390511308,), (1390511649,), (1390511873,), (1390511964,), (1390512042,), (1390512139,), (1390513030,), (1390513037,), (1390513075,), (1390513076,), (1390513112,), (1390513113,), (1390513148,), (1390513153,), (1390513224,), (1390513226,), (1390513309,), (1390513312,), (1390513563,), (1390513621,), (1390513660,), (1390513700,), (1390514316,), (1390514349,), (1390514387,), (1390514425,), (1390514463,), (1390514502,), (1390515053,), (1390515116,), (1390515173,), (1390515243,), (1390516620,), (1390516709,), (1390516752,), (1390516777,), (1390516802,), (1390516828,), (1390516906,), (1390516927,), (1390516948,), (1390516991,), (1390517045,), (1390517337,), (1390517438,), (1390517531,), (1390517644,), (1390517747,), (1390517833,), (1390519591,), (1390520552,), (1390520553,), (1390527778,), (1390543474,), (1390543475,), (1390543476,), (1390543477,), (1390543478,), (1390543479,), (1390543481,), (1390543482,), (1390543485,), (1390543486,), (1390543724,), (1390543803,), (1390543840,), (1390543879,), (1390544013,), (1390544993,), (1390545010,), (1390545014,), (1390545043,), (1390545052,), (1390545054,), (1390545353,), (1390545397,), (1390545432,), (1390545470,), (1390545603,), (1390545635,), (1390545671,), (1390545709,), (1390545755,), (1390546312,), (1390546352,), (1390546364,), (1390546368,), (1390546371,), (1390546374,), (1390546603,), (1390546627,), (1390546630,), (1390546699,), (1390546706,), (1390546713,), (1390546738,), (1390546748,), (1390546751,), (1390547182,), (1390547219,), (1390547255,), (1390547298,), (1390547520,), (1390547523,), (1390547532,), (1390547568,), (1390547639,), (1390547974,), (1390548083,), (1390548140,), (1390548190,), (1390548314,), (1390548769,), (1390548960,), (1390549122,), (1390549254,), (1390549922,), (1390550082,), (1390550206,), (1390550335,), (1390550476,), (1390551887,), (1390551696,), (1390551731,), (1390551770,), (1390551867,), (1390551882,), (1390551894,), (1390551896,), (1390551907,), (1390551947,), (1390551982,), (1390552198,), (1390552201,), (1390552204,), (1390552207,), (1390552209,), (1390552212,), (1390552221,), (1390552223,), (1390552226,), (1390552229,), (1390552259,), (1390552264,), (1390552266,), (1390552292,), (1390552773,), (1390552814,), (1390552857,), (1390552892,), (1390552925,), (1390553216,), (1390553238,), (1390553273,), (1390553310,), (1390553354,), (1390553521,), (1390553558,), (1390553594,), (1390553625,), (1390553666,), (1390554241,), (1390554245,), (1390554275,), (1390554303,), (1390554310,), (1390555592,), (1390555769,), (1390555944,), (1390556206,), (1390556208,), (1390556246,), (1390556249,), (1390556283,), (1390556285,), (1390556320,), (1390556324,), (1390556342,), (1390556345,), (1390556377,), (1390556386,), (1390556531,), (1390556733,), (1390556851,), (1390556884,), (1390557363,), (1390557430,), (1390557477,), (1390557516,), (1390557554,), (1390557591,), (1390557960,), (1390557962,), (1390557967,), (1390557969,), (1390558292,), (1390558295,), (1390558298,), (1390558300,), (1390558302,), (1390558304,), (1390558555,), (1390558400,), (1390558440,), (1390558476,), (1390558512,), (1390558717,), (1390558754,), (1390558794,), (1390558828,), (1390558864,), (1390558908,), (1390559042,), (1390559087,), (1390559126,), (1390559162,), (1390559333,), (1390559334,), (1390559335,), (1390559336,), (1390559337,), (1390559338,), (1390559340,), (1390559341,), (1390559343,), (1390559344,), (1390559347,), (1390559348,), (1390559358,), (1390559359,), (1390559360,), (1390559361,), (1390559364,), (1390559395,), (1390559397,), (1390559401,), (1390559405,), (1390559433,), (1390559677,), (1390560269,), (1390560432,), (1390560509,), (1390560511,), (1390561136,), (1390561197,), (1390561240,), (1390561275,), (1390561358,), (1390561406,), (1390562019,), (1390562031,), (1390562034,), (1390562037,), (1390562175,), (1390562253,), (1390562293,), (1390562329,), (1390562389,), (1390562529,), (1390562531,), (1390562533,), (1390562535,), (1390562537,), (1390563162,), (1390563305,), (1390563366,), (1390563369,), (1390563379,), (1390563383,), (1390563385,), (1390563643,), (1390563647,), (1390563649,), (1390563651,), (1390563653,), (1390564058,), (1390564095,), (1390564133,), (1390564172,), (1390564207,), (1390564628,), (1390564623,), (1390564625,), (1390564743,), (1390565538,), (1390565577,), (1390565617,), (1390565663,), (1390565734,), (1390566946,), (1390566977,), (1390566980,), (1390568018,), (1390568020,), (1390568055,), (1390568063,), (1390568143,), (1390568147,), (1390568219,), (1390568220,), (1390568276,), (1390568278,), (1390568408,), (1390568413,), (1390568793,), (1390568799,), (1390568801,), (1390568803,), (1390569158,), (1390569226,), (1390569383,), (1390569550,), (1390569719,), (1390569880,), (1390570470,), (1390570506,), (1390570552,), (1390570596,), (1390571040,), (1390571078,), (1390571116,), (1390571152,), (1390571175,), (1390571179,), (1390571725,), (1390571726,), (1390571763,), (1390571764,), (1390571800,), (1390571802,), (1390571839,), (1390571840,), (1390571881,), (1390571883,), (1390572045,), (1390572062,), (1390572117,), (1390572155,), (1390572195,), (1390572657,), (1390572724,), (1390572771,), (1390572814,), (1390572864,), (1390573006,), (1390573010,), (1390573015,), (1390573019,), (1390573023,), (1390573026,), (1390573031,), (1390573032,), (1390573034,), (1390573145,), (1390573353,), (1390574004,), (1390574010,), (1390573059,), (1390573062,), (1390573064,), (1390573066,), (1390573916,), (1390573995,), (1390573998,), (1390574000,), (1390574002,), (1390574194,), (1390574197,), (1390574201,), (1390574235,), (1390574565,), (1390574637,), (1390574709,), (1390574783,), (1390574857,), (1390575717,), (1390575719,), (1390575760,), (1390575761,), (1390575799,), (1390575807,), (1390575837,), (1390575847,), (1390575877,), (1390575886,), (1390576045,), (1390576091,), (1390576158,), (1390576223,), (1390576261,), (1390576421,), (1390576423,), (1390576426,), (1390576427,), (1390576464,), (1390576467,), (1390576502,), (1390576556,), (1390578081,), (1390581852,), (1390581888,), (1390583151,), (1390583152,), (1390583166,), (1390583167,), (1390583170,), (1390583171,), (1390583178,), (1390583179,), (1390583183,), (1390583187,), (1390583834,), (1390583799,), (1390583926,), (1390583929,), (1390583931,), (1390583933,), (1390583944,), (1390583945,), (1390583948,), (1390583949,), (1390583952,), (1390583953,), (1390583955,), (1390583956,), (1390583958,), (1390583959,), (1390584785,), (1390584786,), (1390584788,), (1390584789,), (1390584891,), (1390584892,), (1390584895,), (1390584897,), (1390584929,), (1390584931,), (1390584956,), (1390584958,), (1390584960,), (1390584971,), (1390585010,), (1390585044,), (1390585162,), (1390585197,), (1390585239,), (1390585272,), (1390585303,), (1390585453,), (1390585489,), (1390585526,), (1390585600,), (1390585665,), (1390586618,), (1390586619,), (1390586658,), (1390586663,), (1390586698,), (1390586702,), (1390586715,), (1390586716,), (1390586719,), (1390586720,), (1390586724,), (1390586725,), (1390586756,), (1390586757,), (1390586760,), (1390586764,), (1390587334,), (1390587382,), (1390587402,), (1390587419,), (1390587422,), (1390587840,), (1390587877,), (1390587910,), (1390587940,), (1390587976,), (1390588515,), (1390588565,), (1390588597,), (1390588635,), (1390588770,), (1390588817,), (1390588864,), (1390588905,), (1390588942,), (1390588982,), (1390589680,), (1390589714,), (1390589749,), (1390589787,), (1390590756,), (1390590806,), (1390590924,), (1390590965,), (1390590977,), (1390591019,), (1390591523,), (1390591557,), (1390591588,), (1390591646,), (1390591650,), (1390591659,), (1390591662,), (1390591415,), (1390591452,), (1390591490,), (1390591699,), (1390591700,), (1390591733,), (1390591737,), (1390591773,), (1390591777,), (1390592003,), (1390592004,), (1390592008,), (1390592009,), (1390592045,), (1390592046,), (1390592065,), (1390592081,), (1390592094,), (1390593046,), (1390593084,), (1390593129,), (1390593173,), (1390593505,), (1390593506,), (1390593776,), (1390593777,), (1390593780,), (1390593832,), (1390593835,), (1390593838,), (1390593841,), (1390594280,), (1390594438,), (1390594576,), (1390594711,), (1390594794,), (1390594828,), (1390594976,), (1390595095,), (1390595188,), (1390595226,), (1390595463,), (1390595530,), (1390595598,), (1390595642,), (1390595682,), (1390595740,), (1390596035,), (1390596037,), (1390596039,), (1390596310,), (1390596335,), (1390596352,), (1390596353,), (1390596355,), (1390596357,), (1390596546,), (1390596548,), (1390596580,), (1390596581,), (1390596613,), (1390596616,), (1390596649,), (1390596652,), (1390596682,), (1390596686,), (1390597881,), (1390597947,), (1390598015,), (1390598214,), (1390598263,), (1390598675,), (1390598496,), (1390598532,), (1390598566,), (1390598599,), (1390598636,), (1390599016,), (1390599086,), (1390599142,), (1390599178,), (1390599202,), (1390599481,), (1390599483,), (1390599485,), (1390599487,), (1390599490,), (1390599512,), (1390599682,), (1390599717,), (1390599754,), (1390599787,), (1390600000,), (1390600033,), (1390600072,), (1390600110,), (1390600141,), (1390600143,), (1390601311,), (1390601319,), (1390601352,), (1390601453,), (1390601837,), (1390601839,), (1390601872,), (1390601875,), (1390601912,), (1390601913,), (1390601946,), (1390601952,), (1390602238,), (1390602244,), (1390602246,), (1390602248,), (1390602254,), (1390602292,), (1390602344,), (1390602347,), (1390602350,), (1390602354,), (1390602371,), (1390602471,), (1390602602,), (1390602756,), (1390602886,), (1390603016,), (1390603548,), (1390603549,), (1390603594,), (1390603596,), (1390603631,), (1390603633,), (1390603669,), (1390603674,), (1390603705,), (1390603711,), (1390603871,), (1390603906,), (1390603943,), (1390603978,), (1390604016,), (1390604543,), (1390604584,), (1390604619,), (1390604655,), (1390604673,), (1390604674,), (1390605294,), (1390605301,), (1390605343,), (1390605381,), (1390605573,), (1390605577,), (1390605768,), (1390605781,), (1390605964,), (1390605987,), (1390606146,), (1390606166,), (1390606316,), (1390606336,), (1390606959,), (1390607056,), (1390607103,), (1390607615,), (1390607618,), (1390607621,), (1390606782,), (1390606803,), (1390606889,), (1390607284,), (1390607323,), (1390607366,), (1390607403,), (1390607441,), (1390607482,), (1390607630,), (1390607634,), (1390607637,), (1390608060,), (1390608076,), (1390608078,), (1390608079,), (1390608081,), (1390608083,), (1390608432,), (1390608433,), (1390608450,), (1390608452,), (1390608491,), (1390608497,), (1390608525,), (1390608533,), (1390608582,), (1390608607,), (1390608860,), (1390608913,), (1390608989,), (1390609075,), (1390609133,), (1390610392,), (1390610433,), (1390610479,), (1390610482,), (1390610485,), (1390610642,), (1390611220,), (1390611221,), (1390611263,), (1390611268,), (1390611321,), (1390611325,), (1390611381,), (1390611387,), (1390611478,), (1390611488,), (1390612013,), (1390612086,), (1390612153,), (1390612250,), (1390612415,), (1390613474,), (1390613559,), (1390613680,), (1390613795,), (1390614425,), (1390614470,), (1390614512,), (1390614552,), (1390614590,), (1390614634,), (1390614799,), (1390614837,), (1390614872,), (1390614920,), (1390614976,), (1390615198,), (1390615237,), (1390615292,), (1390615365,), (1390615431,), (1390615497,), (1390616411,), (1390616472,), (1390616542,), (1390616588,), (1390616993,), (1390616994,), (1390616996,), (1390616997,), (1390616999,), (1390617000,), (1390617014,), (1390617019,), (1390617061,), (1390617070,), (1390617131,), (1390617138,), (1390617493,), (1390617347,), (1390617394,), (1390617453,), (1390617898,), (1390618062,), (1390618229,), (1390618272,), (1390618305,), (1390618793,), (1390618942,), (1390619717,), (1390619720,), (1390619723,), (1390619765,), (1390619790,), (1390620243,), (1390620315,), (1390620385,), (1390620457,), (1390620581,), (1390620696,), (1390621595,), (1390621653,), (1390621679,), (1390621723,), (1390621913,), (1390621962,), (1390622002,), (1390622040,), (1390622078,), (1390622119,), (1390622700,), (1390622737,), (1390622741,), (1390622752,), (1390622758,), (1390622911,), (1390622912,), (1390622916,), (1390622917,), (1390622920,), (1390622921,), (1390622940,), (1390622941,), (1390622942,), (1390622943,), (1390623055,), (1390623093,), (1390623096,), (1390623098,), (1390623100,), (1390623103,), (1390623119,), (1390623121,), (1390623123,), (1390623126,), (1390623297,), (1390623338,), (1390623376,), (1390623414,), (1390623454,), (1390623528,), (1390624184,), (1390624258,), (1390624332,), (1390624400,), (1390624641,), (1390624682,), (1390624719,), (1390624754,), (1390624790,), (1390624849,), (1390625358,), (1390625400,), (1390625434,), (1390625462,), (1390627407,), (1390627566,), (1390627577,), (1390627581,), (1390627585,), (1390627085,), (1390627172,), (1390627245,), (1390627284,), (1390627348,), (1390627752,), (1390627912,), (1390628007,), (1390628021,), (1390628024,), (1390628057,), (1390628418,), (1390628421,), (1390628426,), (1390628430,), (1390628433,), (1390628434,), (1390628451,), (1390628453,), (1390628456,), (1390628459,), (1390628462,), (1390628464,), (1390628535,), (1390628543,), (1390628549,), (1390628881,), (1390628918,), (1390628957,), (1390628998,), (1390629040,), (1390629806,), (1390629875,), (1390629879,), (1390629882,), (1390629894,), (1390629898,), (1390629902,), (1390629909,), (1390629947,), (1390629985,), (1390630498,), (1390630536,), (1390630575,), (1390630611,), (1390630645,), (1390631376,), (1390631412,), (1390631449,), (1390631497,), (1390648907,), (1390648659,), (1390648826,), (1390650687,), (1390650756,), (1390651657,), (1390651751,), (1390651807,), (1390651904,), (1390651947,), (1390652660,), (1390652676,), (1390652680,), (1390653264,), (1390653296,), (1390653299,), (1390653492,), (1390653495,), (1390653619,), (1390653623,), (1390653625,), (1390653812,), (1390653818,), (1390653822,), (1390653825,), (1390653827,), (1390653828,), (1390654414,), (1390654450,), (1390654492,), (1390654553,), (1390654591,), (1390655584,), (1390655617,), (1390655652,), (1390655687,), (1390655698,), (1390656011,), (1390655856,), (1390655893,), (1390655970,), (1390655981,), (1390655985,), (1390656057,), (1390656059,), (1390656063,), (1390656067,), (1390656070,), (1390656309,), (1390656350,), (1390656412,), (1390656572,), (1390656742,), (1390657673,), (1390657711,), (1390657746,), (1390658183,), (1390658185,), (1390658223,), (1390658224,), (1390658259,), (1390658261,), (1390658295,), (1390658303,), (1390658334,), (1390658340,), (1390658644,), (1390658747,), (1390658864,), (1390659657,), (1390659660,), (1390659662,), (1390659664,), (1390659693,), (1390660144,), (1390660185,), (1390660254,), (1390660817,), (1390660839,), (1390660988,), (1390661221,), (1390661422,), (1390661591,), (1390662512,), (1390662633,), (1390662707,), (1390662813,), (1390662876,), (1390662914,), (1390663094,), (1390663136,), (1390663149,), (1390663153,), (1390663157,), (1390663521,), (1390663546,), (1390663575,), (1390663600,), (1390663608,), (1390663612,), (1390664136,), (1390664144,), (1390664208,), (1390664222,), (1390664224,), (1390664241,), (1390664274,), (1390664275,), (1390664277,), (1390664278,), (1390664279,), (1390664280,), (1390664291,), (1390664292,), (1390664544,), (1390664578,), (1390664614,), (1390664655,), (1390664700,), (1390664739,), (1390665324,), (1390665396,), (1390665465,), (1390665952,), (1390666095,), (1390666139,), (1390666178,), (1390665138,), (1390665176,), (1390665251,), (1390665776,), (1390665812,), (1390665850,), (1390665884,), (1390665919,), (1390666394,), (1390666470,), (1390666540,), (1390666613,), (1390666669,), (1390667170,), (1390667188,), (1390667263,), (1390667397,), (1390667538,), (1390668153,), (1390668155,), (1390668164,), (1390668166,), (1390668169,), (1390668170,), (1390668172,), (1390668173,), (1390668176,), (1390668177,), (1390668180,), (1390668181,), (1390668255,), (1390668322,), (1390668387,), (1390668453,), (1390668514,), (1390669018,), (1390669051,), (1390669085,), (1390669121,), (1390669164,), (1390670189,), (1390670225,), (1390670265,), (1390670301,), (1390670336,), (1390671434,), (1390671467,), (1390671503,), (1390671515,), (1390671523,), (1390671527,), (1390672237,), (1390672277,), (1390672279,), (1390672281,), (1390672284,), (1390672381,), (1390672406,), (1390672448,), (1390672488,), (1390672525,), (1390672562,), (1390673405,), (1390673474,), (1390673532,), (1390673573,), (1390673607,), (1390674133,), (1390674135,), (1390674148,), (1390674149,), (1390674150,), (1390674151,), (1390674154,), (1390674155,), (1390674162,), (1390674164,), (1390674534,), (1390674604,), (1390674675,), (1390674732,), (1390674765,), (1390675159,), (1390674910,), (1390674978,), (1390675049,), (1390675085,), (1390675123,), (1390675746,), (1390675782,), (1390675818,), (1390675853,), (1390675890,), (1390676644,), (1390676670,), (1390676717,), (1390676726,), (1390676895,), (1390676931,), (1390676970,), (1390677137,), (1390677282,), (1390677419,), (1390678038,), (1390678039,), (1390678040,), (1390678041,), (1390678042,), (1390678043,), (1390678044,), (1390678045,), (1390678172,), (1390678209,), (1390678246,), (1390678282,), (1390678319,), (1390678354,), (1390678506,), (1390678550,), (1390678621,), (1390679259,), (1390679366,), (1390679482,), (1390679590,), (1390679697,), (1390679801,), (1390680177,), (1390680346,), (1390680515,), (1390680813,), (1390680850,), (1390680887,), (1390680927,), (1390680960,), (1390681614,), (1390681616,), (1390681650,), (1390681678,), (1390681696,), (1390681732,), (1390682070,), (1390682071,), (1390682082,), (1390682086,), (1390682116,), (1390682117,), (1390682396,), (1390682398,), (1390682433,), (1390682438,), (1390682468,), (1390682478,), (1390682507,), (1390682519,), (1390682548,), (1390682562,), (1390682584,), (1390682600,), (1390682736,), (1390682823,), (1390682886,), (1390682919,), (1390685015,), (1390685109,), (1390685207,), (1390685314,), (1390685416,), (1390685516,), (1390685822,), (1390685930,), (1390686007,), (1390686067,), (1390687856,), (1390688591,), (1390688741,), (1390688909,), (1390690010,), (1390690048,), (1390690092,), (1390690165,), (1390690383,), (1390690423,), (1390690693,), (1390690707,), (1390690744,), (1390690782,), (1390690816,), (1390690954,), (1390690993,), (1390691031,), (1390691067,), (1390691768,), (1390691777,), (1390691821,), (1390691860,), (1390691896,), (1390691938,), (1390692693,), (1390692726,), (1390692804,), (1390692839,), (1390693477,), (1390693479,), (1390693514,), (1390693516,), (1390693551,), (1390693552,), (1390693586,), (1390693590,), (1390693626,), (1390693628,), (1390693665,), (1390693666,), (1390693825,), (1390693865,), (1390693904,), (1390693936,), (1390694611,), (1390694733,), (1390694776,), (1390694814,), (1390694862,), (1390694953,), (1390695688,), (1390695722,), (1390695758,), (1390695796,), (1390695833,), (1390696450,), (1390696532,), (1390696608,), (1390696716,), (1390696829,), (1390696927,), (1390697437,), (1390697438,), (1390697382,), (1390697383,), (1390697424,), (1390697426,), (1390697434,), (1390697435,), (1390697793,), (1390697835,), (1390697870,), (1390697908,), (1390697947,), (1390697984,), (1390698127,), (1390698165,), (1390698200,), (1390698234,), (1390698289,), (1390698634,), (1390698638,), (1390698641,), (1390698644,), (1390698701,), (1390699650,), (1390699655,), (1390699711,), (1390700223,), (1390700260,), (1390700277,), (1390700280,), (1390700282,), (1390700313,), (1390700466,), (1390700467,), (1390700469,), (1390700470,), (1390700473,), (1390700474,), (1390700476,), (1390700477,), (1390700480,), (1390700481,), (1390700482,), (1390700483,), (1390700487,), (1390700492,), (1390700495,), (1390700498,), (1390700632,), (1390700667,), (1390700705,), (1390700739,), (1390700780,), (1390700818,), (1390701384,), (1390701459,), (1390702274,), (1390702308,), (1390702344,), (1390702379,), (1390702384,), (1390702391,), (1390702394,), (1390702425,), (1390702501,), (1390702551,), (1390702605,), (1390703299,), (1390703334,), (1390703372,), (1390703410,), (1390703641,), (1390703652,), (1390703659,), (1390703686,), (1390703702,), (1390703706,), (1390704774,), (1390704814,), (1390704848,), (1390704888,), (1390704893,), (1390704896,), (1390704910,), (1390704588,), (1390704740,), (1390704770,), (1390704772,), (1390704932,), (1390704934,), (1390704958,), (1390704996,), (1390705007,), (1390705009,), (1390705332,), (1390705403,), (1390705473,), (1390705537,), (1390706472,), (1390706614,), (1390706784,), (1390710161,), (1390710162,), (1390710163,), (1390710164,), (1390710165,), (1390710166,), (1390710202,), (1390710204,), (1390710239,), (1390710241,), (1390710473,), (1390710521,), (1390710522,), (1390710804,), (1390710841,), (1390710878,), (1390710910,), (1390710947,), (1390711224,), (1390711228,), (1390711232,), (1390711234,), (1390711732,), (1390711886,), (1390712007,), (1390712142,), (1390712771,), (1390712752,), (1390712755,), (1390712759,), (1390712763,), (1390712766,), (1390712783,), (1390712786,), (1390712788,), (1390712790,), (1390712901,), (1390712910,), (1390712923,), (1390713001,), (1390713144,), (1390713284,), (1390713556,), (1390713559,), (1390713562,), (1390713564,), (1390713566,), (1390713799,), (1390713801,), (1390713802,), (1390713803,), (1390713805,), (1390713808,), (1390713844,), (1390713846,), (1390713847,), (1390713848,), (1390713855,), (1390713859,), (1390713863,), (1390713867,), (1390713870,), (1390713872,), (1390713897,), (1390713899,), (1390713902,), (1390713910,), (1390713915,), (1390713917,), (1390713948,), (1390713950,), (1390713952,), (1390713955,), (1390713966,), (1390713970,), (1390713974,), (1390714010,), (1390714012,), (1390714015,), (1390714017,), (1390714045,), (1390714047,), (1390714048,), (1390714049,), (1390714050,), (1390714051,), (1390714053,), (1390714054,), (1390714057,), (1390714058,), (1390714060,), (1390714061,), (1390714092,), (1390714096,), (1390714100,), (1390714103,), (1390714104,), (1390714105,), (1390714893,), (1390714930,), (1390714940,), (1390714958,), (1390716381,), (1390716356,), (1390716359,), (1390716362,), (1390716379,), (1390716415,), (1390716425,), (1390716439,), (1390716461,), (1390717330,), (1390717368,), (1390717405,), (1390717445,), (1390717483,), (1390717946,), (1390717984,), (1390718021,), (1390718059,), (1390718094,), (1390718511,), (1390718545,), (1390718583,), (1390718618,), (1390719189,), (1390719190,), (1390719261,), (1390719267,), (1390719332,), (1390719337,), (1390719381,), (1390719392,), (1390720208,), (1390720272,), (1390720319,), (1390720323,), (1390720335,), (1390720665,), (1390720702,), (1390720738,), (1390721381,), (1390721521,), (1390721660,), (1390721725,), (1390721727,), (1390721729,), (1390722375,), (1390722675,), (1390722679,), (1390722705,), (1390722777,), (1390722778,), (1390722780,), (1390722781,), (1390722783,), (1390722784,), (1390722785,), (1390722786,), (1390723114,), (1390723148,), (1390723185,), (1390723407,), (1390723446,), (1390723494,), (1390723533,), (1390723681,), (1390723682,), (1390723715,), (1390723753,), (1390723795,), (1390723861,), (1390724567,), (1390724568,), (1390724533,), (1390724534,), (1390724555,), (1390724556,), (1390724565,), (1390724566,), (1390724871,), (1390724873,), (1390724876,), (1390724878,), (1390724883,), (1390724886,), (1390724889,), (1390724892,), (1390725287,), (1390725316,), (1390725319,), (1390725451,), (1390725500,), (1390725551,), (1390725587,), (1390725608,), (1390725704,), (1390725705,), (1390725712,), (1390725713,), (1390725715,), (1390725716,), (1390727062,), (1390727067,), (1390727175,), (1390727177,), (1390727214,), (1390727217,), (1390727739,), (1390727740,), (1390727747,), (1390727748,), (1390727752,), (1390727753,), (1390727755,), (1390727756,), (1390728492,), (1390728500,), (1390728572,), (1390728589,), (1390728610,), (1390728759,), (1390728826,), (1390728864,), (1390728916,), (1390729329,), (1390729333,), (1390729336,), (1390729340,), (1390729550,), (1390729623,), (1390730197,), (1390730235,), (1390730298,), (1390730344,), (1390730380,), (1390730597,), (1390730958,), (1390731096,), (1390731219,), (1390731233,), (1390731249,), (1390731253,), (1390731341,), (1390731382,), (1390731386,), (1390731390,), (1390731500,), (1390731528,), (1390731548,), (1390731550,), (1390731556,), (1390731558,), (1390731560,), (1390731496,), (1390731498,), (1390731569,), (1390731573,), (1390731575,), (1390731580,), (1390731591,), (1390731659,), (1390731691,), (1390731722,), (1390731756,), (1390731794,), (1390732102,), (1390732103,), (1390732105,), (1390732112,), (1390732383,), (1390732384,), (1390732401,), (1390732419,), (1390732664,), (1390732666,), (1390732668,), (1390732670,), (1390732683,), (1390732708,), (1390732717,), (1390732722,), (1390732727,), (1390732747,), (1390732847,), (1390732850,), (1390732854,), (1390732859,), (1390733107,), (1390733177,), (1390733318,), (1390733461,), (1390734108,), (1390734143,), (1390734149,), (1390734152,), (1390734155,), (1390734192,), (1390734194,), (1390734196,), (1390734201,), (1390734259,), (1390734260,), (1390734262,), (1390734263,), (1390734265,), (1390734266,), (1390734268,), (1390734269,), (1390734290,), (1390734291,), (1390734293,), (1390734299,), (1390734310,), (1390734311,), (1390734339,), (1390734341,), (1390734344,), (1390734348,), (1390734350,), (1390734353,), (1390734357,), (1390734360,), (1390734362,), (1390734462,), (1390734500,), (1390734565,), (1390734613,), (1390735156,), (1390735117,), (1390735700,), (1390735729,), (1390735856,), (1390735997,), (1390736770,), (1390736779,), (1390736864,), (1390737010,), (1390737062,), (1390737096,), (1390737981,), (1390738019,), (1390738054,), (1390738062,), (1390738066,), (1390738305,), (1390738306,), (1390738308,), (1390738309,), (1390738312,), (1390738313,), (1390738317,), (1390738318,), (1390739162,), (1390739202,), (1390739255,), (1390739297,), (1390739340,), (1390739503,), (1390739545,), (1390739603,), (1390740367,), (1390740412,), (1390740451,), (1390740485,), (1390740519,), (1390740948,), (1390740998,), (1390741140,), (1390741326,), (1390741542,), (1390742312,), (1390742313,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30102025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27983628]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] map_info['map_portfolio_photo'] : {27983628: [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948, 1390740519, 1390740485, 1390740451, 1390740412, 1390740367, 1390739603, 1390739545, 1390739503, 1390739340, 1390739297, 1390739255, 1390739202, 1390739162, 1390738318, 1390738317, 1390738313, 1390738312, 1390738309, 1390738308, 1390738306, 1390738305, 1390738066, 1390738062, 1390738054, 1390738019, 1390737981, 1390737096, 1390737062, 1390737010, 1390736864, 1390736779, 1390736770, 1390735997, 1390735856, 1390735729, 1390735700, 1390735117]} final : True mtd_id 4302 list_pids : [1390742313, 1390742312, 1390741542, 1390741326, 1390741140, 1390740998, 1390740948] Looping around the photos to save general results len do output : 1 /27983628Didn'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, '3969443') ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443') ('4302', None, None, None, None, None, None, None, '3969443') ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27983628', 'None', None, None, None, None, '3969443'), ('4302', '27983628', '1390742313', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390742312', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741542', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741326', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390741140', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740998', None, None, None, None, None, '3969443'), ('4302', '27983628', '1390740948', None, None, None, None, None, '3969443')] time used for this insertion : 0.010945320129394531 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3659117221832275 time spend to save output : 0.011192560195922852 total time spend for step 5 : 4.37710428237915 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 (3969443) 2.29user 1.91system 0:12.75elapsed 32%CPU (0avgtext+0avgdata 161320maxresident)k 200inputs+8768outputs (6major+77281minor)pagefaults 0swaps