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 : 333952 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 (4086360) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4086360) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754218 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4086360'] with mtr_portfolio_ids : ['28754218'] and first list_photo_ids : [] new path : /proc/333952/ Name: python3 Umask: 0002 State: R (running) Tgid: 333952 Ngid: 0 Pid: 333952 PPid: 333951 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 333952 NSpid: 333952 NSpgid: 332219 NSsid: 332219 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98336 kB VmRSS: 98336 kB RssAnon: 59904 kB RssFile: 38432 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '333952', 'Ngid': '0', 'Pid': '333952', 'PPid': '333951', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '333952', 'NSpid': '333952', 'NSpgid': '332219', 'NSsid': '332219', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98336 kB', 'VmRSS': '98336 kB', 'RssAnon': '59904 kB', 'RssFile': '38432 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '333952', '1106908', '0', '1106884', '865636', '98336', b'', 'marlene', '4086360') 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 (28754218) 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 (4086360 ) ) 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 (28754218) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395409520, 'portfolio_id': 28754218}, {'photo_id': 1395409517, 'portfolio_id': 28754218}, {'photo_id': 1395409477, 'portfolio_id': 28754218}, {'photo_id': 1395409461, 'portfolio_id': 28754218}, {'photo_id': 1395409455, 'portfolio_id': 28754218}, {'photo_id': 1395409427, 'portfolio_id': 28754218}, {'photo_id': 1395409396, 'portfolio_id': 28754218}, {'photo_id': 1395409392, 'portfolio_id': 28754218}, {'photo_id': 1395409323, 'portfolio_id': 28754218}, {'photo_id': 1395409320, 'portfolio_id': 28754218}, {'photo_id': 1395409316, 'portfolio_id': 28754218}, {'photo_id': 1395409299, 'portfolio_id': 28754218}, {'photo_id': 1395409259, 'portfolio_id': 28754218}, {'photo_id': 1395409225, 'portfolio_id': 28754218}, {'photo_id': 1395409088, 'portfolio_id': 28754218}, {'photo_id': 1395409084, 'portfolio_id': 28754218}, {'photo_id': 1395409081, 'portfolio_id': 28754218}, {'photo_id': 1395409078, 'portfolio_id': 28754218}, {'photo_id': 1395409076, 'portfolio_id': 28754218}, {'photo_id': 1395409038, 'portfolio_id': 28754218}, {'photo_id': 1395409037, 'portfolio_id': 28754218}, {'photo_id': 1395409033, 'portfolio_id': 28754218}, {'photo_id': 1395409029, 'portfolio_id': 28754218}, {'photo_id': 1395409026, 'portfolio_id': 28754218}, {'photo_id': 1395409025, 'portfolio_id': 28754218}, {'photo_id': 1395409004, 'portfolio_id': 28754218}, {'photo_id': 1395409000, 'portfolio_id': 28754218}, {'photo_id': 1395408997, 'portfolio_id': 28754218}, {'photo_id': 1395408995, 'portfolio_id': 28754218}, {'photo_id': 1395408994, 'portfolio_id': 28754218}, {'photo_id': 1395408993, 'portfolio_id': 28754218}, {'photo_id': 1395408905, 'portfolio_id': 28754218}, {'photo_id': 1395408903, 'portfolio_id': 28754218}, {'photo_id': 1395408900, 'portfolio_id': 28754218}] map_portfolio_id_photo_id: {28754218: [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225, 1395409088, 1395409084, 1395409081, 1395409078, 1395409076, 1395409038, 1395409037, 1395409033, 1395409029, 1395409026, 1395409025, 1395409004, 1395409000, 1395408997, 1395408995, 1395408994, 1395408993, 1395408905, 1395408903, 1395408900]} ##### 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.016083240509033203 #### 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 Nov 20 19:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28754218) 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 : 28754218 get user id for portfolio 28754218 get sub ptf for main ptf 28754218, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'Carton_brun', 'cartonnette', 'plastique', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'environnement', 'flou', 'mal_croppe', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28754218 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','Carton_brun','cartonnette','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','flou','mal_croppe','papier')) 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`=28754218 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','Carton_brun','cartonnette','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','flou','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 28754218, 'sub_port_id': 28754243, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507984, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'Carton_gris': {'main_port_id': 28754218, 'sub_port_id': 28754245, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507985, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'cartonnette': {'main_port_id': 28754218, 'sub_port_id': 28754246, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507986, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'kraft': {'main_port_id': 28754218, 'sub_port_id': 28754247, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507987, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'papier': {'main_port_id': 28754218, 'sub_port_id': 28754248, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507988, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'flou': {'main_port_id': 28754218, 'sub_port_id': 28754249, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507989, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'metal': {'main_port_id': 28754218, 'sub_port_id': 28754250, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507990, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'Carton_brun': {'main_port_id': 28754218, 'sub_port_id': 28754251, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507991, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 28754218, 'sub_port_id': 28754252, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507992, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'autre_refus': {'main_port_id': 28754218, 'sub_port_id': 28754253, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507993, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'environnement': {'main_port_id': 28754218, 'sub_port_id': 28754254, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507994, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}, 'plastique': {'main_port_id': 28754218, 'sub_port_id': 28754255, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507995, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28754243 , 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=28754218 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 (28754243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754245 , 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=28754218 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 (28754245) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754246 , 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=28754218 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 (28754246) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754247 , 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=28754218 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 (28754247) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754248 , 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=28754218 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 (28754248) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754249 , 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=28754218 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 (28754249) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754250 , 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=28754218 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 (28754250) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754251 , 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=28754218 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 (28754251) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754252 , 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=28754218 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 (28754252) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754253 , 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=28754218 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 (28754253) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754254 , 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=28754218 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 (28754254) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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 28754255 , 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=28754218 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 (28754255) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28754218) result : ((1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) 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 (1395408900,1395409000) 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`=28754218 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','Carton_brun','cartonnette','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','flou','mal_croppe','papier')) 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`=28754218 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','Carton_brun','cartonnette','plastique','kraft','metal','Teint_Dans_La_Masse','environnement','flou','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 28754218, 'sub_port_id': 28754256, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507996, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'Carton_gris': {'main_port_id': 28754218, 'sub_port_id': 28754257, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507997, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'cartonnette': {'main_port_id': 28754218, 'sub_port_id': 28754258, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507998, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'kraft': {'main_port_id': 28754218, 'sub_port_id': 28754259, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19507999, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'papier': {'main_port_id': 28754218, 'sub_port_id': 28754260, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508000, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'flou': {'main_port_id': 28754218, 'sub_port_id': 28754261, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508001, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'metal': {'main_port_id': 28754218, 'sub_port_id': 28754262, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508002, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'Carton_brun': {'main_port_id': 28754218, 'sub_port_id': 28754263, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508003, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28754218, 'sub_port_id': 28754264, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508004, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'autre_refus': {'main_port_id': 28754218, 'sub_port_id': 28754265, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508005, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'environnement': {'main_port_id': 28754218, 'sub_port_id': 28754266, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508006, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 3, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}, 'plastique': {'main_port_id': 28754218, 'sub_port_id': 28754267, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19508007, 'last_updated_at': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 19, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 19, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754248 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754261,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754249 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754262,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754250 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754263,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754251 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754252 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28754267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28754255 lien utilise dans velours : https://marlene.fotonower.com/velours/28754256,28754257,28754258,28754259,28754260,28754261,28754262,28754263,28754264,28754265,28754266,28754267?tags=mal_croppe,Carton_gris,cartonnette,kraft,papier,flou,metal,Carton_brun,Teint_Dans_La_Masse,autre_refus,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28754218]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] map_info['map_portfolio_photo'] : {28754218: [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225, 1395409088, 1395409084, 1395409081, 1395409078, 1395409076, 1395409038, 1395409037, 1395409033, 1395409029, 1395409026, 1395409025, 1395409004, 1395409000, 1395408997, 1395408995, 1395408994, 1395408993, 1395408905, 1395408903, 1395408900]} final : False mtd_id 4302 list_pids : [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] Looping around the photos to save general results len do output : 1 /28754218. 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, '4086360') ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28754218', "{'mal_croppe': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255}", None, None, None, None, '4086360'), ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360')] time used for this insertion : 0.014756441116333008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43032121658325195 time spend to save output : 0.015156030654907227 total time spend for step 1 : 0.4454772472381592 step2:final Thu Nov 20 19:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28754218) 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 28754218 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395408905,1395408903,1395408900,1395409520,1395409088,1395409004,1395409000,1395409517,1395409084,1395408997,1395409477,1395409081,1395408995,1395409323,1395409078,1395409320,1395408994,1395409076,1395408993,1395409038,1395409037,1395409033,1395409029,1395409026,1395409025,1395409316,1395409299,1395409259,1395409225,1395409461,1395409455,1395409427,1395409396,1395409392); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28754218]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} new output for save of step final : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] map_info['map_portfolio_photo'] : {28754218: [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225, 1395409088, 1395409084, 1395409081, 1395409078, 1395409076, 1395409038, 1395409037, 1395409033, 1395409029, 1395409026, 1395409025, 1395409004, 1395409000, 1395408997, 1395408995, 1395408994, 1395408993, 1395408905, 1395408903, 1395408900]} final : False mtd_id 4302 list_pids : [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] Looping around the photos to save general results len do output : 14 /1395409520.Didn't retrieve data . /1395409517.Didn't retrieve data . /1395409477.Didn't retrieve data . /1395409461.Didn't retrieve data . /1395409455.Didn't retrieve data . /1395409427.Didn't retrieve data . /1395409396.Didn't retrieve data . /1395409392.Didn't retrieve data . /1395409323.Didn't retrieve data . /1395409320.Didn't retrieve data . /1395409316.Didn't retrieve data . /1395409299.Didn't retrieve data . /1395409259.Didn't retrieve data . /1395409225.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, '4086360') ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28754218', '1395409520', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409517', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409477', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409461', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409455', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409427', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409396', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409392', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409323', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409320', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409316', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409299', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409259', '0.0', None, None, None, None, '4086360'), ('4302', '28754218', '1395409225', '0.0', None, None, None, None, '4086360')] time used for this insertion : 0.013723611831665039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0517888069152832 time spend to save output : 0.01439523696899414 total time spend for step 2 : 0.06618404388427734 step3:velours_tree Thu Nov 20 19:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28754218: [{'mal_croppe': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255}]} input_args_next_step : {28754218: ()} output_args : {28754218: [{'mal_croppe': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255}]} args : 28754218 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': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28754218) 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([28754218]) 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.294475793838501 time spend to save output : 4.00543212890625e-05 total time spend for step 3 : 0.29451584815979004 step4:send_mail_cod Thu Nov 20 19:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} input_args_next_step : {1395409520: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409520 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409517 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409477 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409461 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409455 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409427 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409396 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409392 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409323 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409320 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409316 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409299 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409259 depend.output_id : 0 input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ()} output_args : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',)} args : 1395409225 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 : {28754218: [{'mal_croppe': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255}]} input_args_next_step : {1395409520: ('0.0',), 1395409517: ('0.0',), 1395409477: ('0.0',), 1395409461: ('0.0',), 1395409455: ('0.0',), 1395409427: ('0.0',), 1395409396: ('0.0',), 1395409392: ('0.0',), 1395409323: ('0.0',), 1395409320: ('0.0',), 1395409316: ('0.0',), 1395409299: ('0.0',), 1395409259: ('0.0',), 1395409225: ('0.0',), 28754218: ()} output_args : {28754218: [{'mal_croppe': 28754243, 'Carton_gris': 28754245, 'cartonnette': 28754246, 'kraft': 28754247, 'papier': 28754248, 'flou': 28754249, 'metal': 28754250, 'Carton_brun': 28754251, 'Teint_Dans_La_Masse': 28754252, 'autre_refus': 28754253, 'environnement': 28754254, 'plastique': 28754255}]} args : 28754218 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28754218) 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 (1395409520,1395409517,1395409477,1395409461,1395409455,1395409427,1395409396,1395409392,1395409323,1395409320,1395409316,1395409299,1395409259,1395409225) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395409225 begin to download photo : 1395409316 begin to download photo : 1395409392 begin to download photo : 1395409455 begin to download photo : 1395409517 download finish for photo 1395409455 begin to download photo : 1395409461 download finish for photo 1395409225 begin to download photo : 1395409259 download finish for photo 1395409392 begin to download photo : 1395409396 download finish for photo 1395409316 begin to download photo : 1395409320 download finish for photo 1395409517 begin to download photo : 1395409520 download finish for photo 1395409461 begin to download photo : 1395409477 download finish for photo 1395409320 begin to download photo : 1395409323 download finish for photo 1395409259 begin to download photo : 1395409299 download finish for photo 1395409520 download finish for photo 1395409396 begin to download photo : 1395409427 download finish for photo 1395409477 download finish for photo 1395409323 download finish for photo 1395409427 download finish for photo 1395409299 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette287542431763662020/ imagette287542461763662020/ imagette287542471763662020/ imagette287542491763662020/ imagette287542501763662020/ imagette287542531763662020/ imagette287542551763662020/ imagette287542451763662020/ imagette287542511763662020/ imagette287542521763662020/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P28754218_20-11-2025_19_07_00.pdf 28754243 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=28754243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542431763662020 28754246 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=28754246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542461763662020 28754247 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=28754247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542471763662020 28754249 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=28754249 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542491763662020 28754250 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=28754250 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542501763662020 28754253 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=28754253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542531763662020 28754255 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=28754255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542551763662020 28754245 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=28754245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542451763662020 28754251 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=28754251 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542511763662020 28754252 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=28754252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287542521763662020 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28754218 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28754256,28754257,28754258,28754259,28754260,28754261,28754262,28754263,28754264,28754265,28754266,28754267?tags=mal_croppe,Carton_gris,cartonnette,kraft,papier,flou,metal,Carton_brun,Teint_Dans_La_Masse,autre_refus,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1395409520] : ('0.0',) no score found for photo 1395409520 We are sending mail with results at report@fotonower.com args[1395409517] : ('0.0',) no score found for photo 1395409517 We are sending mail with results at report@fotonower.com args[1395409477] : ('0.0',) no score found for photo 1395409477 We are sending mail with results at report@fotonower.com args[1395409461] : ('0.0',) no score found for photo 1395409461 We are sending mail with results at report@fotonower.com args[1395409455] : ('0.0',) no score found for photo 1395409455 We are sending mail with results at report@fotonower.com args[1395409427] : ('0.0',) no score found for photo 1395409427 We are sending mail with results at report@fotonower.com args[1395409396] : ('0.0',) no score found for photo 1395409396 We are sending mail with results at report@fotonower.com args[1395409392] : ('0.0',) no score found for photo 1395409392 We are sending mail with results at report@fotonower.com args[1395409323] : ('0.0',) no score found for photo 1395409323 We are sending mail with results at report@fotonower.com args[1395409320] : ('0.0',) no score found for photo 1395409320 We are sending mail with results at report@fotonower.com args[1395409316] : ('0.0',) no score found for photo 1395409316 We are sending mail with results at report@fotonower.com args[1395409299] : ('0.0',) no score found for photo 1395409299 We are sending mail with results at report@fotonower.com args[1395409259] : ('0.0',) no score found for photo 1395409259 We are sending mail with results at report@fotonower.com args[1395409225] : ('0.0',) no score found for photo 1395409225 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28754218 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_P28754218_20-11-2025_19_07_00.pdf results_Auto_P28754218_20-11-2025_19_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28754218_20-11-2025_19_07_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28754218','results_Auto_P28754218_20-11-2025_19_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28754218_20-11-2025_19_07_00.pdf','pdf','','0.13','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28754218]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] map_info['map_portfolio_photo'] : {28754218: [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225, 1395409088, 1395409084, 1395409081, 1395409078, 1395409076, 1395409038, 1395409037, 1395409033, 1395409029, 1395409026, 1395409025, 1395409004, 1395409000, 1395408997, 1395408995, 1395408994, 1395408993, 1395408905, 1395408903, 1395408900]} final : False mtd_id 4302 list_pids : [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] 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, '4086360') ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28754218', '1395409520', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360')] time used for this insertion : 0.015126466751098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6810169219970703 time spend to save output : 0.015392065048217773 total time spend for step 4 : 1.696408987045288 step5:split_time_score Thu Nov 20 19:07:01 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 : ['28754218'] 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 : [('28754218',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28754218) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395409517: {'path': 'temp/1763662020_333952_1395409517_05078d921e94429f912af40dd3cc73c2.jpg', 'extension': 'jpg'}, 1395409520: {'path': 'temp/1763662020_333952_1395409520_fe17edf8084d45bc4ab1a6bc7dbd994d.jpg', 'extension': 'jpg'}, 1395409455: {'path': 'temp/1763662020_333952_1395409455_686866a5f9b05582345c2bd5ff9913de.jpg', 'extension': 'jpg'}, 1395409461: {'path': 'temp/1763662020_333952_1395409461_bf3001bddd8787ea923350353d397c4a.jpg', 'extension': 'jpg'}, 1395409477: {'path': 'temp/1763662020_333952_1395409477_0e65cf8e60af05b461931165b23c7f66.jpg', 'extension': 'jpg'}, 1395409316: {'path': 'temp/1763662020_333952_1395409316_b6f309a71aa32e988a84b4b1f82ea667.jpg', 'extension': 'jpg'}, 1395409320: {'path': 'temp/1763662020_333952_1395409320_ab09cec6213c4962c8c2ed9627eb9e71.jpg', 'extension': 'jpg'}, 1395409323: {'path': 'temp/1763662020_333952_1395409323_17f1f0b03fb1de2922295550abe9adad.jpg', 'extension': 'jpg'}, 1395409392: {'path': 'temp/1763662020_333952_1395409392_41bdeb8021b3f8766a226b9ff3e476de.jpg', 'extension': 'jpg'}, 1395409396: {'path': 'temp/1763662020_333952_1395409396_881ad652049cb75593bbbbc1f75c889c.jpg', 'extension': 'jpg'}, 1395409427: {'path': 'temp/1763662020_333952_1395409427_c20fca068d038fca7f1ae691bc578344.jpg', 'extension': 'jpg'}, 1395409225: {'path': 'temp/1763662020_333952_1395409225_71f06869e1c84023fcc287c11b882fde.jpg', 'extension': 'jpg'}, 1395409259: {'path': 'temp/1763662020_333952_1395409259_6d0bda55547ba34ff86ccebacc615a3c.jpg', 'extension': 'jpg'}, 1395409299: {'path': 'temp/1763662020_333952_1395409299_f55c2a1780a8ea9273f891974fea4304.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 = 28754218; (('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 = 28754218 group by h (('19', 34),) 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=28754218 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 (28754218) 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 (28754218) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20112025 28754218 Nombre de photos uploadées : 34 / 23040 (0%) 20112025 28754218 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 20112025 28754218 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1395408905, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/6d314030b1136e129d8d5272bad59836.jpg', 'username': None, 'uploaded_at': 1763661667, 'text': 'image_20112025_19_00_14_10190.jpg'}, {'photo_id': 1395408903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5a3965e174ba36fa69d9189a5faa1eb9.jpg', 'username': None, 'uploaded_at': 1763661667, 'text': 'image_20112025_19_00_35_10135.jpg'}, {'photo_id': 1395408900, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7fdc696552f49a8495c90d91e52913be.jpg', 'username': None, 'uploaded_at': 1763661667, 'text': 'image_20112025_19_00_45_10135.jpg'}, {'photo_id': 1395409520, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/fe17edf8084d45bc4ab1a6bc7dbd994d.jpg', 'username': None, 'uploaded_at': 1763661962, 'text': 'image_20112025_19_00_55_10138.jpg'}] 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.0015952587127685547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28754218, '2025-11-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-20' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2614335,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2074730396270752 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= 2614335 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28729285, 'dashboard_result_id': 17555363, '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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28729878, 'dashboard_result_id': 17555364, '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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28730454, 'dashboard_result_id': 17555365, '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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28730956, 'dashboard_result_id': 17555366, '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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28732283, 'dashboard_result_id': 17555367, '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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28732606, 'dashboard_result_id': 17555368, '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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28732937, 'dashboard_result_id': 17555369, '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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28733416, 'dashboard_result_id': 17555370, '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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28733691, 'dashboard_result_id': 17555371, '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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28734257, 'dashboard_result_id': 17555372, '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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28734699, 'dashboard_result_id': 17555373, '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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28735407, 'dashboard_result_id': 17555374, '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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28735955, 'dashboard_result_id': 17555375, '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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28736530, 'dashboard_result_id': 17555376, '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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28736964, 'dashboard_result_id': 17555377, '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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740327, 'dashboard_result_id': 17555378, '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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740329, 'dashboard_result_id': 17555379, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740332, 'dashboard_result_id': 17555380, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740348, 'dashboard_result_id': 17555381, '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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740352, 'dashboard_result_id': 17555382, '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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740373, 'dashboard_result_id': 17555383, '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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28740377, 'dashboard_result_id': 17555384, '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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28743048, 'dashboard_result_id': 17555385, '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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28743363, 'dashboard_result_id': 17555386, '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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28743751, 'dashboard_result_id': 17555387, '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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28744153, 'dashboard_result_id': 17555388, '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_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28744884, 'dashboard_result_id': 17555389, '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_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28745500, 'dashboard_result_id': 17555390, '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_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28746095, 'dashboard_result_id': 17555391, '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_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28746646, 'dashboard_result_id': 17555392, '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_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28747374, 'dashboard_result_id': 17555393, '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_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28747973, 'dashboard_result_id': 17555394, '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_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28748629, 'dashboard_result_id': 17555395, '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_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28749232, 'dashboard_result_id': 17555396, '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_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28749853, 'dashboard_result_id': 17555397, '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_P28749853_20-11-2025_16_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28750399, 'dashboard_result_id': 17555398, '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_P28750399_20-11-2025_17_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750460, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28750906, 'dashboard_result_id': 17555399, '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_P28750906_20-11-2025_17_22_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750951, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28752739, 'dashboard_result_id': 17555400, '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_P28752739_20-11-2025_18_33_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28752765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28752766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28752767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28752768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28752769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28752770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28752771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28752772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28752773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28752774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28752775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28752776, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28753136, 'dashboard_result_id': 17555401, '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_P28753136_20-11-2025_18_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753167, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753173, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28753730, 'dashboard_result_id': 17555402, '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_P28753730_20-11-2025_19_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753764, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625910, 'mtr_portfolio_id': 28754218, 'dashboard_result_id': 17555403, '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_P28754218_20-11-2025_19_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28754243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28754245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28754246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28754247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28754249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28754250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28754251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28754252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28754253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28754254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28754255, '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 = 28729285 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': 4083488, 'mtr_portfolio_id': 28729285, 'created_at': datetime.datetime(2025, 11, 20, 6, 8, 58), 'result': '0.06316202260982903', 'result_long': None, 'result_double': None}] Qualite : 0.06316202260982903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729285 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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}" where mtr_portfolio_id = 28729285 and dashboard_run_id = 2625910 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`=28729285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555363, 0.06316202260982903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, '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 = 28729878 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': 4083489, 'mtr_portfolio_id': 28729878, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 33), 'result': '0.046446620973363016', 'result_long': None, 'result_double': None}] Qualite : 0.046446620973363016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729878 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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}" where mtr_portfolio_id = 28729878 and dashboard_run_id = 2625910 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`=28729878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555364, 0.046446620973363016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, '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 = 28730454 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': 4083490, 'mtr_portfolio_id': 28730454, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 29), 'result': '0.06219491235228678', 'result_long': None, 'result_double': None}] Qualite : 0.06219491235228678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730454 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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}" where mtr_portfolio_id = 28730454 and dashboard_run_id = 2625910 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`=28730454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555365, 0.06219491235228678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, '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 = 28730956 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': 4083491, 'mtr_portfolio_id': 28730956, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 59), 'result': '0.028716250443948738', 'result_long': None, 'result_double': None}] Qualite : 0.028716250443948738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730956 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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}" where mtr_portfolio_id = 28730956 and dashboard_run_id = 2625910 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`=28730956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555366, 0.028716250443948738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, '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 = 28732283 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': 4083492, 'mtr_portfolio_id': 28732283, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 29), 'result': '0.0637085330401548', 'result_long': None, 'result_double': None}] Qualite : 0.0637085330401548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732283 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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}" where mtr_portfolio_id = 28732283 and dashboard_run_id = 2625910 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`=28732283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555367, 0.0637085330401548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, '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 = 28732606 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': 4083493, 'mtr_portfolio_id': 28732606, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 58), 'result': '0.0530839223813962', 'result_long': None, 'result_double': None}] Qualite : 0.0530839223813962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732606 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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}" where mtr_portfolio_id = 28732606 and dashboard_run_id = 2625910 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`=28732606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555368, 0.0530839223813962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, '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 = 28732937 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': 4083494, 'mtr_portfolio_id': 28732937, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 7), 'result': '0.04830138493187099', 'result_long': None, 'result_double': None}] Qualite : 0.04830138493187099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732937 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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}" where mtr_portfolio_id = 28732937 and dashboard_run_id = 2625910 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`=28732937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555369, 0.04830138493187099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, '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 = 28733416 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': 4083495, 'mtr_portfolio_id': 28733416, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.044310430713162936', 'result_long': None, 'result_double': None}] Qualite : 0.044310430713162936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733416 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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}" where mtr_portfolio_id = 28733416 and dashboard_run_id = 2625910 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`=28733416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555370, 0.044310430713162936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, '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 = 28733691 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': 4083496, 'mtr_portfolio_id': 28733691, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.06394866085328949', 'result_long': None, 'result_double': None}] Qualite : 0.06394866085328949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733691 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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}" where mtr_portfolio_id = 28733691 and dashboard_run_id = 2625910 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`=28733691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555371, 0.06394866085328949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, '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 = 28734257 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': 4083497, 'mtr_portfolio_id': 28734257, 'created_at': datetime.datetime(2025, 11, 20, 6, 12), 'result': '0.06501693880847081', 'result_long': None, 'result_double': None}] Qualite : 0.06501693880847081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734257 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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}" where mtr_portfolio_id = 28734257 and dashboard_run_id = 2625910 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`=28734257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555372, 0.06501693880847081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, '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 = 28734699 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': 4083498, 'mtr_portfolio_id': 28734699, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 30), 'result': '0.034492618132727776', 'result_long': None, 'result_double': None}] Qualite : 0.034492618132727776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734699 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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}" where mtr_portfolio_id = 28734699 and dashboard_run_id = 2625910 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`=28734699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555373, 0.034492618132727776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, '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 = 28735407 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': 4083499, 'mtr_portfolio_id': 28735407, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 59), 'result': '0.051680025933597946', 'result_long': None, 'result_double': None}] Qualite : 0.051680025933597946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735407 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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}" where mtr_portfolio_id = 28735407 and dashboard_run_id = 2625910 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`=28735407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555374, 0.051680025933597946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, '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 = 28735955 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': 4083500, 'mtr_portfolio_id': 28735955, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 31), 'result': '0.0421090861949604', 'result_long': None, 'result_double': None}] Qualite : 0.0421090861949604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735955 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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}" where mtr_portfolio_id = 28735955 and dashboard_run_id = 2625910 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`=28735955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555375, 0.0421090861949604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, '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 = 28736530 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': 4083501, 'mtr_portfolio_id': 28736530, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 30), 'result': '0.021800452178801957', 'result_long': None, 'result_double': None}] Qualite : 0.021800452178801957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736530 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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}" where mtr_portfolio_id = 28736530 and dashboard_run_id = 2625910 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`=28736530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555376, 0.021800452178801957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, '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 = 28736964 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': 4083502, 'mtr_portfolio_id': 28736964, 'created_at': datetime.datetime(2025, 11, 20, 6, 14), 'result': '0.033335769011512154', 'result_long': None, 'result_double': None}] Qualite : 0.033335769011512154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736964 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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}" where mtr_portfolio_id = 28736964 and dashboard_run_id = 2625910 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`=28736964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555377, 0.033335769011512154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, '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 = 28740327 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28740327 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740327 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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}" where mtr_portfolio_id = 28740327 and dashboard_run_id = 2625910 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 = 28740329 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740329 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740329 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740329%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740329 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740329 and dashboard_run_id = 2625910 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 = 28740332 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740332 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740332 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740332%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740332 and dashboard_run_id = 2625910 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 = 28740348 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28740348 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740348 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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}" where mtr_portfolio_id = 28740348 and dashboard_run_id = 2625910 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 = 28740352 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28740352 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740352 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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}" where mtr_portfolio_id = 28740352 and dashboard_run_id = 2625910 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 = 28740373 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28740373 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740373 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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}" where mtr_portfolio_id = 28740373 and dashboard_run_id = 2625910 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 = 28740377 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28740377 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740377 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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}" where mtr_portfolio_id = 28740377 and dashboard_run_id = 2625910 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 = 28743048 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': 4084305, 'mtr_portfolio_id': 28743048, 'created_at': datetime.datetime(2025, 11, 20, 13, 50, 30), 'result': '0.1643000290292006', 'result_long': None, 'result_double': None}] Qualite : 0.1643000290292006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743048 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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}" where mtr_portfolio_id = 28743048 and dashboard_run_id = 2625910 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`=28743048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555385, 0.1643000290292006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, '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 = 28743363 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': 4084330, 'mtr_portfolio_id': 28743363, 'created_at': datetime.datetime(2025, 11, 20, 14, 6, 31), 'result': '0.04399569440713958', 'result_long': None, 'result_double': None}] Qualite : 0.04399569440713958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743363 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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}" where mtr_portfolio_id = 28743363 and dashboard_run_id = 2625910 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`=28743363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555386, 0.04399569440713958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, '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 = 28743751 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': 4084358, 'mtr_portfolio_id': 28743751, 'created_at': datetime.datetime(2025, 11, 20, 14, 16, 58), 'result': '0.037633621081997505', 'result_long': None, 'result_double': None}] Qualite : 0.037633621081997505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743751 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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}" where mtr_portfolio_id = 28743751 and dashboard_run_id = 2625910 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`=28743751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555387, 0.037633621081997505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, '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 = 28744153 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': 4084429, 'mtr_portfolio_id': 28744153, 'created_at': datetime.datetime(2025, 11, 20, 14, 32, 58), 'result': '0.025496383854784737', 'result_long': None, 'result_double': None}] Qualite : 0.025496383854784737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744153 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_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}" where mtr_portfolio_id = 28744153 and dashboard_run_id = 2625910 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`=28744153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555388, 0.025496383854784737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, '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 = 28744884 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': 4084528, 'mtr_portfolio_id': 28744884, 'created_at': datetime.datetime(2025, 11, 20, 14, 48, 57), 'result': '0.04578872373974785', 'result_long': None, 'result_double': None}] Qualite : 0.04578872373974785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744884 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_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}" where mtr_portfolio_id = 28744884 and dashboard_run_id = 2625910 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`=28744884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555389, 0.04578872373974785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, '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 = 28745500 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': 4084658, 'mtr_portfolio_id': 28745500, 'created_at': datetime.datetime(2025, 11, 20, 15, 4, 58), 'result': '0.04081979646550034', 'result_long': None, 'result_double': None}] Qualite : 0.04081979646550034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28745500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28745500 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_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}" where mtr_portfolio_id = 28745500 and dashboard_run_id = 2625910 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`=28745500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555390, 0.04081979646550034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, '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 = 28746095 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': 4084795, 'mtr_portfolio_id': 28746095, 'created_at': datetime.datetime(2025, 11, 20, 15, 18, 57), 'result': '0.03714125369854887', 'result_long': None, 'result_double': None}] Qualite : 0.03714125369854887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28746095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28746095 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_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, 'pht': 3726}}" where mtr_portfolio_id = 28746095 and dashboard_run_id = 2625910 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`=28746095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555391, 0.03714125369854887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, '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 = 28746646 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': 4084899, 'mtr_portfolio_id': 28746646, 'created_at': datetime.datetime(2025, 11, 20, 15, 34, 59), 'result': '0.01885337786494722', 'result_long': None, 'result_double': None}] Qualite : 0.01885337786494722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28746646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746646_20-11-2025_15_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28746646 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_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, 'pht': 3726}}" where mtr_portfolio_id = 28746646 and dashboard_run_id = 2625910 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`=28746646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555392, 0.01885337786494722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, '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 = 28747374 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': 4085077, 'mtr_portfolio_id': 28747374, 'created_at': datetime.datetime(2025, 11, 20, 15, 48, 57), 'result': '0.02025483686563072', 'result_long': None, 'result_double': None}] Qualite : 0.02025483686563072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28747374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747374_20-11-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28747374 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_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, 'pht': 3726}}" where mtr_portfolio_id = 28747374 and dashboard_run_id = 2625910 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`=28747374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555393, 0.02025483686563072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, '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 = 28747973 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': 4085251, 'mtr_portfolio_id': 28747973, 'created_at': datetime.datetime(2025, 11, 20, 16, 2, 58), 'result': '0.034715606381581346', 'result_long': None, 'result_double': None}] Qualite : 0.034715606381581346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28747973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747973_20-11-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28747973 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_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, 'pht': 3726}}" where mtr_portfolio_id = 28747973 and dashboard_run_id = 2625910 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`=28747973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555394, 0.034715606381581346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, '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 = 28748629 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': 4085440, 'mtr_portfolio_id': 28748629, 'created_at': datetime.datetime(2025, 11, 20, 16, 16, 29), 'result': '0.026347927494119606', 'result_long': None, 'result_double': None}] Qualite : 0.026347927494119606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28748629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28748629_20-11-2025_16_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28748629 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_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, 'pht': 3726}}" where mtr_portfolio_id = 28748629 and dashboard_run_id = 2625910 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`=28748629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555395, 0.026347927494119606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, '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 = 28749232 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': 4085591, 'mtr_portfolio_id': 28749232, 'created_at': datetime.datetime(2025, 11, 20, 16, 34, 59), 'result': '0.0421643320812765', 'result_long': None, 'result_double': None}] Qualite : 0.0421643320812765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28749232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749232_20-11-2025_16_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28749232 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_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, 'pht': 3726}}" where mtr_portfolio_id = 28749232 and dashboard_run_id = 2625910 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`=28749232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555396, 0.0421643320812765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, '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 = 28749853 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': 4085689, 'mtr_portfolio_id': 28749853, 'created_at': datetime.datetime(2025, 11, 20, 16, 48, 58), 'result': '0.04982116582964945', 'result_long': None, 'result_double': None}] Qualite : 0.04982116582964945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28749853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28749853 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_P28749853_20-11-2025_16_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, 'pht': 3726}}" where mtr_portfolio_id = 28749853 and dashboard_run_id = 2625910 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`=28749853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555397, 0.04982116582964945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, '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 = 28750399 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': 4085804, 'mtr_portfolio_id': 28750399, 'created_at': datetime.datetime(2025, 11, 20, 17, 6, 58), 'result': '0.03666554488511514', 'result_long': None, 'result_double': None}] Qualite : 0.03666554488511514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28750399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28750399_20-11-2025_17_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28750399 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_P28750399_20-11-2025_17_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750460, 'pht': 3726}}" where mtr_portfolio_id = 28750399 and dashboard_run_id = 2625910 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`=28750399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555398, 0.03666554488511514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28750399_20-11-2025_17_06_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750460, '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 = 28750906 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': 4085876, 'mtr_portfolio_id': 28750906, 'created_at': datetime.datetime(2025, 11, 20, 17, 22, 58), 'result': '0.0671658178463108', 'result_long': None, 'result_double': None}] Qualite : 0.0671658178463108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28750906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28750906_20-11-2025_17_22_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28750906 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_P28750906_20-11-2025_17_22_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750951, 'pht': 3726}}" where mtr_portfolio_id = 28750906 and dashboard_run_id = 2625910 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`=28750906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555399, 0.0671658178463108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28750906_20-11-2025_17_22_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28750940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28750941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28750942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28750943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28750944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28750945, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28750946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28750947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28750948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28750949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28750950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28750951, '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 = 28752739 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': 4086143, 'mtr_portfolio_id': 28752739, 'created_at': datetime.datetime(2025, 11, 20, 18, 33, 32), 'result': '0.05693445504410947', 'result_long': None, 'result_double': None}] Qualite : 0.05693445504410947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28752739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28752739_20-11-2025_18_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28752739 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_P28752739_20-11-2025_18_33_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28752765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28752766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28752767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28752768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28752769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28752770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28752771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28752772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28752773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28752774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28752775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28752776, 'pht': 3726}}" where mtr_portfolio_id = 28752739 and dashboard_run_id = 2625910 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`=28752739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555400, 0.05693445504410947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28752739_20-11-2025_18_33_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28752765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28752766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28752767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28752768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28752769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28752770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28752771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28752772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28752773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28752774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28752775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28752776, '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 = 28753136 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': 4086196, 'mtr_portfolio_id': 28753136, 'created_at': datetime.datetime(2025, 11, 20, 18, 46, 57), 'result': '0.043772902264095366', 'result_long': None, 'result_double': None}] Qualite : 0.043772902264095366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28753136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28753136_20-11-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28753136 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_P28753136_20-11-2025_18_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753167, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753173, 'pht': 3726}}" where mtr_portfolio_id = 28753136 and dashboard_run_id = 2625910 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`=28753136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555401, 0.043772902264095366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28753136_20-11-2025_18_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753167, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753173, '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 = 28753730 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': 4086282, 'mtr_portfolio_id': 28753730, 'created_at': datetime.datetime(2025, 11, 20, 19, 2, 56), 'result': '0.0302862713159933', 'result_long': None, 'result_double': None}] Qualite : 0.0302862713159933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28753730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28753730_20-11-2025_19_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28753730 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_P28753730_20-11-2025_19_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753764, 'pht': 3726}}" where mtr_portfolio_id = 28753730 and dashboard_run_id = 2625910 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`=28753730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17555402, 0.0302862713159933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28753730_20-11-2025_19_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28753753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28753754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28753755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28753756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28753757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28753758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28753759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28753760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28753761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28753762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28753763, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28753764, '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 = 28754218 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28754218 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28754218 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28754218 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28754218 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28754218 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28754218_20-11-2025_19_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28754218 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_P28754218_20-11-2025_19_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28754243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28754245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28754246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28754247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28754249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28754250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28754251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28754252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28754253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28754254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28754255, 'pht': 3726}}" where mtr_portfolio_id = 28754218 and dashboard_run_id = 2625910 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28729285,28729878,28730454,28730956,28732283,28732606,28732937,28733416,28733691,28734257,28734699,28735407,28735955,28736530,28736964,28740327,28740329,28740332,28740348,28740352,28740373,28740377,28743048,28743363,28743751,28744153,28744884,28745500,28746095,28746646,28747374,28747973,28748629,28749232,28749853,28750399,28750906,28752739,28753136,28753730,28754218) result : ((1395288892,), (1395288983,), (1395289751,), (1395289782,), (1395290131,), (1395290203,), (1395290270,), (1395290334,), (1395290691,), (1395290703,), (1395290705,), (1395290709,), (1395290712,), (1395290716,), (1395290731,), (1395290732,), (1395290760,), (1395290762,), (1395290765,), (1395290769,), (1395290772,), (1395290774,), (1395290819,), (1395290854,), (1395290898,), (1395291313,), (1395291346,), (1395291664,), (1395291671,), (1395291777,), (1395291779,), (1395291781,), (1395291784,), (1395292498,), (1395292500,), (1395292501,), (1395292777,), (1395292780,), (1395292782,), (1395292797,), (1395292799,), (1395292800,), (1395292803,), (1395292806,), (1395292825,), (1395292826,), (1395292827,), (1395292830,), (1395292851,), (1395292853,), (1395292856,), (1395292860,), (1395293706,), (1395293718,), (1395293722,), (1395293857,), (1395293891,), (1395293645,), (1395293696,), (1395293699,), (1395294062,), (1395294092,), (1395294124,), (1395294155,), (1395294572,), (1395294705,), (1395294861,), (1395295001,), (1395295144,), (1395295572,), (1395295574,), (1395295575,), (1395295601,), (1395295636,), (1395296088,), (1395296144,), (1395296177,), (1395296210,), (1395296252,), (1395296660,), (1395296674,), (1395296855,), (1395296889,), (1395296901,), (1395296904,), (1395296937,), (1395296952,), (1395296970,), (1395297005,), (1395297042,), (1395297080,), (1395297120,), (1395297485,), (1395297520,), (1395297560,), (1395297595,), (1395297961,), (1395297996,), (1395298047,), (1395298081,), (1395298622,), (1395298685,), (1395298748,), (1395298814,), (1395298881,), (1395298946,), (1395299017,), (1395299127,), (1395299135,), (1395299153,), (1395299186,), (1395300313,), (1395300346,), (1395300358,), (1395300366,), (1395300674,), (1395300709,), (1395300790,), (1395300875,), (1395300967,), (1395301065,), (1395301540,), (1395301574,), (1395301767,), (1395301798,), (1395301931,), (1395301632,), (1395301665,), (1395301699,), (1395301733,), (1395302054,), (1395302086,), (1395302117,), (1395302149,), (1395302184,), (1395302356,), (1395302359,), (1395302363,), (1395302377,), (1395302642,), (1395302701,), (1395303197,), (1395303228,), (1395303262,), (1395303296,), (1395303328,), (1395303535,), (1395303566,), (1395303599,), (1395303615,), (1395303624,), (1395303639,), (1395303683,), (1395303685,), (1395303690,), (1395303691,), (1395303692,), (1395304106,), (1395304141,), (1395304175,), (1395304216,), (1395304251,), (1395304286,), (1395304326,), (1395304358,), (1395304388,), (1395304428,), (1395304467,), (1395304601,), (1395304603,), (1395304622,), (1395304638,), (1395304659,), (1395304881,), (1395304909,), (1395304939,), (1395304970,), (1395304999,), (1395305150,), (1395305181,), (1395305213,), (1395305244,), (1395305278,), (1395305522,), (1395305523,), (1395305524,), (1395305976,), (1395306070,), (1395306183,), (1395306309,), (1395306876,), (1395306877,), (1395306879,), (1395306883,), (1395306886,), (1395306941,), (1395307170,), (1395307364,), (1395307277,), (1395307342,), (1395307356,), (1395307360,), (1395307374,), (1395307375,), (1395307376,), (1395307395,), (1395307396,), (1395307397,), (1395307725,), (1395307815,), (1395307922,), (1395308259,), (1395308286,), (1395308287,), (1395308288,), (1395308378,), (1395308412,), (1395308446,), (1395308770,), (1395308782,), (1395308811,), (1395308842,), (1395308943,), (1395308944,), (1395308945,), (1395308947,), (1395308966,), (1395308967,), (1395308983,), (1395308985,), (1395308987,), (1395308999,), (1395309002,), (1395309004,), (1395309008,), (1395309011,), (1395309014,), (1395309021,), (1395309023,), (1395309025,), (1395309026,), (1395309027,), (1395309028,), (1395309031,), (1395309045,), (1395309046,), (1395309047,), (1395309074,), (1395309078,), (1395309371,), (1395313362,), (1395313364,), (1395313365,), (1395313384,), (1395313386,), (1395313388,), (1395313391,), (1395313443,), (1395313446,), (1395313448,), (1395313450,), (1395313452,), (1395313475,), (1395313476,), (1395313478,), (1395313482,), (1395313486,), (1395313490,), (1395313497,), (1395313500,), (1395313503,), (1395313505,), (1395313607,), (1395313610,), (1395313611,), (1395313612,), (1395313631,), (1395313633,), (1395313635,), (1395313638,), (1395313642,), (1395313669,), (1395313671,), (1395313673,), (1395313675,), (1395313697,), (1395313699,), (1395313734,), (1395313739,), (1395313742,), (1395313756,), (1395313777,), (1395313779,), (1395313781,), (1395313783,), (1395313804,), (1395313805,), (1395313806,), (1395313809,), (1395313811,), (1395313828,), (1395313830,), (1395313832,), (1395313871,), (1395313901,), (1395313932,), (1395313961,), (1395313856,), (1395313857,), (1395313860,), (1395313865,), (1395313869,), (1395314100,), (1395314130,), (1395314162,), (1395314196,), (1395314230,), (1395314550,), (1395314582,), (1395314611,), (1395314641,), (1395314774,), (1395314806,), (1395314837,), (1395314865,), (1395314873,), (1395314998,), (1395314999,), (1395315000,), (1395315003,), (1395315008,), (1395315010,), (1395315020,), (1395315023,), (1395315043,), (1395315045,), (1395315047,), (1395315051,), (1395315076,), (1395315077,), (1395315078,), (1395315080,), (1395315084,), (1395315103,), (1395315104,), (1395315106,), (1395315108,), (1395315112,), (1395315132,), (1395315133,), (1395315135,), (1395315139,), (1395315142,), (1395315170,), (1395315172,), (1395315176,), (1395315180,), (1395315183,), (1395315185,), (1395315191,), (1395315195,), (1395315196,), (1395315199,), (1395315203,), (1395315218,), (1395315219,), (1395315220,), (1395315222,), (1395315224,), (1395315228,), (1395315239,), (1395315243,), (1395315248,), (1395315251,), (1395315258,), (1395315269,), (1395315271,), (1395315274,), (1395315278,), (1395315309,), (1395315310,), (1395315311,), (1395315340,), (1395315342,), (1395315300,), (1395315304,), (1395315307,), (1395315312,), (1395315314,), (1395315319,), (1395315323,), (1395315327,), (1395315330,), (1395315351,), (1395315353,), (1395315356,), (1395315377,), (1395315380,), (1395315383,), (1395315386,), (1395315389,), (1395315403,), (1395315404,), (1395315405,), (1395315407,), (1395315408,), (1395315412,), (1395315435,), (1395315436,), (1395315439,), (1395315443,), (1395315447,), (1395315450,), (1395315474,), (1395315476,), (1395315478,), (1395315479,), (1395315480,), (1395315481,), (1395315483,), (1395315487,), (1395315508,), (1395315510,), (1395315512,), (1395315533,), (1395315534,), (1395315535,), (1395315538,), (1395315567,), (1395315569,), (1395315572,), (1395315576,), (1395315587,), (1395315612,), (1395315614,), (1395315615,), (1395315618,), (1395315620,), (1395315641,), (1395315644,), (1395315646,), (1395315649,), (1395315654,), (1395315659,), (1395315669,), (1395315670,), (1395315671,), (1395315695,), (1395315697,), (1395315699,), (1395315702,), (1395315706,), (1395315710,), (1395315740,), (1395315742,), (1395315746,), (1395315752,), (1395315757,), (1395315789,), (1395315792,), (1395315859,), (1395315899,), (1395315935,), (1395315965,), (1395315993,), (1395316192,), (1395316197,), (1395315775,), (1395315777,), (1395315781,), (1395315785,), (1395315802,), (1395315806,), (1395315809,), (1395315811,), (1395315813,), (1395315815,), (1395315829,), (1395316121,), (1395316123,), (1395316155,), (1395316158,), (1395316180,), (1395316181,), (1395316184,), (1395316185,), (1395316188,), (1395316189,), (1395316269,), (1395316298,), (1395316300,), (1395316323,), (1395316326,), (1395316331,), (1395316355,), (1395316356,), (1395316357,), (1395316360,), (1395316365,), (1395316368,), (1395316388,), (1395316396,), (1395316399,), (1395316402,), (1395316422,), (1395316423,), (1395316424,), (1395316450,), (1395316457,), (1395316459,), (1395316463,), (1395316467,), (1395316482,), (1395316483,), (1395316484,), (1395316487,), (1395316516,), (1395316518,), (1395316520,), (1395316524,), (1395316528,), (1395316548,), (1395316550,), (1395316553,), (1395316557,), (1395316561,), (1395316563,), (1395316569,), (1395316571,), (1395316573,), (1395316575,), (1395316576,), (1395316579,), (1395316582,), (1395316587,), (1395316597,), (1395316644,), (1395316646,), (1395316702,), (1395316703,), (1395316704,), (1395316705,), (1395316707,), (1395316735,), (1395316738,), (1395316741,), (1395316744,), (1395316746,), (1395316749,), (1395316775,), (1395316780,), (1395316786,), (1395316796,), (1395316811,), (1395316814,), (1395316815,), (1395316772,), (1395316773,), (1395316817,), (1395316819,), (1395316854,), (1395316859,), (1395316861,), (1395316863,), (1395316880,), (1395316882,), (1395316884,), (1395316904,), (1395316905,), (1395316906,), (1395316911,), (1395316933,), (1395316934,), (1395316936,), (1395316940,), (1395316944,), (1395316952,), (1395316971,), (1395316972,), (1395316973,), (1395316976,), (1395316978,), (1395317001,), (1395317003,), (1395317005,), (1395317008,), (1395317027,), (1395317029,), (1395317033,), (1395317051,), (1395317052,), (1395317053,), (1395317079,), (1395317080,), (1395317081,), (1395317084,), (1395317100,), (1395317102,), (1395317104,), (1395317136,), (1395317137,), (1395317138,), (1395317140,), (1395317174,), (1395317175,), (1395317177,), (1395317198,), (1395317199,), (1395317201,), (1395317237,), (1395317241,), (1395317242,), (1395317252,), (1395317229,), (1395317230,), (1395317233,), (1395317258,), (1395317260,), (1395317262,), (1395317265,), (1395317286,), (1395317288,), (1395317291,), (1395317310,), (1395317311,), (1395317312,), (1395317314,), (1395317318,), (1395317320,), (1395317462,), (1395317492,), (1395317523,), (1395317554,), (1395317587,), (1395317872,), (1395317874,), (1395317891,), (1395317892,), (1395317893,), (1395317895,), (1395317908,), (1395317910,), (1395317912,), (1395317915,), (1395317919,), (1395317934,), (1395317935,), (1395317936,), (1395317939,), (1395317943,), (1395317945,), (1395318376,), (1395318442,), (1395318503,), (1395318552,), (1395318746,), (1395318750,), (1395318754,), (1395318781,), (1395318812,), (1395318820,), (1395318869,), (1395318883,), (1395318884,), (1395318887,), (1395318889,), (1395318892,), (1395318911,), (1395318950,), (1395319131,), (1395319162,), (1395319168,), (1395319185,), (1395319253,), (1395319255,), (1395319258,), (1395319271,), (1395319275,), (1395319277,), (1395319279,), (1395319307,), (1395319296,), (1395319298,), (1395319299,), (1395319303,), (1395319325,), (1395319327,), (1395319329,), (1395319535,), (1395319566,), (1395319597,), (1395319628,), (1395319659,), (1395319694,), (1395320287,), (1395320345,), (1395320998,), (1395321030,), (1395321431,), (1395321487,), (1395321522,), (1395321555,), (1395321589,), (1395321632,), (1395321883,), (1395321884,), (1395321886,), (1395321889,), (1395322163,), (1395322164,), (1395322165,), (1395322172,), (1395322185,), (1395322205,), (1395322207,), (1395322209,), (1395322245,), (1395322250,), (1395322253,), (1395322256,), (1395322259,), (1395322283,), (1395322286,), (1395322291,), (1395322296,), (1395322301,), (1395322304,), (1395322316,), (1395322318,), (1395322320,), (1395322324,), (1395322329,), (1395322363,), (1395322364,), (1395322365,), (1395322368,), (1395322373,), (1395322391,), (1395322393,), (1395322395,), (1395322399,), (1395322425,), (1395322427,), (1395322430,), (1395322433,), (1395322436,), (1395322440,), (1395322476,), (1395322559,), (1395322592,), (1395322622,), (1395322653,), (1395322684,), (1395322715,), (1395322462,), (1395322463,), (1395322465,), (1395322468,), (1395322472,), (1395322840,), (1395322876,), (1395322910,), (1395322948,), (1395322979,), (1395323213,), (1395323241,), (1395323439,), (1395323470,), (1395323500,), (1395323533,), (1395323655,), (1395323656,), (1395323657,), (1395323660,), (1395323705,), (1395324071,), (1395324101,), (1395324131,), (1395324163,), (1395324610,), (1395324640,), (1395324673,), (1395324705,), (1395324714,), (1395324716,), (1395324735,), (1395324736,), (1395324737,), (1395324749,), (1395324782,), (1395324817,), (1395324850,), (1395325079,), (1395325087,), (1395325089,), (1395325096,), (1395325101,), (1395325104,), (1395325128,), (1395325130,), (1395325132,), (1395325135,), (1395325138,), (1395325165,), (1395325166,), (1395325168,), (1395325172,), (1395325176,), (1395325179,), (1395325185,), (1395325186,), (1395325192,), (1395325195,), (1395325200,), (1395325205,), (1395325210,), (1395325235,), (1395325238,), (1395325240,), (1395325244,), (1395325247,), (1395325276,), (1395325278,), (1395325280,), (1395325284,), (1395325310,), (1395325314,), (1395325318,), (1395325321,), (1395325323,), (1395325326,), (1395325367,), (1395325372,), (1395325375,), (1395325383,), (1395325384,), (1395325385,), (1395325389,), (1395325357,), (1395325359,), (1395325363,), (1395325405,), (1395325410,), (1395325413,), (1395325507,), (1395325537,), (1395325570,), (1395325602,), (1395325839,), (1395325847,), (1395325877,), (1395325911,), (1395325947,), (1395326065,), (1395326067,), (1395326070,), (1395326073,), (1395326077,), (1395326090,), (1395326091,), (1395326093,), (1395326101,), (1395326105,), (1395326109,), (1395326117,), (1395326118,), (1395326119,), (1395326126,), (1395326130,), (1395326140,), (1395326143,), (1395326146,), (1395326185,), (1395326208,), (1395326217,), (1395326222,), (1395326227,), (1395326244,), (1395326245,), (1395326246,), (1395326263,), (1395326265,), (1395326267,), (1395326271,), (1395326282,), (1395326306,), (1395326307,), (1395326308,), (1395326314,), (1395326317,), (1395326340,), (1395326417,), (1395326418,), (1395326462,), (1395326470,), (1395326471,), (1395326450,), (1395326451,), (1395326453,), (1395326457,), (1395326460,), (1395326473,), (1395326474,), (1395326475,), (1395326547,), (1395326548,), (1395326549,), (1395326551,), (1395326555,), (1395326586,), (1395326587,), (1395326588,), (1395326590,), (1395326594,), (1395326596,), (1395326611,), (1395326613,), (1395326615,), (1395326619,), (1395326624,), (1395326628,), (1395326635,), (1395326637,), (1395326639,), (1395326642,), (1395326675,), (1395326677,), (1395326679,), (1395326682,), (1395326686,), (1395326690,), (1395326709,), (1395326711,), (1395326715,), (1395326720,), (1395326726,), (1395326745,), (1395326747,), (1395326749,), (1395326753,), (1395326756,), (1395326760,), (1395326779,), (1395326784,), (1395326785,), (1395326787,), (1395326791,), (1395326816,), (1395326818,), (1395326821,), (1395326831,), (1395326837,), (1395326841,), (1395326847,), (1395326848,), (1395326849,), (1395326855,), (1395326861,), (1395326865,), (1395326878,), (1395326879,), (1395326880,), (1395326882,), (1395326887,), (1395326926,), (1395326930,), (1395326935,), (1395326973,), (1395326978,), (1395326982,), (1395326987,), (1395326967,), (1395326970,), (1395327010,), (1395327013,), (1395327016,), (1395327020,), (1395327047,), (1395327048,), (1395327049,), (1395327052,), (1395327055,), (1395327089,), (1395327091,), (1395327093,), (1395327096,), (1395327101,), (1395327105,), (1395327123,), (1395327124,), (1395327125,), (1395327128,), (1395327154,), (1395327156,), (1395327159,), (1395327163,), (1395327167,), (1395327170,), (1395327178,), (1395327181,), (1395327191,), (1395327192,), (1395327193,), (1395327195,), (1395327199,), (1395327230,), (1395327232,), (1395327235,), (1395327282,), (1395327283,), (1395327284,), (1395327285,), (1395327310,), (1395327312,), (1395327314,), (1395327317,), (1395327320,), (1395327322,), (1395327348,), (1395327349,), (1395327350,), (1395327353,), (1395327355,), (1395327359,), (1395327378,), (1395336768,), (1395346827,), (1395346917,), (1395346940,), (1395346941,), (1395346944,), (1395346945,), (1395346969,), (1395346976,), (1395346991,), (1395346994,), (1395346996,), (1395346998,), (1395347000,), (1395347002,), (1395347025,), (1395347028,), (1395347030,), (1395347032,), (1395347035,), (1395347037,), (1395347232,), (1395347266,), (1395347321,), (1395347382,), (1395347455,), (1395347467,), (1395347492,), (1395347498,), (1395347504,), (1395347508,), (1395347512,), (1395347517,), (1395347524,), (1395347529,), (1395347533,), (1395347536,), (1395347540,), (1395347543,), (1395347555,), (1395347556,), (1395347558,), (1395347559,), (1395347561,), (1395347562,), (1395347569,), (1395347572,), (1395347583,), (1395347585,), (1395347588,), (1395347591,), (1395346189,), (1395346190,), (1395346191,), (1395346192,), (1395346193,), (1395346194,), (1395346211,), (1395346215,), (1395346219,), (1395346221,), (1395346223,), (1395346226,), (1395346238,), (1395346242,), (1395346246,), (1395346251,), (1395346256,), (1395346260,), (1395346265,), (1395346268,), (1395346270,), (1395346273,), (1395346276,), (1395346281,), (1395346297,), (1395346305,), (1395346309,), (1395346312,), (1395346314,), (1395346316,), (1395346335,), (1395346336,), (1395346340,), (1395346341,), (1395346346,), (1395346347,), (1395346351,), (1395346352,), (1395346355,), (1395346356,), (1395346359,), (1395346360,), (1395346369,), (1395346372,), (1395346375,), (1395346378,), (1395346381,), (1395346385,), (1395346391,), (1395346396,), (1395346401,), (1395346405,), (1395346410,), (1395346416,), (1395346442,), (1395346445,), (1395346449,), (1395346474,), (1395346484,), (1395346496,), (1395346548,), (1395346552,), (1395346558,), (1395346562,), (1395346568,), (1395346573,), (1395346581,), (1395346585,), (1395346588,), (1395346591,), (1395346594,), (1395346602,), (1395346631,), (1395346633,), (1395346637,), (1395346643,), (1395346648,), (1395346654,), (1395346712,), (1395346743,), (1395346761,), (1395346778,), (1395346786,), (1395346796,), (1395346812,), (1395346815,), (1395346818,), (1395346820,), (1395346823,), (1395346876,), (1395346890,), (1395346892,), (1395346905,), (1395346912,), (1395345472,), (1395345473,), (1395345474,), (1395345475,), (1395345476,), (1395345478,), (1395345507,), (1395345508,), (1395345509,), (1395345510,), (1395345513,), (1395345516,), (1395345536,), (1395345542,), (1395345545,), (1395345548,), (1395345550,), (1395345552,), (1395345566,), (1395345571,), (1395345575,), (1395345578,), (1395345582,), (1395345587,), (1395345605,), (1395345609,), (1395345613,), (1395345618,), (1395345621,), (1395345623,), (1395345631,), (1395345634,), (1395345637,), (1395345641,), (1395345645,), (1395345681,), (1395345713,), (1395345724,), (1395345733,), (1395345739,), (1395345743,), (1395345747,), (1395345758,), (1395345760,), (1395345762,), (1395345765,), (1395345776,), (1395345790,), (1395345945,), (1395345959,), (1395345969,), (1395345980,), (1395345991,), (1395346004,), (1395346043,), (1395346044,), (1395346045,), (1395346046,), (1395346047,), (1395346049,), (1395346064,), (1395346069,), (1395346072,), (1395346077,), (1395346079,), (1395346080,), (1395346125,), (1395346129,), (1395346135,), (1395346142,), (1395346149,), (1395346152,), (1395346153,), (1395346154,), (1395346156,), (1395346157,), (1395346159,), (1395346160,), (1395346162,), (1395346163,), (1395346165,), (1395346166,), (1395346168,), (1395346169,), (1395342157,), (1395342161,), (1395342165,), (1395342311,), (1395342313,), (1395342356,), (1395342364,), (1395342392,), (1395342399,), (1395342433,), (1395342439,), (1395342484,), (1395342485,), (1395342525,), (1395342527,), (1395342713,), (1395342746,), (1395342782,), (1395342823,), (1395342858,), (1395342893,), (1395343025,), (1395343060,), (1395343093,), (1395343126,), (1395343163,), (1395343200,), (1395343329,), (1395343365,), (1395343387,), (1395343390,), (1395343393,), (1395343396,), (1395343409,), (1395343416,), (1395343453,), (1395343490,), (1395343522,), (1395343557,), (1395343812,), (1395343813,), (1395343875,), (1395343878,), (1395343943,), (1395343947,), (1395344010,), (1395344019,), (1395344071,), (1395344077,), (1395344108,), (1395344115,), (1395344312,), (1395344376,), (1395344443,), (1395344488,), (1395344527,), (1395344857,), (1395344872,), (1395344877,), (1395345103,), (1395345111,), (1395345176,), (1395345182,), (1395345186,), (1395345192,), (1395345196,), (1395345200,), (1395345201,), (1395345205,), (1395345210,), (1395345214,), (1395345218,), (1395345228,), (1395345230,), (1395345234,), (1395345241,), (1395345247,), (1395345252,), (1395345262,), (1395345263,), (1395345264,), (1395345267,), (1395345268,), (1395345271,), (1395345287,), (1395345290,), (1395345293,), (1395345296,), (1395345299,), (1395345311,), (1395345421,), (1395345430,), (1395345438,), (1395345452,), (1395345455,), (1395345458,), (1395341259,), (1395341265,), (1395341270,), (1395341274,), (1395341279,), (1395341316,), (1395341319,), (1395341322,), (1395341325,), (1395341328,), (1395341329,), (1395341362,), (1395341363,), (1395341367,), (1395341369,), (1395341372,), (1395341373,), (1395341378,), (1395341380,), (1395341383,), (1395341385,), (1395341387,), (1395341389,), (1395341401,), (1395341404,), (1395341408,), (1395341412,), (1395341417,), (1395341422,), (1395341429,), (1395341431,), (1395341435,), (1395341439,), (1395341443,), (1395341462,), (1395341475,), (1395341500,), (1395341541,), (1395341579,), (1395341591,), (1395341641,), (1395341644,), (1395341647,), (1395341675,), (1395341690,), (1395341692,), (1395341705,), (1395341725,), (1395341734,), (1395341742,), (1395341745,), (1395341749,), (1395341758,), (1395341763,), (1395341766,), (1395341769,), (1395341772,), (1395341774,), (1395341821,), (1395341854,), (1395341885,), (1395341903,), (1395341911,), (1395341921,), (1395341991,), (1395342023,), (1395342038,), (1395342050,), (1395342055,), (1395342065,), (1395342078,), (1395342083,), (1395342088,), (1395342090,), (1395342094,), (1395342098,), (1395342121,), (1395342124,), (1395342128,), (1395342132,), (1395342136,), (1395342139,), (1395342146,), (1395342148,), (1395342153,), (1395340736,), (1395340742,), (1395340744,), (1395340749,), (1395340790,), (1395340793,), (1395340797,), (1395340800,), (1395340803,), (1395340818,), (1395340822,), (1395340825,), (1395340838,), (1395340839,), (1395340844,), (1395340852,), (1395340855,), (1395340859,), (1395340864,), (1395340868,), (1395340873,), (1395340896,), (1395340898,), (1395340900,), (1395340903,), (1395340910,), (1395340944,), (1395340975,), (1395340979,), (1395340983,), (1395340985,), (1395340989,), (1395341002,), (1395341013,), (1395341017,), (1395341021,), (1395341025,), (1395341028,), (1395341038,), (1395341052,), (1395341055,), (1395341059,), (1395341063,), (1395341069,), (1395341072,), (1395341092,), (1395341093,), (1395341094,), (1395341096,), (1395341097,), (1395341098,), (1395341102,), (1395341103,), (1395341107,), (1395341108,), (1395341112,), (1395341114,), (1395341126,), (1395341128,), (1395341130,), (1395341133,), (1395341150,), (1395341153,), (1395341162,), (1395341192,), (1395341229,), (1395341244,), (1395341247,), (1395341250,), (1395341257,), (1395340322,), (1395340323,), (1395340327,), (1395340329,), (1395340334,), (1395340335,), (1395340340,), (1395340341,), (1395340358,), (1395340365,), (1395340372,), (1395340379,), (1395340386,), (1395340387,), (1395340388,), (1395340389,), (1395340392,), (1395340399,), (1395340428,), (1395340432,), (1395340436,), (1395340438,), (1395340440,), (1395340443,), (1395340457,), (1395340460,), (1395340464,), (1395340466,), (1395340468,), (1395340470,), (1395340481,), (1395340485,), (1395340488,), (1395340492,), (1395340495,), (1395340496,), (1395340506,), (1395340511,), (1395340514,), (1395340519,), (1395340524,), (1395340528,), (1395340533,), (1395340537,), (1395340540,), (1395340543,), (1395340547,), (1395340551,), (1395340563,), (1395340566,), (1395340571,), (1395340574,), (1395340578,), (1395340580,), (1395340589,), (1395340590,), (1395340592,), (1395340593,), (1395340595,), (1395340597,), (1395340601,), (1395340602,), (1395340608,), (1395340611,), (1395340620,), (1395340626,), (1395340637,), (1395340639,), (1395340641,), (1395340643,), (1395340645,), (1395340649,), (1395340659,), (1395340664,), (1395340666,), (1395340669,), (1395340671,), (1395340674,), (1395340687,), (1395340689,), (1395340692,), (1395340696,), (1395340698,), (1395340701,), (1395340716,), (1395340719,), (1395361438,), (1395361512,), (1395361515,), (1395361519,), (1395361524,), (1395361561,), (1395361565,), (1395361569,), (1395361573,), (1395361578,), (1395361608,), (1395363125,), (1395364916,), (1395364842,), (1395365106,), (1395365188,), (1395365223,), (1395365259,), (1395365271,), (1395365293,), (1395365642,), (1395365698,), (1395365733,), (1395366002,), (1395366006,), (1395366202,), (1395366205,), (1395366207,), (1395366209,), (1395366595,), (1395366676,), (1395367253,), (1395366663,), (1395366667,), (1395366670,), (1395366673,), (1395366843,), (1395366890,), (1395366922,), (1395366961,), (1395366991,), (1395366997,), (1395367143,), (1395367149,), (1395367154,), (1395367159,), (1395367171,), (1395367217,), (1395367226,), (1395367230,), (1395367233,), (1395367238,), (1395367243,), (1395367246,), (1395367250,), (1395367251,), (1395367252,), (1395367273,), (1395367275,), (1395367276,), (1395367277,), (1395367279,), (1395367503,), (1395367506,), (1395367510,), (1395367514,), (1395367549,), (1395367587,), (1395367632,), (1395367634,), (1395367821,), (1395367826,), (1395367839,), (1395367856,), (1395367868,), (1395367881,), (1395367924,), (1395367928,), (1395367932,), (1395367934,), (1395367937,), (1395367941,), (1395368116,), (1395368133,), (1395368134,), (1395368135,), (1395368295,), (1395368300,), (1395368304,), (1395368309,), (1395368313,), (1395368335,), (1395368435,), (1395368455,), (1395368459,), (1395368462,), (1395368478,), (1395369132,), (1395369173,), (1395369213,), (1395369256,), (1395369294,), (1395369327,), (1395369592,), (1395369664,), (1395369738,), (1395369804,), (1395369864,), (1395369994,), (1395370027,), (1395370062,), (1395370103,), (1395370156,), (1395370161,), (1395370164,), (1395370194,), (1395370229,), (1395370640,), (1395370679,), (1395370712,), (1395370745,), (1395370807,), (1395371061,), (1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,), (1395374090,), (1395374070,), (1395374075,), (1395374079,), (1395374085,), (1395374113,), (1395374116,), (1395374130,), (1395374134,), (1395374138,), (1395374141,), (1395374332,), (1395374376,), (1395374396,), (1395374403,), (1395374410,), (1395374595,), (1395374598,), (1395374600,), (1395374602,), (1395374604,), (1395374662,), (1395374668,), (1395374670,), (1395374673,), (1395374677,), (1395374681,), (1395374776,), (1395374810,), (1395374826,), (1395374852,), (1395374856,), (1395374881,), (1395374887,), (1395374892,), (1395374910,), (1395374917,), (1395375092,), (1395375103,), (1395375132,), (1395375167,), (1395375306,), (1395375309,), (1395375312,), (1395375316,), (1395375322,), (1395375327,), (1395375361,), (1395375366,), (1395375368,), (1395375370,), (1395375418,), (1395375440,), (1395375476,), (1395375483,), (1395375689,), (1395375697,), (1395375711,), (1395375723,), (1395375729,), (1395375732,), (1395375756,), (1395375761,), (1395375766,), (1395375785,), (1395375821,), (1395375831,), (1395375833,), (1395375842,), (1395375850,), (1395375852,), (1395375855,), (1395375870,), (1395375872,), (1395375874,), (1395375876,), (1395376080,), (1395375919,), (1395375934,), (1395375972,), (1395376004,), (1395376040,), (1395376427,), (1395376462,), (1395376499,), (1395376532,), (1395376837,), (1395376870,), (1395376904,), (1395376936,), (1395376956,), (1395377119,), (1395377120,), (1395377121,), (1395377123,), (1395377185,), (1395377364,), (1395377370,), (1395377384,), (1395377388,), (1395377397,), (1395377682,), (1395377686,), (1395377687,), (1395377715,), (1395377743,), (1395377745,), (1395377847,), (1395377848,), (1395377849,), (1395377854,), (1395377996,), (1395378002,), (1395378007,), (1395378016,), (1395378468,), (1395378501,), (1395378518,), (1395378519,), (1395378546,), (1395378585,), (1395378771,), (1395378776,), (1395378780,), (1395378784,), (1395378788,), (1395378831,), (1395378833,), (1395378836,), (1395378840,), (1395378845,), (1395378850,), (1395379052,), (1395379104,), (1395379147,), (1395379191,), (1395379422,), (1395379427,), (1395379432,), (1395379456,), (1395379524,), (1395379800,), (1395379806,), (1395379810,), (1395379840,), (1395379931,), (1395379932,), (1395379935,), (1395379936,), (1395379938,), (1395379939,), (1395379949,), (1395379953,), (1395379988,), (1395379990,), (1395380046,), (1395380303,), (1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,), (1395382203,), (1395382010,), (1395382057,), (1395382090,), (1395382129,), (1395382165,), (1395382395,), (1395382399,), (1395382434,), (1395382467,), (1395382511,), (1395382921,), (1395382955,), (1395382989,), (1395382992,), (1395382996,), (1395383189,), (1395383191,), (1395383193,), (1395383196,), (1395383225,), (1395383230,), (1395383232,), (1395383235,), (1395383238,), (1395383243,), (1395383457,), (1395383462,), (1395383493,), (1395383502,), (1395383511,), (1395383575,), (1395383577,), (1395383579,), (1395383582,), (1395383586,), (1395383719,), (1395383741,), (1395383744,), (1395383768,), (1395383778,), (1395383779,), (1395383788,), (1395383791,), (1395383794,), (1395383808,), (1395383810,), (1395383811,), (1395383821,), (1395383852,), (1395383856,), (1395383860,), (1395385234,), (1395385141,), (1395385204,), (1395385355,), (1395385426,), (1395385430,), (1395385433,), (1395385466,), (1395385470,), (1395385472,), (1395385481,), (1395385491,), (1395385502,), (1395385589,), (1395385592,), (1395385595,), (1395385598,), (1395385718,), (1395385720,), (1395385722,), (1395385724,), (1395385728,), (1395385754,), (1395385758,), (1395385762,), (1395385766,), (1395385775,), (1395385784,), (1395385880,), (1395385938,), (1395385950,), (1395385969,), (1395386053,), (1395386058,), (1395386062,), (1395386067,), (1395386072,), (1395386076,), (1395386162,), (1395386179,), (1395386182,), (1395386215,), (1395386222,), (1395386224,), (1395386263,), (1395386267,), (1395386272,), (1395386304,), (1395386332,), (1395386346,), (1395386348,), (1395386371,), (1395386376,), (1395386379,), (1395386400,), (1395386401,), (1395386419,), (1395386454,), (1395386727,), (1395386647,), (1395386653,), (1395386656,), (1395386659,), (1395386684,), (1395387159,), (1395387194,), (1395387196,), (1395387381,), (1395387383,), (1395387385,), (1395387567,), (1395387750,), (1395387755,), (1395387758,), (1395387761,), (1395387765,), (1395387877,), (1395387981,), (1395388020,), (1395388056,), (1395388088,), (1395388124,), (1395388163,), (1395388165,), (1395388176,), (1395388196,), (1395388200,), (1395388204,), (1395388207,), (1395388210,), (1395388214,), (1395388234,), (1395388237,), (1395388246,), (1395388256,), (1395388260,), (1395388264,), (1395388302,), (1395388303,), (1395388304,), (1395388305,), (1395388309,), (1395388342,), (1395388351,), (1395388363,), (1395388367,), (1395388425,), (1395388439,), (1395388444,), (1395388446,), (1395388449,), (1395388451,), (1395388616,), (1395388621,), (1395388626,), (1395388640,), (1395388644,), (1395388646,), (1395388647,), (1395388651,), (1395388674,), (1395388667,), (1395388670,), (1395388672,), (1395388718,), (1395388721,), (1395388724,), (1395388728,), (1395388732,), (1395388737,), (1395388805,), (1395388807,), (1395388838,), (1395388849,), (1395388860,), (1395388867,), (1395388893,), (1395388900,), (1395388923,), (1395388925,), (1395388946,), (1395388948,), (1395388950,), (1395388953,), (1395388956,), (1395388957,), (1395388982,), (1395388986,), (1395388993,), (1395388998,), (1395389034,), (1395389037,), (1395389039,), (1395389043,), (1395389047,), (1395389080,), (1395389082,), (1395389083,), (1395389089,), (1395389110,), (1395389152,), (1395389154,), (1395389157,), (1395389161,), (1395389165,), (1395389205,), (1395389207,), (1395389209,), (1395389211,), (1395389215,), (1395389244,), (1395389248,), (1395389251,), (1395389255,), (1395389259,), (1395389314,), (1395389316,), (1395389317,), (1395389319,), (1395389324,), (1395389329,), (1395389364,), (1395389369,), (1395389382,), (1395389394,), (1395389426,), (1395389428,), (1395389434,), (1395389437,), (1395389446,), (1395389448,), (1395389460,), (1395389464,), (1395389466,), (1395389471,), (1395389474,), (1395389518,), (1395389520,), (1395389551,), (1395389586,), (1395389630,), (1395389633,), (1395389636,), (1395389641,), (1395389674,), (1395389679,), (1395389693,), (1395389697,), (1395389702,), (1395389706,), (1395389716,), (1395389718,), (1395389725,), (1395389728,), (1395389732,), (1395389736,), (1395389740,), (1395389742,), (1395389826,), (1395389829,), (1395389832,), (1395389835,), (1395389838,), (1395389870,), (1395389872,), (1395389873,), (1395389874,), (1395389876,), (1395389915,), (1395389919,), (1395389925,), (1395389929,), (1395389933,), (1395389938,), (1395389972,), (1395389974,), (1395389994,), (1395390029,), (1395390033,), (1395390037,), (1395390042,), (1395390045,), (1395390049,), (1395390079,), (1395390081,), (1395390086,), (1395390090,), (1395390183,), (1395390236,), (1395390240,), (1395390243,), (1395390247,), (1395390257,), (1395390263,), (1395390279,), (1395390283,), (1395390292,), (1395390296,), (1395390359,), (1395390365,), (1395390369,), (1395390373,), (1395390394,), (1395390525,), (1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,), (1395391986,), (1395391944,), (1395391975,), (1395391977,), (1395391979,), (1395391982,), (1395392249,), (1395392251,), (1395392253,), (1395392330,), (1395392334,), (1395392336,), (1395392340,), (1395392344,), (1395392347,), (1395392532,), (1395392573,), (1395392610,), (1395392650,), (1395392881,), (1395392882,), (1395392883,), (1395392885,), (1395392889,), (1395392943,), (1395392947,), (1395392950,), (1395392953,), (1395392956,), (1395393263,), (1395393265,), (1395393267,), (1395393269,), (1395393272,), (1395393275,), (1395393314,), (1395393315,), (1395393318,), (1395393322,), (1395393326,), (1395393328,), (1395393363,), (1395393366,), (1395393370,), (1395393373,), (1395393374,), (1395393376,), (1395393386,), (1395393388,), (1395393391,), (1395393394,), (1395393398,), (1395393408,), (1395393419,), (1395393420,), (1395393424,), (1395393428,), (1395393432,), (1395393437,), (1395393442,), (1395393446,), (1395393450,), (1395393455,), (1395393460,), (1395393464,), (1395393468,), (1395393604,), (1395393606,), (1395393608,), (1395393610,), (1395393613,), (1395393616,), (1395393627,), (1395393631,), (1395393632,), (1395393634,), (1395393636,), (1395393641,), (1395393863,), (1395393896,), (1395393934,), (1395393969,), (1395394286,), (1395394490,), (1395394284,), (1395394285,), (1395394326,), (1395394328,), (1395394332,), (1395394339,), (1395394347,), (1395394350,), (1395394404,), (1395394414,), (1395394417,), (1395394420,), (1395394423,), (1395394428,), (1395394448,), (1395394451,), (1395394453,), (1395394456,), (1395394459,), (1395394462,), (1395394474,), (1395394476,), (1395394478,), (1395394480,), (1395394483,), (1395394486,), (1395394506,), (1395394544,), (1395394583,), (1395394860,), (1395394863,), (1395394866,), (1395394899,), (1395394900,), (1395394903,), (1395394905,), (1395394942,), (1395394945,), (1395394947,), (1395394973,), (1395395374,), (1395396321,), (1395401385,), (1395401387,), (1395401425,), (1395401428,), (1395401437,), (1395401711,), (1395401742,), (1395401767,), (1395401773,), (1395401781,), (1395401814,), (1395401899,), (1395401902,), (1395401930,), (1395401934,), (1395401959,), (1395401961,), (1395401963,), (1395401966,), (1395401970,), (1395401974,), (1395401991,), (1395401994,), (1395401998,), (1395402003,), (1395402025,), (1395402026,), (1395402027,), (1395402029,), (1395402033,), (1395402038,), (1395402059,), (1395402060,), (1395402080,), (1395402083,), (1395402093,), (1395402099,), (1395402114,), (1395402136,), (1395402138,), (1395402140,), (1395402144,), (1395402145,), (1395402147,), (1395402149,), (1395402151,), (1395402152,), (1395402184,), (1395402185,), (1395402186,), (1395402188,), (1395402229,), (1395402231,), (1395402233,), (1395402235,), (1395402240,), (1395402244,), (1395402261,), (1395402263,), (1395402265,), (1395402268,), (1395402317,), (1395402323,), (1395402324,), (1395402325,), (1395402349,), (1395402352,), (1395402355,), (1395402394,), (1395402429,), (1395402423,), (1395402424,), (1395402426,), (1395402455,), (1395402457,), (1395402462,), (1395402465,), (1395402472,), (1395402500,), (1395402503,), (1395402506,), (1395402509,), (1395402531,), (1395402532,), (1395402533,), (1395402535,), (1395402539,), (1395402543,), (1395402555,), (1395402567,), (1395402572,), (1395402575,), (1395402600,), (1395402603,), (1395402605,), (1395402608,), (1395402610,), (1395402614,), (1395402710,), (1395402748,), (1395402781,), (1395402812,), (1395403532,), (1395403565,), (1395403601,), (1395403632,), (1395403666,), (1395403701,), (1395404013,), (1395404046,), (1395404090,), (1395404132,), (1395404426,), (1395404446,), (1395404462,), (1395404502,), (1395404540,), (1395404651,), (1395404653,), (1395404655,), (1395404657,), (1395404662,), (1395404907,), (1395404950,), (1395404963,), (1395404984,), (1395405552,), (1395406083,), (1395406250,), (1395406298,), (1395406330,), (1395406363,), (1395406512,), (1395406514,), (1395406526,), (1395406560,), (1395406596,), (1395406875,), (1395406869,), (1395406871,), (1395406873,), (1395407091,), (1395407107,), (1395407141,), (1395407180,), (1395407217,), (1395407469,), (1395407506,), (1395407538,), (1395407575,), (1395407751,), (1395407752,), (1395407753,), (1395407756,), (1395407758,), (1395407784,), (1395407787,), (1395407790,), (1395407793,), (1395407797,), (1395407819,), (1395407821,), (1395408238,), (1395408408,), (1395408521,), (1395408540,), (1395408630,), (1395408633,), (1395408635,), (1395408659,), (1395408660,), (1395408661,), (1395408663,), (1395408685,), (1395408688,), (1395408691,), (1395408694,), (1395408699,), (1395408720,), (1395408726,), (1395408727,), (1395408731,), (1395408784,), (1395408786,), (1395408788,), (1395408792,), (1395408796,), (1395408800,), (1395408835,), (1395408840,), (1395408846,), (1395408853,), (1395408858,), (1395408863,), (1395408876,), (1395408877,), (1395408880,), (1395408883,), (1395408907,), (1395408900,), (1395408903,), (1395408905,), (1395408993,), (1395408994,), (1395408995,), (1395408997,), (1395409000,), (1395409004,), (1395409025,), (1395409026,), (1395409029,), (1395409033,), (1395409037,), (1395409038,), (1395409076,), (1395409078,), (1395409081,), (1395409084,), (1395409088,), (1395409225,), (1395409259,), (1395409299,), (1395409316,), (1395409320,), (1395409323,), (1395409392,), (1395409396,), (1395409427,), (1395409455,), (1395409461,), (1395409477,), (1395409517,), (1395409520,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20112025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28754218]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] map_info['map_portfolio_photo'] : {28754218: [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225, 1395409088, 1395409084, 1395409081, 1395409078, 1395409076, 1395409038, 1395409037, 1395409033, 1395409029, 1395409026, 1395409025, 1395409004, 1395409000, 1395408997, 1395408995, 1395408994, 1395408993, 1395408905, 1395408903, 1395408900]} final : True mtd_id 4302 list_pids : [1395409520, 1395409517, 1395409477, 1395409461, 1395409455, 1395409427, 1395409396, 1395409392, 1395409323, 1395409320, 1395409316, 1395409299, 1395409259, 1395409225] Looping around the photos to save general results len do output : 1 /28754218Didn'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, '4086360') ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360') ('4302', None, None, None, None, None, None, None, '4086360') ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28754218', 'None', None, None, None, None, '4086360'), ('4302', '28754218', '1395409520', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409517', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409477', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409461', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409455', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409427', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409396', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409392', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409323', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409320', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409316', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409299', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409259', None, None, None, None, None, '4086360'), ('4302', '28754218', '1395409225', None, None, None, None, None, '4086360')] time used for this insertion : 0.016042232513427734 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.840468645095825 time spend to save output : 0.01632833480834961 total time spend for step 5 : 4.856796979904175 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 (4086360) 2.17user 2.60system 0:11.53elapsed 41%CPU (0avgtext+0avgdata 160596maxresident)k 4264inputs+9576outputs (45major+64525minor)pagefaults 0swaps