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 : 2765523 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 (4244712) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4244712) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531020 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4244712'] with mtr_portfolio_ids : ['29531020'] and first list_photo_ids : [] new path : /proc/2765523/ Name: python3 Umask: 0002 State: R (running) Tgid: 2765523 Ngid: 0 Pid: 2765523 PPid: 2765522 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2765523 NSpid: 2765523 NSpgid: 2764382 NSsid: 2764382 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105096 kB VmRSS: 105096 kB RssAnon: 66292 kB RssFile: 38804 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 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: 52 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2765523', 'Ngid': '0', 'Pid': '2765523', 'PPid': '2765522', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2765523', 'NSpid': '2765523', 'NSpgid': '2764382', 'NSsid': '2764382', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105096 kB', 'VmRSS': '105096 kB', 'RssAnon': '66292 kB', 'RssFile': '38804 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 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': '52', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2765523', '1113364', '0', '1113364', '872092', '105096', b'', 'marlene', '4244712') 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 (29531020) 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 (4244712 ) ) 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 (29531020) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399909886, 'portfolio_id': 29531020}, {'photo_id': 1399909871, 'portfolio_id': 29531020}, {'photo_id': 1399909843, 'portfolio_id': 29531020}, {'photo_id': 1399909814, 'portfolio_id': 29531020}, {'photo_id': 1399909774, 'portfolio_id': 29531020}, {'photo_id': 1399909773, 'portfolio_id': 29531020}, {'photo_id': 1399909772, 'portfolio_id': 29531020}, {'photo_id': 1399909770, 'portfolio_id': 29531020}, {'photo_id': 1399909754, 'portfolio_id': 29531020}, {'photo_id': 1399909752, 'portfolio_id': 29531020}, {'photo_id': 1399909749, 'portfolio_id': 29531020}, {'photo_id': 1399909748, 'portfolio_id': 29531020}, {'photo_id': 1399909746, 'portfolio_id': 29531020}, {'photo_id': 1399909743, 'portfolio_id': 29531020}, {'photo_id': 1399909714, 'portfolio_id': 29531020}, {'photo_id': 1399909713, 'portfolio_id': 29531020}, {'photo_id': 1399909697, 'portfolio_id': 29531020}, {'photo_id': 1399909667, 'portfolio_id': 29531020}, {'photo_id': 1399909633, 'portfolio_id': 29531020}, {'photo_id': 1399909600, 'portfolio_id': 29531020}, {'photo_id': 1399909597, 'portfolio_id': 29531020}, {'photo_id': 1399909593, 'portfolio_id': 29531020}, {'photo_id': 1399909588, 'portfolio_id': 29531020}, {'photo_id': 1399909569, 'portfolio_id': 29531020}, {'photo_id': 1399909567, 'portfolio_id': 29531020}, {'photo_id': 1399909566, 'portfolio_id': 29531020}, {'photo_id': 1399909565, 'portfolio_id': 29531020}, {'photo_id': 1399909564, 'portfolio_id': 29531020}, {'photo_id': 1399909538, 'portfolio_id': 29531020}, {'photo_id': 1399909536, 'portfolio_id': 29531020}, {'photo_id': 1399909534, 'portfolio_id': 29531020}, {'photo_id': 1399909529, 'portfolio_id': 29531020}, {'photo_id': 1399909527, 'portfolio_id': 29531020}, {'photo_id': 1399909520, 'portfolio_id': 29531020}, {'photo_id': 1399909493, 'portfolio_id': 29531020}, {'photo_id': 1399909491, 'portfolio_id': 29531020}, {'photo_id': 1399909489, 'portfolio_id': 29531020}, {'photo_id': 1399909488, 'portfolio_id': 29531020}, {'photo_id': 1399909487, 'portfolio_id': 29531020}, {'photo_id': 1399909486, 'portfolio_id': 29531020}, {'photo_id': 1399909466, 'portfolio_id': 29531020}, {'photo_id': 1399909464, 'portfolio_id': 29531020}, {'photo_id': 1399909462, 'portfolio_id': 29531020}, {'photo_id': 1399909400, 'portfolio_id': 29531020}, {'photo_id': 1399909375, 'portfolio_id': 29531020}, {'photo_id': 1399909356, 'portfolio_id': 29531020}, {'photo_id': 1399909349, 'portfolio_id': 29531020}, {'photo_id': 1399909309, 'portfolio_id': 29531020}, {'photo_id': 1399909093, 'portfolio_id': 29531020}, {'photo_id': 1399909058, 'portfolio_id': 29531020}, {'photo_id': 1399909026, 'portfolio_id': 29531020}, {'photo_id': 1399908994, 'portfolio_id': 29531020}, {'photo_id': 1399908962, 'portfolio_id': 29531020}, {'photo_id': 1399908728, 'portfolio_id': 29531020}, {'photo_id': 1399908691, 'portfolio_id': 29531020}, {'photo_id': 1399908656, 'portfolio_id': 29531020}, {'photo_id': 1399908624, 'portfolio_id': 29531020}, {'photo_id': 1399908192, 'portfolio_id': 29531020}, {'photo_id': 1399908130, 'portfolio_id': 29531020}, {'photo_id': 1399907597, 'portfolio_id': 29531020}, {'photo_id': 1399907530, 'portfolio_id': 29531020}, {'photo_id': 1399907467, 'portfolio_id': 29531020}, {'photo_id': 1399907404, 'portfolio_id': 29531020}, {'photo_id': 1399907335, 'portfolio_id': 29531020}, {'photo_id': 1399907270, 'portfolio_id': 29531020}, {'photo_id': 1399906853, 'portfolio_id': 29531020}, {'photo_id': 1399906852, 'portfolio_id': 29531020}, {'photo_id': 1399906850, 'portfolio_id': 29531020}, {'photo_id': 1399906848, 'portfolio_id': 29531020}, {'photo_id': 1399906845, 'portfolio_id': 29531020}] map_portfolio_id_photo_id: {29531020: [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743, 1399909714, 1399909713, 1399909697, 1399909667, 1399909633, 1399909600, 1399909597, 1399909593, 1399909588, 1399909569, 1399909567, 1399909566, 1399909565, 1399909564, 1399909538, 1399909536, 1399909534, 1399909529, 1399909527, 1399909520, 1399909493, 1399909491, 1399909489, 1399909488, 1399909487, 1399909486, 1399909466, 1399909464, 1399909462, 1399909400, 1399909375, 1399909356, 1399909349, 1399909309, 1399909093, 1399909058, 1399909026, 1399908994, 1399908962, 1399908728, 1399908691, 1399908656, 1399908624, 1399908192, 1399908130, 1399907597, 1399907530, 1399907467, 1399907404, 1399907335, 1399907270, 1399906853, 1399906852, 1399906850, 1399906848, 1399906845]} ##### 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.01961541175842285 #### 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 Dec 18 08:14:55 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 (29531020) 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 : 29531020 get user id for portfolio 29531020 get sub ptf for main ptf 29531020, type 3726 and hashtags ['mal_croppe', 'cartonnette', 'plastique', 'flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'papier', 'kraft', 'environnement', 'autre_refus', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29531020 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','plastique','flou','Carton_gris','Teint_Dans_La_Masse','metal','papier','kraft','environnement','autre_refus','Carton_brun')) 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`=29531020 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','plastique','flou','Carton_gris','Teint_Dans_La_Masse','metal','papier','kraft','environnement','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29531020, 'sub_port_id': 29531035, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143544, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'cartonnette': {'main_port_id': 29531020, 'sub_port_id': 29531036, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143545, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'metal': {'main_port_id': 29531020, 'sub_port_id': 29531037, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143546, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'kraft': {'main_port_id': 29531020, 'sub_port_id': 29531038, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143547, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'Carton_gris': {'main_port_id': 29531020, 'sub_port_id': 29531039, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143548, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29531020, 'sub_port_id': 29531040, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143549, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'plastique': {'main_port_id': 29531020, 'sub_port_id': 29531041, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143550, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'Carton_brun': {'main_port_id': 29531020, 'sub_port_id': 29531042, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143551, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'autre_refus': {'main_port_id': 29531020, 'sub_port_id': 29531043, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143552, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'papier': {'main_port_id': 29531020, 'sub_port_id': 29531044, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143553, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'mal_croppe': {'main_port_id': 29531020, 'sub_port_id': 29531045, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143554, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}, 'environnement': {'main_port_id': 29531020, 'sub_port_id': 29531046, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143555, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29531035 , 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=29531020 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 (29531035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531036 , 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=29531020 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 (29531036) result : ((1399909287,), (1399909554,), (1399909718,), (1399909719,), (1399909733,), (1399909799,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531037 , 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=29531020 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 (29531037) result : ((1399909771,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531038 , 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=29531020 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 (29531038) result : ((1399909559,), (1399909738,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531039 , 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=29531020 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 (29531039) result : ((1399909283,), (1399909717,), (1399909766,), (1399909797,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531040 , 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=29531020 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 (29531040) result : ((1399909280,), (1399909551,), (1399909715,), (1399909730,), (1399909761,), (1399909762,), (1399909763,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531041 , 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=29531020 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 (29531041) result : ((1399909315,), (1399909317,), (1399909556,), (1399909557,), (1399909558,), (1399909724,), (1399909725,), (1399909735,), (1399909736,), (1399909737,), (1399909768,), (1399909769,), (1399909805,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531042 , 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=29531020 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 (29531042) result : ((1399909298,), (1399909300,), (1399909302,), (1399909722,), (1399909767,), (1399909801,), (1399909802,), (1399909803,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531043 , 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=29531020 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 (29531043) result : ((1399909281,), (1399909552,), (1399909596,), (1399909716,), (1399909731,), (1399909764,), (1399909765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531044 , 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=29531020 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 (29531044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531045 , 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=29531020 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 (29531045) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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 29531046 , 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=29531020 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 (29531046) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29531020) result : ((1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) 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 (1399909400,1399909600) 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`=29531020 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','plastique','flou','Carton_gris','Teint_Dans_La_Masse','metal','papier','kraft','environnement','autre_refus','Carton_brun')) 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`=29531020 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','plastique','flou','Carton_gris','Teint_Dans_La_Masse','metal','papier','kraft','environnement','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29531020, 'sub_port_id': 29531047, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143556, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'cartonnette': {'main_port_id': 29531020, 'sub_port_id': 29531048, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143557, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'metal': {'main_port_id': 29531020, 'sub_port_id': 29531049, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143558, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'kraft': {'main_port_id': 29531020, 'sub_port_id': 29531050, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143559, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'Carton_gris': {'main_port_id': 29531020, 'sub_port_id': 29531051, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143560, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29531020, 'sub_port_id': 29531052, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143561, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'plastique': {'main_port_id': 29531020, 'sub_port_id': 29531053, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143562, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'Carton_brun': {'main_port_id': 29531020, 'sub_port_id': 29531054, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143563, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'autre_refus': {'main_port_id': 29531020, 'sub_port_id': 29531055, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143564, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'papier': {'main_port_id': 29531020, 'sub_port_id': 29531056, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143565, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'mal_croppe': {'main_port_id': 29531020, 'sub_port_id': 29531057, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143566, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}, 'environnement': {'main_port_id': 29531020, 'sub_port_id': 29531058, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20143567, 'last_updated_at': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 8, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29531058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29531046 lien utilise dans velours : https://marlene.fotonower.com/velours/29531047,29531048,29531049,29531050,29531051,29531052,29531053,29531054,29531055,29531056,29531057,29531058?tags=flou,cartonnette,metal,kraft,Carton_gris,Teint_Dans_La_Masse,plastique,Carton_brun,autre_refus,papier,mal_croppe,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29531020]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] map_info['map_portfolio_photo'] : {29531020: [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743, 1399909714, 1399909713, 1399909697, 1399909667, 1399909633, 1399909600, 1399909597, 1399909593, 1399909588, 1399909569, 1399909567, 1399909566, 1399909565, 1399909564, 1399909538, 1399909536, 1399909534, 1399909529, 1399909527, 1399909520, 1399909493, 1399909491, 1399909489, 1399909488, 1399909487, 1399909486, 1399909466, 1399909464, 1399909462, 1399909400, 1399909375, 1399909356, 1399909349, 1399909309, 1399909093, 1399909058, 1399909026, 1399908994, 1399908962, 1399908728, 1399908691, 1399908656, 1399908624, 1399908192, 1399908130, 1399907597, 1399907530, 1399907467, 1399907404, 1399907335, 1399907270, 1399906853, 1399906852, 1399906850, 1399906848, 1399906845]} final : False mtd_id 4302 list_pids : [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] Looping around the photos to save general results len do output : 1 /29531020. 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, '4244712') ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712') 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, '29531020', "{'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046}", None, None, None, None, '4244712'), ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712')] time used for this insertion : 0.019917964935302734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5982861518859863 time spend to save output : 0.02019190788269043 total time spend for step 1 : 0.6184780597686768 step2:final Thu Dec 18 08:14:56 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 (29531020) 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 29531020 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399906853,1399906852,1399906850,1399906848,1399906845,1399907597,1399907530,1399907467,1399907404,1399907335,1399907270,1399908192,1399908130,1399908728,1399908691,1399908656,1399908624,1399909093,1399909058,1399909026,1399908994,1399908962,1399909400,1399909375,1399909356,1399909349,1399909309,1399909466,1399909464,1399909462,1399909493,1399909491,1399909489,1399909488,1399909487,1399909486,1399909600,1399909538,1399909536,1399909597,1399909534,1399909593,1399909588,1399909529,1399909527,1399909569,1399909567,1399909520,1399909566,1399909565,1399909564,1399909714,1399909713,1399909697,1399909667,1399909633,1399909754,1399909752,1399909749,1399909748,1399909746,1399909743,1399909774,1399909773,1399909772,1399909770,1399909886,1399909871,1399909843,1399909814); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29531020]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} new output for save of step final : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] map_info['map_portfolio_photo'] : {29531020: [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743, 1399909714, 1399909713, 1399909697, 1399909667, 1399909633, 1399909600, 1399909597, 1399909593, 1399909588, 1399909569, 1399909567, 1399909566, 1399909565, 1399909564, 1399909538, 1399909536, 1399909534, 1399909529, 1399909527, 1399909520, 1399909493, 1399909491, 1399909489, 1399909488, 1399909487, 1399909486, 1399909466, 1399909464, 1399909462, 1399909400, 1399909375, 1399909356, 1399909349, 1399909309, 1399909093, 1399909058, 1399909026, 1399908994, 1399908962, 1399908728, 1399908691, 1399908656, 1399908624, 1399908192, 1399908130, 1399907597, 1399907530, 1399907467, 1399907404, 1399907335, 1399907270, 1399906853, 1399906852, 1399906850, 1399906848, 1399906845]} final : False mtd_id 4302 list_pids : [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] Looping around the photos to save general results len do output : 14 /1399909886.Didn't retrieve data . /1399909871.Didn't retrieve data . /1399909843.Didn't retrieve data . /1399909814.Didn't retrieve data . /1399909774.Didn't retrieve data . /1399909773.Didn't retrieve data . /1399909772.Didn't retrieve data . /1399909770.Didn't retrieve data . /1399909754.Didn't retrieve data . /1399909752.Didn't retrieve data . /1399909749.Didn't retrieve data . /1399909748.Didn't retrieve data . /1399909746.Didn't retrieve data . /1399909743.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, '4244712') ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712') 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', '29531020', '1399909886', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909871', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909843', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909814', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909774', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909773', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909772', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909770', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909754', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909752', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909749', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909748', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909746', '0.04578577998048841', None, None, None, None, '4244712'), ('4302', '29531020', '1399909743', '0.04578577998048841', None, None, None, None, '4244712')] time used for this insertion : 0.01640152931213379 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08283233642578125 time spend to save output : 0.017029285430908203 total time spend for step 2 : 0.09986162185668945 step3:velours_tree Thu Dec 18 08:14:56 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 : {29531020: [{'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046}]} input_args_next_step : {29531020: ()} output_args : {29531020: [{'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046}]} args : 29531020 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 : ({'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29531020) 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([29531020]) 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.23983240127563477 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.2398815155029297 step4:send_mail_cod Thu Dec 18 08:14:56 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 : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} input_args_next_step : {1399909886: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909886 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909871 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909843 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909814 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909774 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909773 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909772 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909770 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909754 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909752 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909749 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909748 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909746 depend.output_id : 0 input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ()} output_args : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',)} args : 1399909743 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 : {29531020: [{'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046}]} input_args_next_step : {1399909886: ('0.04578577998048841',), 1399909871: ('0.04578577998048841',), 1399909843: ('0.04578577998048841',), 1399909814: ('0.04578577998048841',), 1399909774: ('0.04578577998048841',), 1399909773: ('0.04578577998048841',), 1399909772: ('0.04578577998048841',), 1399909770: ('0.04578577998048841',), 1399909754: ('0.04578577998048841',), 1399909752: ('0.04578577998048841',), 1399909749: ('0.04578577998048841',), 1399909748: ('0.04578577998048841',), 1399909746: ('0.04578577998048841',), 1399909743: ('0.04578577998048841',), 29531020: ()} output_args : {29531020: [{'flou': 29531035, 'cartonnette': 29531036, 'metal': 29531037, 'kraft': 29531038, 'Carton_gris': 29531039, 'Teint_Dans_La_Masse': 29531040, 'plastique': 29531041, 'Carton_brun': 29531042, 'autre_refus': 29531043, 'papier': 29531044, 'mal_croppe': 29531045, 'environnement': 29531046}]} args : 29531020 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.04578577998048841',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29531020) 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 (1399909886,1399909871,1399909843,1399909814,1399909774,1399909773,1399909772,1399909770,1399909754,1399909752,1399909749,1399909748,1399909746,1399909743) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399909743 begin to download photo : 1399909749 begin to download photo : 1399909770 begin to download photo : 1399909774 begin to download photo : 1399909871 download finish for photo 1399909871 begin to download photo : 1399909886 download finish for photo 1399909774 begin to download photo : 1399909814 download finish for photo 1399909749 begin to download photo : 1399909752 download finish for photo 1399909770 begin to download photo : 1399909772 download finish for photo 1399909743 begin to download photo : 1399909746 download finish for photo 1399909886 download finish for photo 1399909814 begin to download photo : 1399909843 download finish for photo 1399909772 begin to download photo : 1399909773 download finish for photo 1399909752 begin to download photo : 1399909754 download finish for photo 1399909746 begin to download photo : 1399909748 download finish for photo 1399909843 download finish for photo 1399909748 download finish for photo 1399909773 download finish for photo 1399909754 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette295310351766042097/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29531020_18-12-2025_08_14_57.pdf 29531035 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=29531035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295310351766042097 29531036 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=29531036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909287: '1766041507_3599385_1399906852_e872d4a6fb80acb91ca97ba717a986d1_rle_crop_4073802994_0.png', 1399909554: '1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807918_0.png', 1399909718: '1766041865_3620727_1399909349_58083402c10dcaeeb33c738d9974d827_rle_crop_4073809309_0.png', 1399909719: '1766041865_3620727_1399909309_b293c4a006afdc373b131b4647c2314a_rle_crop_4073809350_0.png', 1399909733: '1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807918_0.png', 1399909799: '1766041987_3628938_1399909486_f91b0fd73bf76321d4f222d08e8efcb4_rle_crop_4073811299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6878e7c99d5e02f64eefb373558f53c9_78479254.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d9d4fcc0a9fd787eac44067f87a6e3fc_53285265.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/76d1aad4495a915734d8b6005c0c71d3_83512931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1825a226c201016d54b3606d7f6219f1_96729012.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d9d4fcc0a9fd787eac44067f87a6e3fc_26258575.png change filename to text .imagette295310361766042097/ imagette295310361766042097/1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807918_0.png.png imagette295310361766042097/1766041987_3628938_1399909486_f91b0fd73bf76321d4f222d08e8efcb4_rle_crop_4073811299_0.png.png imagette295310361766042097/1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807918_0.png.png imagette295310361766042097/1766041865_3620727_1399909309_b293c4a006afdc373b131b4647c2314a_rle_crop_4073809350_0.png.png imagette295310361766042097/1766041507_3599385_1399906852_e872d4a6fb80acb91ca97ba717a986d1_rle_crop_4073802994_0.png.png imagette295310361766042097/1766041865_3620727_1399909349_58083402c10dcaeeb33c738d9974d827_rle_crop_4073809309_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cb70ac30508762bd3b6cec4834a06098_9450273.png imagette295310361766042097 29531037 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=29531037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909771: '1766041947_3627213_1399909529_1c3096e66fdf8e37b2e782e9598e5015_rle_crop_4073810375_0.png'} change filename to text .imagette295310371766042097/ imagette295310371766042097/1766041947_3627213_1399909529_1c3096e66fdf8e37b2e782e9598e5015_rle_crop_4073810375_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1efb72f9f9af7cdfb7b283c233836118_68825920.png imagette295310371766042097 29531038 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=29531038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909559: '1766041765_3615210_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807949_0.png', 1399909738: '1766041886_3623039_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a49dac4d9c4fdecda03c34fad534ff1b_31046266.png change filename to text .imagette295310381766042097/ imagette295310381766042097/1766041886_3623039_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807949_0.png.png imagette295310381766042097/1766041765_3615210_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807949_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a49dac4d9c4fdecda03c34fad534ff1b_43141299.png imagette295310381766042097 29531041 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=29531041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909315: '1766041507_3599385_1399906852_e872d4a6fb80acb91ca97ba717a986d1_rle_crop_4073802995_0.png', 1399909317: '1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803013_0.png', 1399909556: '1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807921_0.png', 1399909557: '1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807922_0.png', 1399909558: '1766041765_3615210_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807951_0.png', 1399909724: '1766041865_3620727_1399909375_1ad8edc1cb03619fb891ea53bd718411_rle_crop_4073809286_0.png', 1399909725: '1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809303_0.png', 1399909735: '1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807921_0.png', 1399909736: '1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807922_0.png', 1399909737: '1766041886_3623039_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807951_0.png', 1399909768: '1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810393_0.png', 1399909769: '1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810404_0.png', 1399909805: '1766041987_3628938_1399909486_f91b0fd73bf76321d4f222d08e8efcb4_rle_crop_4073811302_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2c8239f4a8fc59e4fe2f1e040b46d1db_33133534.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e8cbd91314b7ff06970bf16320182bf5_65423583.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fdb5f80f9ac347df43d038e551204bfb_47665285.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ad511abe371f8887f01ed38b691604b2_7308000.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c338d634592ffe5e9849a06bf42f3300_76089043.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5d5be4436e83edac5628bbce2cb7efdb_84615294.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ba40f74cff9fc5f3531ee42bfd854127_79182273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fdb5f80f9ac347df43d038e551204bfb_39388917.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ad511abe371f8887f01ed38b691604b2_97013614.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c338d634592ffe5e9849a06bf42f3300_17438762.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6c32fe1abe18aa5ab390ed58258a12ba_69079294.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3b7c40f9bcf29bd13b633fd2a505d0f9_99338486.png change filename to text .imagette295310411766042097/ imagette295310411766042097/1766041765_3615210_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807951_0.png.png imagette295310411766042097/1766041987_3628938_1399909486_f91b0fd73bf76321d4f222d08e8efcb4_rle_crop_4073811302_0.png.png imagette295310411766042097/1766041507_3599385_1399906852_e872d4a6fb80acb91ca97ba717a986d1_rle_crop_4073802995_0.png.png imagette295310411766042097/1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810393_0.png.png imagette295310411766042097/1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809303_0.png.png imagette295310411766042097/1766041886_3623039_1399908624_719fc9ac0d92042d6a27022672e43bab_rle_crop_4073807951_0.png.png imagette295310411766042097/1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807922_0.png.png imagette295310411766042097/1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807921_0.png.png imagette295310411766042097/1766041886_3623039_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807922_0.png.png imagette295310411766042097/1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810404_0.png.png imagette295310411766042097/1766041865_3620727_1399909375_1ad8edc1cb03619fb891ea53bd718411_rle_crop_4073809286_0.png.png imagette295310411766042097/1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803013_0.png.png imagette295310411766042097/1766041765_3615210_1399908691_f72ae8d27f1dabf97f242ae2c339583a_rle_crop_4073807921_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/71a196b2dcda73bcc5d00b1538919cf5_94665032.png imagette295310411766042097 29531043 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=29531043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909281: '1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803012_0.png', 1399909552: '1766041765_3615210_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807907_0.png', 1399909596: '1766041826_3619341_1399909464_440ca5e11e05689a1eca230234240500_rle_crop_4073808804_0.png', 1399909716: '1766041865_3620727_1399909309_b293c4a006afdc373b131b4647c2314a_rle_crop_4073809354_0.png', 1399909731: '1766041886_3623039_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807907_0.png', 1399909764: '1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810388_0.png', 1399909765: '1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810399_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d3de853622d1bc347ec6051ee6cbf0d9_56042114.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e73a9bc12c5beb395da6c831e7731b0f_56449458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b1c8ca730b38d47c84d6c7a3a2878583_59852323.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/68489de5ed5592cded8378c0e611b590_92584724.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e73a9bc12c5beb395da6c831e7731b0f_95986748.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/610da330de5ec687a54f45b777904f56_64724864.png change filename to text .imagette295310431766042098/ imagette295310431766042098/1766041886_3623039_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807907_0.png.png imagette295310431766042098/1766041765_3615210_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807907_0.png.png imagette295310431766042098/1766041826_3619341_1399909464_440ca5e11e05689a1eca230234240500_rle_crop_4073808804_0.png.png imagette295310431766042098/1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803012_0.png.png imagette295310431766042098/1766041865_3620727_1399909309_b293c4a006afdc373b131b4647c2314a_rle_crop_4073809354_0.png.png imagette295310431766042098/1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810399_0.png.png imagette295310431766042098/1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810388_0.png.png imagette295310451766042099/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3c33f2809b9a5da7edce72cb2176fbb4_37606612.png imagette295310431766042098 29531045 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=29531045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295310451766042099 29531039 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=29531039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909283: '1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803008_0.png', 1399909717: '1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809292_0.png', 1399909766: '1766041947_3627213_1399909529_1c3096e66fdf8e37b2e782e9598e5015_rle_crop_4073810373_0.png', 1399909797: '1766041987_3628938_1399909489_5c4ab10c494dc0f7dad0bf445a473618_rle_crop_4073811211_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a13599bbdd965c3dff40babb0a789d14_93424812.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8a7996cbd7ecb64fb33c20e69c183c09_18694682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a5b07d20c04ad3fa2f5838319f4e7056_37967937.png change filename to text .imagette295310391766042099/ imagette295310391766042099/1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809292_0.png.png imagette295310391766042099/1766041947_3627213_1399909529_1c3096e66fdf8e37b2e782e9598e5015_rle_crop_4073810373_0.png.png imagette295310391766042099/1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803008_0.png.png imagette295310391766042099/1766041987_3628938_1399909489_5c4ab10c494dc0f7dad0bf445a473618_rle_crop_4073811211_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b10741d198b1c76f9944804f826ae268_82915548.png imagette295310391766042099 29531040 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=29531040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909280: '1766041507_3599385_1399906845_036487d21a42361101d744802bec83c1_rle_crop_4073803211_0.png', 1399909551: '1766041765_3615210_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807910_0.png', 1399909715: '1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809299_0.png', 1399909730: '1766041886_3623039_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807910_0.png', 1399909761: '1766041947_3627213_1399909536_86315bea52061d2ca16eb4e298b21764_rle_crop_4073810312_0.png', 1399909762: '1766041947_3627213_1399909534_3ee9a7ba229865e3260bb48bc8704668_rle_crop_4073810321_0.png', 1399909763: '1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810386_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1ce07d9c7ac4155766f95ac53e1e9001_73076710.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0287fb7f2a4abe45a2bef7896e3ae2de_93092674.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6b5e175a58e2913e261f98dc3407e02a_53394889.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0287fb7f2a4abe45a2bef7896e3ae2de_91495025.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5b2c0f0c01466d96ff002789b3992a2f_1402026.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bafe6c9ead07b86d4b564cda91c6e048_64399872.png change filename to text .imagette295310401766042099/ imagette295310401766042099/1766041947_3627213_1399909527_c6b0ca9657023d4d5b732160081c4fef_rle_crop_4073810386_0.png.png imagette295310401766042099/1766041947_3627213_1399909536_86315bea52061d2ca16eb4e298b21764_rle_crop_4073810312_0.png.png imagette295310401766042099/1766041765_3615210_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807910_0.png.png imagette295310401766042099/1766041947_3627213_1399909534_3ee9a7ba229865e3260bb48bc8704668_rle_crop_4073810321_0.png.png imagette295310401766042099/1766041886_3623039_1399909093_60de8accb496e964f7bf601de3d76119_rle_crop_4073807910_0.png.png imagette295310401766042099/1766041865_3620727_1399909356_8a939f7c30ec79d67ae44b3ac8409b26_rle_crop_4073809299_0.png.png imagette295310401766042099/1766041507_3599385_1399906845_036487d21a42361101d744802bec83c1_rle_crop_4073803211_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/76a3f6ce742f25874d1208be541a4c35_39824153.png imagette295310401766042099 29531042 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=29531042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399909298: '1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803014_0.png', 1399909300: '1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803009_0.png', 1399909302: '1766041507_3599385_1399906845_036487d21a42361101d744802bec83c1_rle_crop_4073803208_0.png', 1399909722: '1766041865_3620727_1399909349_58083402c10dcaeeb33c738d9974d827_rle_crop_4073809311_0.png', 1399909767: '1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810400_0.png', 1399909801: '1766041987_3628938_1399909489_5c4ab10c494dc0f7dad0bf445a473618_rle_crop_4073811212_0.png', 1399909802: '1766041987_3628938_1399909488_96723c809588278e5c49b05b84f0fc4e_rle_crop_4073811226_0.png', 1399909803: '1766041987_3628938_1399909487_f52d235b936f291fce8aaa18ba0fc982_rle_crop_4073811234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/111ea5e65c86718b5f42e7b2abde1a5a_53563203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/7982f4417ef8d3ebb439e82113c6d306_13571820.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/175e62e9661184b9e76b65794e65d06e_37440738.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e031876ee9195a7b6848ad48c5c26790_17036410.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ed3eb1d2d8a7317c340afb16fe91a436_92244462.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e90bace303fca94e9dc7256f2fe535ec_79056438.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8f85676ae83cd5871236147d44348426_69590222.png change filename to text .imagette295310421766042100/ imagette295310421766042100/1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803014_0.png.png imagette295310421766042100/1766041865_3620727_1399909349_58083402c10dcaeeb33c738d9974d827_rle_crop_4073809311_0.png.png imagette295310421766042100/1766041987_3628938_1399909487_f52d235b936f291fce8aaa18ba0fc982_rle_crop_4073811234_0.png.png imagette295310421766042100/1766041987_3628938_1399909489_5c4ab10c494dc0f7dad0bf445a473618_rle_crop_4073811212_0.png.png imagette295310421766042100/1766041947_3627213_1399909520_c9dfbd6c04eafc2219f0a831c4303762_rle_crop_4073810400_0.png.png imagette295310421766042100/1766041987_3628938_1399909488_96723c809588278e5c49b05b84f0fc4e_rle_crop_4073811226_0.png.png imagette295310421766042100/1766041507_3599385_1399906850_c063d89f15546d92a674b6543d0f7d95_rle_crop_4073803009_0.png.png imagette295310421766042100/1766041507_3599385_1399906845_036487d21a42361101d744802bec83c1_rle_crop_4073803208_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cd4e33229175413000fbfc28f7318bc3_47666377.png imagette295310421766042100 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29531020 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29531047,29531048,29531049,29531050,29531051,29531052,29531053,29531054,29531055,29531056,29531057,29531058?tags=flou,cartonnette,metal,kraft,Carton_gris,Teint_Dans_La_Masse,plastique,Carton_brun,autre_refus,papier,mal_croppe,environnement your option no_mail is active, we will not send the real mail to your client args[1399909886] : ('0.04578577998048841',) no score found for photo 1399909886 We are sending mail with results at report@fotonower.com args[1399909871] : ('0.04578577998048841',) no score found for photo 1399909871 We are sending mail with results at report@fotonower.com args[1399909843] : ('0.04578577998048841',) no score found for photo 1399909843 We are sending mail with results at report@fotonower.com args[1399909814] : ('0.04578577998048841',) no score found for photo 1399909814 We are sending mail with results at report@fotonower.com args[1399909774] : ('0.04578577998048841',) no score found for photo 1399909774 We are sending mail with results at report@fotonower.com args[1399909773] : ('0.04578577998048841',) no score found for photo 1399909773 We are sending mail with results at report@fotonower.com args[1399909772] : ('0.04578577998048841',) no score found for photo 1399909772 We are sending mail with results at report@fotonower.com args[1399909770] : ('0.04578577998048841',) no score found for photo 1399909770 We are sending mail with results at report@fotonower.com args[1399909754] : ('0.04578577998048841',) no score found for photo 1399909754 We are sending mail with results at report@fotonower.com args[1399909752] : ('0.04578577998048841',) no score found for photo 1399909752 We are sending mail with results at report@fotonower.com args[1399909749] : ('0.04578577998048841',) no score found for photo 1399909749 We are sending mail with results at report@fotonower.com args[1399909748] : ('0.04578577998048841',) no score found for photo 1399909748 We are sending mail with results at report@fotonower.com args[1399909746] : ('0.04578577998048841',) no score found for photo 1399909746 We are sending mail with results at report@fotonower.com args[1399909743] : ('0.04578577998048841',) no score found for photo 1399909743 We are sending mail with results at report@fotonower.com refus_total : 0.04578577998048841 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=29531020 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_P29531020_18-12-2025_08_14_57.pdf results_Auto_P29531020_18-12-2025_08_14_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_14_57.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','29531020','results_Auto_P29531020_18-12-2025_08_14_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_14_57.pdf','pdf','','0.25','0.04578577998048841') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29531020]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] map_info['map_portfolio_photo'] : {29531020: [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743, 1399909714, 1399909713, 1399909697, 1399909667, 1399909633, 1399909600, 1399909597, 1399909593, 1399909588, 1399909569, 1399909567, 1399909566, 1399909565, 1399909564, 1399909538, 1399909536, 1399909534, 1399909529, 1399909527, 1399909520, 1399909493, 1399909491, 1399909489, 1399909488, 1399909487, 1399909486, 1399909466, 1399909464, 1399909462, 1399909400, 1399909375, 1399909356, 1399909349, 1399909309, 1399909093, 1399909058, 1399909026, 1399908994, 1399908962, 1399908728, 1399908691, 1399908656, 1399908624, 1399908192, 1399908130, 1399907597, 1399907530, 1399907467, 1399907404, 1399907335, 1399907270, 1399906853, 1399906852, 1399906850, 1399906848, 1399906845]} final : False mtd_id 4302 list_pids : [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] 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, '4244712') ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712') 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', '29531020', '1399909886', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712')] time used for this insertion : 0.021867990493774414 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.686908960342407 time spend to save output : 0.022142410278320312 total time spend for step 4 : 5.7090513706207275 step5:split_time_score Thu Dec 18 08:15:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29531020'] 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 : [('29531020',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29531020) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399909871: {'path': 'temp/1766042096_2765523_1399909871_174ee3cc4d415f5324e0683d372e0361.jpg', 'extension': 'jpg'}, 1399909886: {'path': 'temp/1766042096_2765523_1399909886_6afb1bd3ba0ab9354ca740a0d6387702.jpg', 'extension': 'jpg'}, 1399909774: {'path': 'temp/1766042096_2765523_1399909774_b0eee136ee34c8c742839ae28d83950b.jpg', 'extension': 'jpg'}, 1399909814: {'path': 'temp/1766042096_2765523_1399909814_3021ac6167e0bb1416d9a98c9b41041c.jpg', 'extension': 'jpg'}, 1399909843: {'path': 'temp/1766042096_2765523_1399909843_6a3d41a3101ac788a0e0f4b3ee5aa755.jpg', 'extension': 'jpg'}, 1399909743: {'path': 'temp/1766042096_2765523_1399909743_924920a60528512fc3617fac2f54c4ec.jpg', 'extension': 'jpg'}, 1399909746: {'path': 'temp/1766042096_2765523_1399909746_bd27273adca5cef5129225e7aab11af7.jpg', 'extension': 'jpg'}, 1399909748: {'path': 'temp/1766042096_2765523_1399909748_550062eb0859c40e1269ed98aff13dbc.jpg', 'extension': 'jpg'}, 1399909770: {'path': 'temp/1766042096_2765523_1399909770_f182497bec9fc9bfef3f680e4ab64afc.jpg', 'extension': 'jpg'}, 1399909772: {'path': 'temp/1766042096_2765523_1399909772_29ffb8681030ab7a7c7607d7fc6a6697.jpg', 'extension': 'jpg'}, 1399909773: {'path': 'temp/1766042096_2765523_1399909773_0cb6e9dc66f4f59265d524e42348d9d6.jpg', 'extension': 'jpg'}, 1399909749: {'path': 'temp/1766042096_2765523_1399909749_2a916cb1ab8f0f5be73d1b6d30e6d72a.jpg', 'extension': 'jpg'}, 1399909752: {'path': 'temp/1766042096_2765523_1399909752_0d1bb3c619feb32dd83032c54bc36c28.jpg', 'extension': 'jpg'}, 1399909754: {'path': 'temp/1766042096_2765523_1399909754_e19f9eef1a506ad16aec5f271c0d1289.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 = 29531020; (('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 = 29531020 group by h (('08', 70),) 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=29531020 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 (29531020) 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 (29531020) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29531020 Nombre de photos uploadées : 70 / 23040 (0%) 18122025 29531020 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 18122025 29531020 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1399906853, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/93d4721673d497fb8f6c34ef2ab209a4.jpg', 'username': None, 'uploaded_at': 1766041267, 'text': 'image_18122025_08_00_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399906852, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e872d4a6fb80acb91ca97ba717a986d1.jpg', 'username': None, 'uploaded_at': 1766041267, 'text': 'image_18122025_08_00_15_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399906850, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c063d89f15546d92a674b6543d0f7d95.jpg', 'username': None, 'uploaded_at': 1766041267, 'text': 'image_18122025_08_00_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399906848, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/41768b79ab8fbbfee93612554d64f885.jpg', 'username': None, 'uploaded_at': 1766041267, 'text': 'image_18122025_08_00_34_009126m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002971649169921875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29531020, '2025-12-18' ) 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-12-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2472841739654541 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= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18507222, '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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18507223, '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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18507224, '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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18507225, '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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18507226, '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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18507227, '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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18507228, '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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29521664, 'dashboard_result_id': 18507229, '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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29522214, 'dashboard_result_id': 18507230, '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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29522701, 'dashboard_result_id': 18507231, '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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29523037, 'dashboard_result_id': 18507232, '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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29523671, 'dashboard_result_id': 18507233, '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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29524171, 'dashboard_result_id': 18507234, '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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29524599, 'dashboard_result_id': 18507235, '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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29525105, 'dashboard_result_id': 18507236, '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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29525978, 'dashboard_result_id': 18507237, '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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29526227, 'dashboard_result_id': 18507238, '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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29526571, 'dashboard_result_id': 18507239, '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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29526944, 'dashboard_result_id': 18507240, '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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29527309, 'dashboard_result_id': 18507241, '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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29527635, 'dashboard_result_id': 18507242, '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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29528012, 'dashboard_result_id': 18507243, '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_P29528012_18-12-2025_06_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29528449, 'dashboard_result_id': 18507244, '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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29528882, 'dashboard_result_id': 18507245, '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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29529672, 'dashboard_result_id': 18507246, '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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29530097, 'dashboard_result_id': 18507247, '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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29530582, 'dashboard_result_id': 18507248, '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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2763706, 'mtr_portfolio_id': 29531020, 'dashboard_result_id': 18507249, '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_P29531020_18-12-2025_08_10_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, '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 = 29518047 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': 4244016, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 6, 8, 30), 'result': '0.03160039577318933', 'result_long': None, 'result_double': None}] Qualite : 0.03160039577318933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2763706 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507222, 0.03160039577318933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4244017, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 6, 9), 'result': '0.06084823724062575', 'result_long': None, 'result_double': None}] Qualite : 0.06084823724062575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2763706 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507223, 0.06084823724062575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 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': 4244018, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 6, 9, 30), 'result': '0.05106015840957442', 'result_long': None, 'result_double': None}] Qualite : 0.05106015840957442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2763706 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`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507224, 0.05106015840957442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29519795 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': 4244019, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 6, 10), 'result': '0.054834556193236', 'result_long': None, 'result_double': None}] Qualite : 0.054834556193236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2763706 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`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507225, 0.054834556193236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, '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 = 29520859 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': 4244020, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 32), 'result': '0.0755093911554323', 'result_long': None, 'result_double': None}] Qualite : 0.0755093911554323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2763706 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`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507226, 0.0755093911554323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, '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 = 29521041 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': 4244021, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 38), 'result': '0.0626906800236694', 'result_long': None, 'result_double': None}] Qualite : 0.0626906800236694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2763706 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`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507227, 0.0626906800236694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, '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 = 29521390 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': 4244022, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 59), 'result': '0.03601307954338611', 'result_long': None, 'result_double': None}] Qualite : 0.03601307954338611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2763706 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`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507228, 0.03601307954338611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 = 29521664 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': 4244023, 'mtr_portfolio_id': 29521664, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 7), 'result': '0.05224710201661981', 'result_long': None, 'result_double': None}] Qualite : 0.05224710201661981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521664 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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}" where mtr_portfolio_id = 29521664 and dashboard_run_id = 2763706 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`=29521664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507229, 0.05224710201661981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, '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 = 29522214 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': 4244024, 'mtr_portfolio_id': 29522214, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 27), 'result': '0.04940413964377284', 'result_long': None, 'result_double': None}] Qualite : 0.04940413964377284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522214 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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}" where mtr_portfolio_id = 29522214 and dashboard_run_id = 2763706 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`=29522214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507230, 0.04940413964377284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, '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 = 29522701 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': 4244025, 'mtr_portfolio_id': 29522701, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 57), 'result': '0.05754232575898655', 'result_long': None, 'result_double': None}] Qualite : 0.05754232575898655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522701 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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}" where mtr_portfolio_id = 29522701 and dashboard_run_id = 2763706 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`=29522701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507231, 0.05754232575898655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, '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 = 29523037 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': 4244026, 'mtr_portfolio_id': 29523037, 'created_at': datetime.datetime(2025, 12, 18, 6, 12, 27), 'result': '0.04587231639916059', 'result_long': None, 'result_double': None}] Qualite : 0.04587231639916059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523037 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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}" where mtr_portfolio_id = 29523037 and dashboard_run_id = 2763706 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`=29523037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507232, 0.04587231639916059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, '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 = 29523671 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': 4244027, 'mtr_portfolio_id': 29523671, 'created_at': datetime.datetime(2025, 12, 18, 6, 13, 29), 'result': '0.0382293432947963', 'result_long': None, 'result_double': None}] Qualite : 0.0382293432947963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523671 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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}" where mtr_portfolio_id = 29523671 and dashboard_run_id = 2763706 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`=29523671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507233, 0.0382293432947963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, '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 = 29524171 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': 4244028, 'mtr_portfolio_id': 29524171, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 1), 'result': '0.04929941874328893', 'result_long': None, 'result_double': None}] Qualite : 0.04929941874328893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524171 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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}" where mtr_portfolio_id = 29524171 and dashboard_run_id = 2763706 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`=29524171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507234, 0.04929941874328893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, '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 = 29524599 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': 4244029, 'mtr_portfolio_id': 29524599, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 32), 'result': '0.03584565775001134', 'result_long': None, 'result_double': None}] Qualite : 0.03584565775001134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524599 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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}" where mtr_portfolio_id = 29524599 and dashboard_run_id = 2763706 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`=29524599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507235, 0.03584565775001134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, '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 = 29525105 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': 4244030, 'mtr_portfolio_id': 29525105, 'created_at': datetime.datetime(2025, 12, 18, 6, 15), 'result': '0.052551474443826615', 'result_long': None, 'result_double': None}] Qualite : 0.052551474443826615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525105 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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}" where mtr_portfolio_id = 29525105 and dashboard_run_id = 2763706 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`=29525105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507236, 0.052551474443826615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, '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 = 29525978 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': 4244031, 'mtr_portfolio_id': 29525978, 'created_at': datetime.datetime(2025, 12, 18, 6, 15, 31), 'result': '0.07086307058103226', 'result_long': None, 'result_double': None}] Qualite : 0.07086307058103226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525978 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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}" where mtr_portfolio_id = 29525978 and dashboard_run_id = 2763706 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`=29525978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507237, 0.07086307058103226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, '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 = 29526227 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': 4244032, 'mtr_portfolio_id': 29526227, 'created_at': datetime.datetime(2025, 12, 18, 5, 40, 38), 'result': '0.05295123788686618', 'result_long': None, 'result_double': None}] Qualite : 0.05295123788686618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526227 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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}" where mtr_portfolio_id = 29526227 and dashboard_run_id = 2763706 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`=29526227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507238, 0.05295123788686618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, '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 = 29526571 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': 4243940, 'mtr_portfolio_id': 29526571, 'created_at': datetime.datetime(2025, 12, 18, 5, 47, 2), 'result': '0.062067327390015706', 'result_long': None, 'result_double': None}] Qualite : 0.062067327390015706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526571 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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}" where mtr_portfolio_id = 29526571 and dashboard_run_id = 2763706 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`=29526571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507239, 0.062067327390015706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, '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 = 29526944 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': 4244144, 'mtr_portfolio_id': 29526944, 'created_at': datetime.datetime(2025, 12, 18, 6, 3, 33), 'result': '0.04189129800959036', 'result_long': None, 'result_double': None}] Qualite : 0.04189129800959036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526944 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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}" where mtr_portfolio_id = 29526944 and dashboard_run_id = 2763706 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`=29526944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507240, 0.04189129800959036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, '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 = 29527309 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': 4244213, 'mtr_portfolio_id': 29527309, 'created_at': datetime.datetime(2025, 12, 18, 6, 17), 'result': '0.061390788419819', 'result_long': None, 'result_double': None}] Qualite : 0.061390788419819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527309 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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}" where mtr_portfolio_id = 29527309 and dashboard_run_id = 2763706 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`=29527309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507241, 0.061390788419819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, '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 = 29527635 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': 4244258, 'mtr_portfolio_id': 29527635, 'created_at': datetime.datetime(2025, 12, 18, 6, 33, 2), 'result': '0.03759320880475477', 'result_long': None, 'result_double': None}] Qualite : 0.03759320880475477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527635 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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}" where mtr_portfolio_id = 29527635 and dashboard_run_id = 2763706 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`=29527635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507242, 0.03759320880475477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, '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 = 29528012 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': 4244312, 'mtr_portfolio_id': 29528012, 'created_at': datetime.datetime(2025, 12, 18, 6, 44, 29), 'result': '0.03712548953733256', 'result_long': None, 'result_double': None}] Qualite : 0.03712548953733256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_06_44_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528012 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_P29528012_18-12-2025_06_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}" where mtr_portfolio_id = 29528012 and dashboard_run_id = 2763706 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`=29528012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507243, 0.03712548953733256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_06_44_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, '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 = 29528449 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': 4244382, 'mtr_portfolio_id': 29528449, 'created_at': datetime.datetime(2025, 12, 18, 7, 2, 58), 'result': '0.054285139060117615', 'result_long': None, 'result_double': None}] Qualite : 0.054285139060117615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528449 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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}" where mtr_portfolio_id = 29528449 and dashboard_run_id = 2763706 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`=29528449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507244, 0.054285139060117615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, '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 = 29528882 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': 4244448, 'mtr_portfolio_id': 29528882, 'created_at': datetime.datetime(2025, 12, 18, 7, 18, 59), 'result': '0.03658198401281332', 'result_long': None, 'result_double': None}] Qualite : 0.03658198401281332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528882 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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}" where mtr_portfolio_id = 29528882 and dashboard_run_id = 2763706 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`=29528882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507245, 0.03658198401281332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, '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 = 29529672 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': 4244524, 'mtr_portfolio_id': 29529672, 'created_at': datetime.datetime(2025, 12, 18, 7, 32, 59), 'result': '0.05840643824752703', 'result_long': None, 'result_double': None}] Qualite : 0.05840643824752703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29529672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29529672 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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}" where mtr_portfolio_id = 29529672 and dashboard_run_id = 2763706 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`=29529672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507246, 0.05840643824752703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, '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 = 29530097 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': 4244580, 'mtr_portfolio_id': 29530097, 'created_at': datetime.datetime(2025, 12, 18, 7, 49, 1), 'result': '0.05377956909572141', 'result_long': None, 'result_double': None}] Qualite : 0.05377956909572141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530097 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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}" where mtr_portfolio_id = 29530097 and dashboard_run_id = 2763706 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`=29530097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507247, 0.05377956909572141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, '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 = 29530582 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': 4244649, 'mtr_portfolio_id': 29530582, 'created_at': datetime.datetime(2025, 12, 18, 8, 2, 59), 'result': '0.03928558192464546', 'result_long': None, 'result_double': None}] Qualite : 0.03928558192464546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530582 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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}" where mtr_portfolio_id = 29530582 and dashboard_run_id = 2763706 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`=29530582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507248, 0.03928558192464546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, '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 = 29531020 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': 4244712, 'mtr_portfolio_id': 29531020, 'created_at': datetime.datetime(2025, 12, 18, 8, 14, 56), 'result': '0.04578577998048841', 'result_long': None, 'result_double': None}] Qualite : 0.04578577998048841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_14_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531020 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_P29531020_18-12-2025_08_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}" where mtr_portfolio_id = 29531020 and dashboard_run_id = 2763706 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`=29531020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18507249, 0.04578577998048841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518047,29518739,29519140,29519795,29520859,29521041,29521390,29521664,29522214,29522701,29523037,29523671,29524171,29524599,29525105,29525978,29526227,29526571,29526944,29527309,29527635,29528012,29528449,29528882,29529672,29530097,29530582,29531020) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,), (1399881612,), (1399881613,), (1399881615,), (1399881616,), (1399881619,), (1399881623,), (1399881640,), (1399881636,), (1399881638,), (1399882198,), (1399882208,), (1399882210,), (1399882214,), (1399882218,), (1399882238,), (1399882240,), (1399882242,), (1399882246,), (1399882249,), (1399882261,), (1399882263,), (1399882267,), (1399882271,), (1399882275,), (1399882281,), (1399882290,), (1399882292,), (1399882294,), (1399882297,), (1399882300,), (1399882303,), (1399882307,), (1399882314,), (1399882315,), (1399882316,), (1399882385,), (1399882391,), (1399882399,), (1399882408,), (1399882424,), (1399882425,), (1399882426,), (1399882427,), (1399882430,), (1399882447,), (1399882448,), (1399882449,), (1399882461,), (1399882462,), (1399882463,), (1399882484,), (1399882485,), (1399882486,), (1399882487,), (1399882488,), (1399882500,), (1399882501,), (1399882502,), (1399882503,), (1399882506,), (1399882521,), (1399882522,), (1399882523,), (1399882524,), (1399882538,), (1399882539,), (1399882540,), (1399882543,), (1399882546,), (1399882553,), (1399882555,), (1399882556,), (1399882557,), (1399882558,), (1399882560,), (1399882561,), (1399882564,), (1399882568,), (1399882583,), (1399882632,), (1399882577,), (1399882578,), (1399882579,), (1399882580,), (1399882610,), (1399882611,), (1399882612,), (1399882615,), (1399882617,), (1399882619,), (1399882624,), (1399882626,), (1399882628,), (1399882630,), (1399882634,), (1399882637,), (1399882640,), (1399882653,), (1399882654,), (1399882655,), (1399882656,), (1399882659,), (1399882662,), (1399882668,), (1399882669,), (1399882670,), (1399882671,), (1399882674,), (1399882695,), (1399882696,), (1399882697,), (1399882722,), (1399882728,), (1399882729,), (1399882730,), (1399882733,), (1399882745,), (1399882746,), (1399882747,), (1399882761,), (1399882773,), (1399882794,), (1399882795,), (1399882796,), (1399882799,), (1399882802,), (1399882805,), (1399882815,), (1399882816,), (1399882820,), (1399882827,), (1399882828,), (1399882829,), (1399882832,), (1399882835,), (1399882858,), (1399882860,), (1399882864,), (1399882868,), (1399882877,), (1399882882,), (1399882884,), (1399882885,), (1399882886,), (1399882887,), (1399882892,), (1399882893,), (1399882896,), (1399882897,), (1399882899,), (1399882900,), (1399882903,), (1399882904,), (1399882907,), (1399882908,), (1399882919,), (1399882920,), (1399882921,), (1399882922,), (1399882947,), (1399882954,), (1399882955,), (1399882967,), (1399882968,), (1399882969,), (1399882970,), (1399882974,), (1399882975,), (1399883005,), (1399882995,), (1399883000,), (1399883001,), (1399883002,), (1399883013,), (1399883014,), (1399883015,), (1399883033,), (1399883034,), (1399883040,), (1399883049,), (1399883051,), (1399883068,), (1399883069,), (1399883070,), (1399883073,), (1399883076,), (1399883077,), (1399883095,), (1399883103,), (1399883104,), (1399883105,), (1399883108,), (1399883109,), (1399883112,), (1399883115,), (1399883124,), (1399883126,), (1399883128,), (1399883132,), (1399883136,), (1399883143,), (1399883159,), (1399883160,), (1399883161,), (1399883162,), (1399883165,), (1399883168,), (1399883174,), (1399883175,), (1399883204,), (1399883205,), (1399883206,), (1399883207,), (1399883209,), (1399883231,), (1399883233,), (1399883235,), (1399883237,), (1399883240,), (1399883263,), (1399883264,), (1399883265,), (1399883276,), (1399883277,), (1399883278,), (1399883302,), (1399883303,), (1399883304,), (1399883305,), (1399883308,), (1399883311,), (1399883614,), (1399883652,), (1399883731,), (1399883802,), (1399883851,), (1399883889,), (1399884027,), (1399884062,), (1399884097,), (1399884155,), (1399884230,), (1399884302,), (1399884656,), (1399884509,), (1399884572,), (1399884613,), (1399884705,), (1399884736,), (1399884768,), (1399885423,), (1399885488,), (1399885535,), (1399885566,), (1399885611,), (1399885656,), (1399886533,), (1399886535,), (1399886536,), (1399886917,), (1399886918,), (1399886919,), (1399886920,), (1399886923,), (1399886951,), (1399886952,), (1399886953,), (1399886954,), (1399886957,), (1399886960,), (1399886975,), (1399886977,), (1399886978,), (1399886979,), (1399887000,), (1399887001,), (1399887002,), (1399887015,), (1399887016,), (1399887017,), (1399887018,), (1399887021,), (1399887046,), (1399887047,), (1399887048,), (1399887049,), (1399887052,), (1399887067,), (1399887069,), (1399887092,), (1399887094,), (1399887096,), (1399887100,), (1399887104,), (1399887118,), (1399887119,), (1399887120,), (1399887121,), (1399887144,), (1399887149,), (1399887150,), (1399887151,), (1399887154,), (1399887157,), (1399887178,), (1399887179,), (1399887181,), (1399887214,), (1399887205,), (1399887207,), (1399887209,), (1399887211,), (1399887226,), (1399887227,), (1399887228,), (1399887229,), (1399887245,), (1399887249,), (1399887251,), (1399887253,), (1399887255,), (1399887257,), (1399887269,), (1399887272,), (1399887275,), (1399887280,), (1399887283,), (1399887287,), (1399887302,), (1399887304,), (1399887305,), (1399887307,), (1399887310,), (1399887326,), (1399887362,), (1399887364,), (1399887365,), (1399887366,), (1399887369,), (1399887380,), (1399887382,), (1399887386,), (1399887388,), (1399887410,), (1399887411,), (1399887412,), (1399887413,), (1399887428,), (1399887431,), (1399887434,), (1399887438,), (1399887463,), (1399887470,), (1399887484,), (1399887490,), (1399887491,), (1399887494,), (1399887496,), (1399887523,), (1399887524,), (1399887525,), (1399887526,), (1399887528,), (1399887531,), (1399887548,), (1399887550,), (1399887552,), (1399887555,), (1399887558,), (1399887560,), (1399887568,), (1399887569,), (1399887571,), (1399887573,), (1399887575,), (1399887577,), (1399887585,), (1399887586,), (1399887590,), (1399887591,), (1399887594,), (1399887595,), (1399887610,), (1399887604,), (1399887605,), (1399887606,), (1399887607,), (1399887622,), (1399887624,), (1399887626,), (1399887628,), (1399887631,), (1399887634,), (1399887643,), (1399887644,), (1399887645,), (1399887648,), (1399887653,), (1399887656,), (1399887663,), (1399887670,), (1399887672,), (1399887674,), (1399887676,), (1399887679,), (1399887692,), (1399887693,), (1399887694,), (1399887695,), (1399887717,), (1399887719,), (1399887721,), (1399887723,), (1399887738,), (1399887739,), (1399887740,), (1399887741,), (1399887774,), (1399887782,), (1399887784,), (1399887786,), (1399887808,), (1399887809,), (1399887810,), (1399887813,), (1399887816,), (1399887821,), (1399887827,), (1399887829,), (1399887831,), (1399887839,), (1399887840,), (1399887841,), (1399887844,), (1399887856,), (1399887858,), (1399887860,), (1399887862,), (1399887910,), (1399887913,), (1399887914,), (1399887929,), (1399887930,), (1399887933,), (1399887935,), (1399887937,), (1399887940,), (1399887966,), (1399887967,), (1399887968,), (1399887969,), (1399887972,), (1399887988,), (1399887990,), (1399887993,), (1399887995,), (1399887997,), (1399887998,), (1399888026,), (1399888024,), (1399888025,), (1399888040,), (1399888042,), (1399888044,), (1399888046,), (1399888067,), (1399888068,), (1399888069,), (1399888083,), (1399888085,), (1399888087,), (1399888089,), (1399888092,), (1399888116,), (1399888117,), (1399888118,), (1399888121,), (1399888124,), (1399888126,), (1399888133,), (1399888135,), (1399888136,), (1399888149,), (1399888166,), (1399888168,), (1399888170,), (1399888186,), (1399888187,), (1399888188,), (1399888189,), (1399888220,), (1399888221,), (1399888223,), (1399888225,), (1399888238,), (1399888239,), (1399888240,), (1399888241,), (1399888242,), (1399888270,), (1399888272,), (1399888337,), (1399888338,), (1399888355,), (1399888357,), (1399888360,), (1399888392,), (1399888386,), (1399888388,), (1399888390,), (1399888418,), (1399888420,), (1399888422,), (1399888516,), (1399888548,), (1399888579,), (1399888612,), (1399889047,), (1399889080,), (1399889113,), (1399889148,), (1399889187,), (1399889219,), (1399889331,), (1399889368,), (1399889409,), (1399889443,), (1399889445,), (1399889447,), (1399889450,), (1399889452,), (1399889456,), (1399889482,), (1399889515,), (1399889550,), (1399889582,), (1399889807,), (1399889840,), (1399889872,), (1399889896,), (1399890035,), (1399890037,), (1399890064,), (1399890066,), (1399890068,), (1399890072,), (1399890088,), (1399890093,), (1399890103,), (1399890106,), (1399890124,), (1399890125,), (1399890126,), (1399890147,), (1399890165,), (1399892241,), (1399892237,), (1399894026,), (1399894063,), (1399894513,), (1399894514,), (1399894516,), (1399894518,), (1399894521,), (1399894524,), (1399894649,), (1399894683,), (1399894713,), (1399894743,), (1399894758,), (1399894851,), (1399894853,), (1399894854,), (1399894856,), (1399894858,), (1399894860,), (1399894868,), (1399894870,), (1399894872,), (1399894874,), (1399894879,), (1399894883,), (1399894887,), (1399894893,), (1399894898,), (1399894904,), (1399894906,), (1399894908,), (1399894909,), (1399894911,), (1399894925,), (1399894926,), (1399894927,), (1399894928,), (1399894959,), (1399894960,), (1399894961,), (1399894962,), (1399894965,), (1399894968,), (1399894978,), (1399894980,), (1399894982,), (1399895012,), (1399895004,), (1399895005,), (1399895006,), (1399895007,), (1399895010,), (1399895021,), (1399895022,), (1399895023,), (1399895047,), (1399895056,), (1399895058,), (1399895059,), (1399895062,), (1399895079,), (1399895081,), (1399895082,), (1399895083,), (1399895085,), (1399895087,), (1399895121,), (1399895122,), (1399895123,), (1399895126,), (1399895129,), (1399895132,), (1399895139,), (1399895141,), (1399895143,), (1399895145,), (1399895149,), (1399895152,), (1399895154,), (1399895157,), (1399895173,), (1399895202,), (1399895208,), (1399895211,), (1399895217,), (1399895222,), (1399895290,), (1399895293,), (1399895296,), (1399895299,), (1399895304,), (1399895319,), (1399895320,), (1399895321,), (1399895322,), (1399895324,), (1399895351,), (1399895353,), (1399895354,), (1399895357,), (1399895360,), (1399895371,), (1399895372,), (1399895373,), (1399895374,), (1399895377,), (1399895392,), (1399895393,), (1399895394,), (1399895395,), (1399895399,), (1399895410,), (1399895412,), (1399895414,), (1399895418,), (1399895422,), (1399895426,), (1399895449,), (1399895453,), (1399895457,), (1399895460,), (1399895462,), (1399895464,), (1399895477,), (1399895512,), (1399895513,), (1399895514,), (1399895515,), (1399895465,), (1399895466,), (1399895468,), (1399895473,), (1399895475,), (1399895522,), (1399895525,), (1399895528,), (1399895532,), (1399895534,), (1399895537,), (1399895538,), (1399895539,), (1399895540,), (1399895543,), (1399895564,), (1399895565,), (1399895566,), (1399895567,), (1399895569,), (1399895589,), (1399895591,), (1399895592,), (1399895594,), (1399895618,), (1399895620,), (1399895621,), (1399895622,), (1399895625,), (1399895628,), (1399895641,), (1399895642,), (1399895643,), (1399895667,), (1399895669,), (1399895671,), (1399895673,), (1399895676,), (1399895678,), (1399895689,), (1399895690,), (1399895691,), (1399895692,), (1399895717,), (1399895719,), (1399895721,), (1399895724,), (1399895727,), (1399895729,), (1399895735,), (1399895736,), (1399895737,), (1399895739,), (1399895744,), (1399895746,), (1399895748,), (1399895754,), (1399895757,), (1399895771,), (1399895774,), (1399895775,), (1399895796,), (1399895797,), (1399895798,), (1399895799,), (1399895802,), (1399895803,), (1399895831,), (1399895832,), (1399895833,), (1399895834,), (1399895837,), (1399895849,), (1399895850,), (1399895852,), (1399895853,), (1399895856,), (1399895883,), (1399895877,), (1399895878,), (1399895879,), (1399895880,), (1399895893,), (1399895895,), (1399895897,), (1399895901,), (1399895905,), (1399895922,), (1399895924,), (1399895926,), (1399895930,), (1399895934,), (1399895938,), (1399895951,), (1399895952,), (1399895953,), (1399895954,), (1399895957,), (1399895981,), (1399895982,), (1399895983,), (1399895986,), (1399895989,), (1399895990,), (1399895999,), (1399896002,), (1399896004,), (1399896006,), (1399896008,), (1399896055,), (1399896238,), (1399896229,), (1399896232,), (1399896235,), (1399896258,), (1399896260,), (1399896262,), (1399896456,), (1399896489,), (1399896957,), (1399896991,), (1399897024,), (1399897335,), (1399897819,), (1399897864,), (1399897865,), (1399897867,), (1399897868,), (1399897894,), (1399897892,), (1399897893,), (1399897906,), (1399897907,), (1399897925,), (1399897926,), (1399897927,), (1399897928,), (1399897930,), (1399897932,), (1399897950,), (1399897951,), (1399897952,), (1399897953,), (1399897955,), (1399897976,), (1399897978,), (1399897980,), (1399897982,), (1399897984,), (1399897985,), (1399897990,), (1399897993,), (1399897995,), (1399897997,), (1399897999,), (1399898002,), (1399898004,), (1399898009,), (1399898013,), (1399898024,), (1399898025,), (1399898026,), (1399898027,), (1399898043,), (1399898045,), (1399898046,), (1399898047,), (1399898050,), (1399898052,), (1399898075,), (1399898076,), (1399898077,), (1399898078,), (1399898090,), (1399898092,), (1399898094,), (1399898098,), (1399898102,), (1399898116,), (1399898117,), (1399898118,), (1399898119,), (1399898122,), (1399898125,), (1399898135,), (1399898136,), (1399898137,), (1399898138,), (1399898172,), (1399898181,), (1399898183,), (1399898184,), (1399898187,), (1399898189,), (1399898205,), (1399898206,), (1399898207,), (1399898208,), (1399898229,), (1399898231,), (1399898233,), (1399898235,), (1399898238,), (1399898240,), (1399898247,), (1399898249,), (1399898251,), (1399898253,), (1399898263,), (1399898256,), (1399898257,), (1399898260,), (1399898283,), (1399898284,), (1399898285,), (1399898286,), (1399898289,), (1399898304,), (1399898305,), (1399898306,), (1399898307,), (1399898322,), (1399898323,), (1399898324,), (1399898325,), (1399898342,), (1399898344,), (1399898346,), (1399898350,), (1399898354,), (1399898378,), (1399898386,), (1399898387,), (1399898388,), (1399898391,), (1399898405,), (1399898406,), (1399898407,), (1399898434,), (1399898436,), (1399898437,), (1399898438,), (1399898441,), (1399898443,), (1399898460,), (1399898461,), (1399898462,), (1399898463,), (1399898466,), (1399898469,), (1399898485,), (1399898486,), (1399898487,), (1399898490,), (1399898492,), (1399898494,), (1399898503,), (1399898506,), (1399898507,), (1399898508,), (1399898509,), (1399898510,), (1399898513,), (1399898516,), (1399898521,), (1399898534,), (1399898535,), (1399898536,), (1399898537,), (1399898540,), (1399898543,), (1399898561,), (1399898565,), (1399898566,), (1399898567,), (1399898585,), (1399898593,), (1399898601,), (1399898602,), (1399898605,), (1399898607,), (1399898620,), (1399898621,), (1399898622,), (1399898643,), (1399898637,), (1399898638,), (1399898639,), (1399898640,), (1399898654,), (1399898655,), (1399898656,), (1399898657,), (1399898673,), (1399898674,), (1399898675,), (1399898676,), (1399898677,), (1399898680,), (1399898693,), (1399898694,), (1399898695,), (1399898696,), (1399898699,), (1399898722,), (1399898723,), (1399898724,), (1399898726,), (1399898728,), (1399898731,), (1399898740,), (1399898743,), (1399898745,), (1399898751,), (1399898753,), (1399898756,), (1399898758,), (1399898760,), (1399898762,), (1399898783,), (1399898784,), (1399898785,), (1399898786,), (1399898809,), (1399898811,), (1399898813,), (1399898817,), (1399898821,), (1399898823,), (1399898845,), (1399898846,), (1399898847,), (1399898848,), (1399898851,), (1399898871,), (1399898872,), (1399898873,), (1399898874,), (1399898877,), (1399898880,), (1399898904,), (1399898905,), (1399898906,), (1399898907,), (1399898920,), (1399898922,), (1399898923,), (1399898949,), (1399899300,), (1399899302,), (1399899308,), (1399899310,), (1399899313,), (1399899314,), (1399899315,), (1399899660,), (1399899482,), (1399899519,), (1399899553,), (1399899593,), (1399900177,), (1399900218,), (1399900250,), (1399900284,), (1399900342,), (1399900673,), (1399900676,), (1399900677,), (1399900681,), (1399900716,), (1399900961,), (1399900972,), (1399900992,), (1399900997,), (1399901000,), (1399901002,), (1399901192,), (1399901221,), (1399901254,), (1399901285,), (1399901323,), (1399901713,), (1399901737,), (1399901738,), (1399901739,), (1399901742,), (1399901760,), (1399902076,), (1399902271,), (1399902321,), (1399902357,), (1399902768,), (1399902784,), (1399902785,), (1399903389,), (1399903411,), (1399903415,), (1399903416,), (1399903428,), (1399903445,), (1399903475,), (1399903513,), (1399903580,), (1399903622,), (1399903819,), (1399903838,), (1399903860,), (1399903867,), (1399903870,), (1399903880,), (1399903881,), (1399903883,), (1399903884,), (1399903887,), (1399903890,), (1399903925,), (1399903913,), (1399903914,), (1399903915,), (1399903916,), (1399903957,), (1399903958,), (1399903959,), (1399903960,), (1399903963,), (1399903965,), (1399903995,), (1399903996,), (1399903997,), (1399903998,), (1399904001,), (1399904012,), (1399904013,), (1399904014,), (1399904015,), (1399904017,), (1399904019,), (1399904326,), (1399904327,), (1399904331,), (1399904333,), (1399904365,), (1399904404,), (1399904477,), (1399904478,), (1399904482,), (1399904491,), (1399904492,), (1399904494,), (1399904496,), (1399904498,), (1399904504,), (1399904506,), (1399904510,), (1399904529,), (1399904531,), (1399904532,), (1399904534,), (1399904549,), (1399904550,), (1399904551,), (1399904552,), (1399904555,), (1399904560,), (1399904574,), (1399904577,), (1399904578,), (1399904579,), (1399904582,), (1399904608,), (1399904609,), (1399904613,), (1399904620,), (1399904652,), (1399904783,), (1399904784,), (1399904785,), (1399904790,), (1399904800,), (1399904821,), (1399904901,), (1399904912,), (1399904916,), (1399904917,), (1399904919,), (1399904979,), (1399904980,), (1399904981,), (1399904982,), (1399904985,), (1399904988,), (1399905000,), (1399905002,), (1399905004,), (1399905005,), (1399905030,), (1399905032,), (1399905033,), (1399905036,), (1399905039,), (1399905040,), (1399905048,), (1399905049,), (1399905050,), (1399905063,), (1399905051,), (1399905052,), (1399905055,), (1399905060,), (1399905077,), (1399905081,), (1399905082,), (1399905096,), (1399905097,), (1399905098,), (1399905099,), (1399905102,), (1399905105,), (1399905119,), (1399905121,), (1399905129,), (1399905138,), (1399905161,), (1399905163,), (1399905184,), (1399905222,), (1399905268,), (1399905369,), (1399905371,), (1399905372,), (1399905513,), (1399905514,), (1399905515,), (1399905516,), (1399905519,), (1399905547,), (1399905548,), (1399905549,), (1399905550,), (1399905569,), (1399905570,), (1399905601,), (1399905602,), (1399905603,), (1399905605,), (1399905607,), (1399905632,), (1399905633,), (1399905662,), (1399905664,), (1399905666,), (1399905670,), (1399905673,), (1399905684,), (1399905685,), (1399905686,), (1399905689,), (1399905692,), (1399905695,), (1399905703,), (1399905704,), (1399905705,), (1399905706,), (1399905707,), (1399905710,), (1399905712,), (1399905714,), (1399905726,), (1399905728,), (1399905730,), (1399905734,), (1399905753,), (1399905747,), (1399905748,), (1399905749,), (1399905750,), (1399905779,), (1399905780,), (1399905781,), (1399905782,), (1399905785,), (1399905815,), (1399905850,), (1399905852,), (1399905872,), (1399905873,), (1399905874,), (1399905877,), (1399905880,), (1399905889,), (1399905890,), (1399905893,), (1399905896,), (1399905899,), (1399905906,), (1399905915,), (1399905916,), (1399905941,), (1399905944,), (1399905959,), (1399905967,), (1399906017,), (1399906018,), (1399906019,), (1399906020,), (1399906023,), (1399906332,), (1399906582,), (1399906584,), (1399906586,), (1399906715,), (1399906716,), (1399906718,), (1399906734,), (1399906745,), (1399906757,), (1399906768,), (1399906770,), (1399906772,), (1399906777,), (1399906781,), (1399906784,), (1399906804,), (1399906805,), (1399906806,), (1399906807,), (1399906824,), (1399906828,), (1399906830,), (1399906831,), (1399906834,), (1399906836,), (1399906854,), (1399906897,), (1399906939,), (1399906995,), (1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29531020]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] map_info['map_portfolio_photo'] : {29531020: [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743, 1399909714, 1399909713, 1399909697, 1399909667, 1399909633, 1399909600, 1399909597, 1399909593, 1399909588, 1399909569, 1399909567, 1399909566, 1399909565, 1399909564, 1399909538, 1399909536, 1399909534, 1399909529, 1399909527, 1399909520, 1399909493, 1399909491, 1399909489, 1399909488, 1399909487, 1399909486, 1399909466, 1399909464, 1399909462, 1399909400, 1399909375, 1399909356, 1399909349, 1399909309, 1399909093, 1399909058, 1399909026, 1399908994, 1399908962, 1399908728, 1399908691, 1399908656, 1399908624, 1399908192, 1399908130, 1399907597, 1399907530, 1399907467, 1399907404, 1399907335, 1399907270, 1399906853, 1399906852, 1399906850, 1399906848, 1399906845]} final : True mtd_id 4302 list_pids : [1399909886, 1399909871, 1399909843, 1399909814, 1399909774, 1399909773, 1399909772, 1399909770, 1399909754, 1399909752, 1399909749, 1399909748, 1399909746, 1399909743] Looping around the photos to save general results len do output : 1 /29531020Didn'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, '4244712') ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712') ('4302', None, None, None, None, None, None, None, '4244712') ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712') 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, '29531020', 'None', None, None, None, None, '4244712'), ('4302', '29531020', '1399909886', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909871', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909843', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909814', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909774', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909773', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909772', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909770', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909754', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909752', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909749', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909748', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909746', None, None, None, None, None, '4244712'), ('4302', '29531020', '1399909743', None, None, None, None, None, '4244712')] time used for this insertion : 0.016861677169799805 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6679649353027344 time spend to save output : 0.017110109329223633 total time spend for step 5 : 2.685075044631958 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 (4244712) 2.23user 2.63system 0:10.79elapsed 45%CPU (0avgtext+0avgdata 167228maxresident)k 104inputs+16360outputs (3major+79559minor)pagefaults 0swaps